Skip to content

Commit

Permalink
[hmac/dv] Print expected digest when calculating it
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Kurth <[email protected]>
  • Loading branch information
andreaskurth committed Feb 27, 2024
1 parent 0bb77b0 commit 5ad9a69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/ip/hmac/dv/env/hmac_scoreboard.sv
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,10 @@ class hmac_scoreboard extends cip_base_scoreboard #(.CFG_T (hmac_env_cfg),
bit hmac_en = ral.cfg.hmac_en.get_mirrored_value());
if (hmac_en) begin
cryptoc_dpi_pkg::sv_dpi_get_hmac_sha256(key, msg_q, exp_digest);
`uvm_info(`gfn, $sformatf("HMAC of key=%p, msq_q=%p: %p", key, msg_q, exp_digest), UVM_LOW)
end else begin
cryptoc_dpi_pkg::sv_dpi_get_sha256_digest(msg_q, exp_digest);
`uvm_info(`gfn, $sformatf("SHA256 digest of msq_q=%p: %p", msg_q, exp_digest), UVM_LOW)
end
endfunction

Expand Down

0 comments on commit 5ad9a69

Please sign in to comment.