Skip to content

Commit

Permalink
[dv/otp_ctrl] do not compare direct_access_rdata_* on on non-integrit…
Browse files Browse the repository at this point in the history
…y partitions

Signed-off-by: Dror Kabely <dror.kabely@opentitan.org>
  • Loading branch information
dkabely-ot authored and andreaskurth committed May 30, 2024
1 parent 8cb25a6 commit 14fd15b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hw/ip/otp_ctrl/data/otp_ctrl_scoreboard.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@ class otp_ctrl_scoreboard #(type CFG_T = otp_ctrl_env_cfg)
predict_no_err(OtpDaiErrIdx);
predict_rdata(is_secret(dai_addr) || is_digest(dai_addr),
read_out0, read_out1);
// do not check direct_access_rdata_* on ECC errors in
// non-integrity partitions
check_dai_rd_data = 0;
end else begin
predict_no_err(OtpDaiErrIdx);
predict_rdata(is_secret(dai_addr) || is_digest(dai_addr),
Expand Down
3 changes: 3 additions & 0 deletions hw/ip/otp_ctrl/dv/env/otp_ctrl_scoreboard.sv
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,9 @@ class otp_ctrl_scoreboard #(type CFG_T = otp_ctrl_env_cfg)
predict_no_err(OtpDaiErrIdx);
predict_rdata(is_secret(dai_addr) || is_digest(dai_addr),
read_out0, read_out1);
// do not check direct_access_rdata_* on ECC errors in
// non-integrity partitions
check_dai_rd_data = 0;
end else begin
predict_no_err(OtpDaiErrIdx);
predict_rdata(is_secret(dai_addr) || is_digest(dai_addr),
Expand Down

0 comments on commit 14fd15b

Please sign in to comment.