mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-20 03:47:15 -04:00
[rtl] Assert that dummy instructions only write R0
Signed-off-by: Andreas Kurth <adk@lowrisc.org>
This commit is contained in:
parent
73e46b4fc7
commit
ce536ae476
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue