[dv/hmac] interrupt test fix not always reset
Fix intr_test sequence not always reset intr_state signal
diff --git a/hw/ip/hmac/dv/env/hmac_scoreboard.sv b/hw/ip/hmac/dv/env/hmac_scoreboard.sv
index c17b7a2..5d38e38 100644
--- a/hw/ip/hmac/dv/env/hmac_scoreboard.sv
+++ b/hw/ip/hmac/dv/env/hmac_scoreboard.sv
@@ -80,7 +80,8 @@
end
end
"intr_test": begin // testmode, intr_state is W1C, cannot use UVM_PREDICT_WRITE
- void'(ral.intr_state.predict(.value(item.a_data), .kind(UVM_PREDICT_DIRECT)));
+ bit [TL_DW-1:0] intr_state_exp = item.a_data | ral.intr_state.get_mirrored_value();
+ void'(ral.intr_state.predict(.value(intr_state_exp), .kind(UVM_PREDICT_DIRECT)));
end
"cfg": begin
cov.cfg_cg.sample(item.a_data);