Skip to content

Commit 8a02110

Browse files
Add a test for proper payload_available wire check when image is activated
Internal-tag: [#75010]
1 parent 6b02114 commit 8a02110

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

verification/cocotb/top/lib_i3c_top/test_recovery.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,11 @@ async def test_payload_available(dut):
10371037
await tb.read_csr(tb.reg_map.I3C_EC.SECFWRECOVERYIF.INDIRECT_FIFO_DATA.base_addr, 4)
10381038
await RisingEdge(tb.clk)
10391039

1040-
assert not bool(
1041-
payload_available.value
1042-
), "After reading FIFO, payload_available should be deasserted"
1040+
for _ in range(random.randint(5, 100)):
1041+
assert not bool(
1042+
payload_available.value
1043+
), "After reading FIFO, payload_available should be deasserted"
1044+
await RisingEdge(tb.clk)
10431045

10441046

10451047
@cocotb.test()

0 commit comments

Comments
 (0)