Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hmac,dv] Skip msg_length check when reset #25738

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion hw/ip/hmac/dv/env/seq_lib/hmac_base_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,13 @@ task hmac_base_vseq::sar_different_context();
csr_spinwait(.ptr(ral.intr_state.hmac_done), .exp_data(1'b1));
// Check message length -> TODO (#23562) move to the SCB when removing sar_skip_ctxt
csr_rd_msg_length(msg_length_rd);
`DV_CHECK_EQ(msg_length_rd, msg_length_rand+msg_b.size()*8)
// Check if reset hasn't been triggered before doing this check
// TODO (#25809) remove this from the seq when reset handled properly
if (cfg.under_reset) begin
return;
end else begin
`DV_CHECK_EQ(msg_length_rd, msg_length_rand+msg_b.size()*8)
end
end
endcase
// Clear the interrupt.
Expand Down
Loading