Skip to content

Commit e7874a1

Browse files
committed
[rtl] Add assertion to ensure the push/pop FSM only advances if valid
1 parent 368c013 commit e7874a1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rtl/ibex_compressed_decoder.sv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,5 +809,6 @@ module ibex_compressed_decoder #(
809809
!$isunknown({instr_i[12], instr_i[6:5]}))
810810
`ASSERT(IbexC2Known1, (valid_i && (instr_i[1:0] == 2'b10)) |->
811811
!$isunknown(instr_i[15:13]))
812+
`ASSERT(IbexPushPopFSMStable, !valid_i |-> cm_state_d == cm_state_q)
812813

813814
endmodule

0 commit comments

Comments
 (0)