sim:tests: Add OT sysrst_ctrl test Follow https://github.com/renode/renode/commit/6995647d64ddb5cd6d60b258714e9f645e522515 Change-Id: I78a23fcc6c295e948da34497349ad10c8bb3902a
diff --git a/opentitan_peripherals_test.robot b/opentitan_peripherals_test.robot index 83430e0..862bb35 100644 --- a/opentitan_peripherals_test.robot +++ b/opentitan_peripherals_test.robot
@@ -219,3 +219,12 @@ Should Pass Aon Timer Watchdog Bite Reset Smoketest Run Test ${AON_TIMER_WDOG_BITE_BIN} + +Should Try To Reset On The System Reset Control Combo + Setup Machine + Create Log Tester 0 + Execute Command sysbus.sysrst_ctrl WriteDoubleWord 0x54 0x8 # Set combo0 to just pwrButton + Execute Command sysbus.sysrst_ctrl WriteDoubleWord 0x74 0x8 # Set combo0 action to rstReq + Execute Command sysbus.sysrst_ctrl WriteDoubleWord 0x30 0x40 # Invert the pwrButton input + # Expect error as this should work only when done by CPU + Wait For Log Entry Couldn't find the cpu requesting reset.