[rtl] Assert that dummy instructions only write R0

Signed-off-by: Andreas Kurth <adk@lowrisc.org>
This commit is contained in:
Andreas Kurth 2022-10-14 12:03:26 +00:00 committed by Greg Chadwick
parent 73e46b4fc7
commit ce536ae476

View file

@ -1134,4 +1134,8 @@ module ibex_top import ibex_pkg::*; #(
`ASSERT_KNOWN(IbexDebugReqX, debug_req_i)
`ASSERT_KNOWN(IbexFetchEnableX, fetch_enable_i)
// Dummy instructions may only write to register 0, which is a special register when dummy
// instructions are enabled.
`ASSERT(WaddrAZeroForDummyInstr, dummy_instr_id && rf_we_wb |-> rf_waddr_wb == '0)
endmodule