Skip to content

Commit 86aef49

Browse files
committed
udpate rstact test to check RSTACT CSR
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
1 parent 636b54a commit 86aef49

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎verification/cocotb/top/lib_i3c_top/test_ccc.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,12 @@ async def test_ccc_rstact(dut, type, rstact):
10261026
# Check if reset action got stored correctly in the logic after RSTACT CCC
10271027
sig = dut.xi3c_wrapper.i3c.xcontroller.xcontroller_standby.xcontroller_standby_i3c.rst_action_o
10281028
assert rst_action == int(sig), f"Expected rst_action_o={rst_action}, got {int(sig)}"
1029+
1030+
# Check if RST_ACTION field in STBY_CR_CCC_CONFIG_RSTACT_PARAMS CSR was updated
1031+
rstact_reg = tb.reg_map.I3C_EC.STDBYCTRLMODE.STBY_CR_CCC_CONFIG_RSTACT_PARAMS
1032+
rst_action_csr = await tb.read_csr_field(rstact_reg.base_addr, rstact_reg.RST_ACTION)
1033+
assert rst_action == rst_action_csr, \
1034+
f"Expected STBY_CR_CCC_CONFIG_RSTACT_PARAMS.RST_ACTION={rst_action}, got {rst_action_csr}"
10291035
await i3c_controller.send_target_reset_pattern()
10301036
await i3c_controller.send_stop()
10311037

0 commit comments

Comments
 (0)