Skip to content

Commit

Permalink
[otbn,dv] Assert that error bits are known
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Kurth <[email protected]>
  • Loading branch information
andreaskurth authored and GregAC committed Sep 1, 2022
1 parent d0b9643 commit 125b7c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions hw/ip/otbn/rtl/otbn.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,7 @@ module otbn
`ASSERT_KNOWN(EdnRndOKnown_A, edn_rnd_o, clk_edn_i, !rst_edn_ni)
`ASSERT_KNOWN(EdnUrndOKnown_A, edn_urnd_o, clk_edn_i, !rst_edn_ni)
`ASSERT_KNOWN(OtbnOtpKeyO_A, otbn_otp_key_o, clk_otp_i, !rst_otp_ni)
`ASSERT_KNOWN(ErrBitsKnown_A, err_bits)

// Incoming key must be valid (other inputs go via prim modules that handle the X checks).
`ASSERT_KNOWN(KeyMgrKeyValid_A, keymgr_key_i.valid)
Expand Down
1 change: 1 addition & 0 deletions hw/ip/otbn/rtl/otbn_core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ module otbn_core
`ASSERT_KNOWN(EdnRndReqOKnown_A, edn_rnd_req_o)
`ASSERT_KNOWN(EdnUrndReqOKnown_A, edn_urnd_req_o)
`ASSERT_KNOWN(InsnCntOKnown_A, insn_cnt_o)
`ASSERT_KNOWN(ErrBitsKnown_A, err_bits_o)

// Keep the EDN requests active until they are acknowledged.
`ASSERT(EdnRndReqStable_A, edn_rnd_req_o & ~edn_rnd_ack_i |=> edn_rnd_req_o)
Expand Down

0 comments on commit 125b7c5

Please sign in to comment.