Skip to content

Commit a799a92

Browse files
committed
[rtl] Add SVA to ensure valid_i in compressed decoder is known
This signal is used to gate several assertions related to unknown/invalid selector signals. We want to be sure to catch any X values entering the compressed decoder and ultimately ID. This is related to lowRISC#540. Signed-off-by: Pirmin Vogel <[email protected]>
1 parent 8d37af2 commit a799a92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rtl/ibex_compressed_decoder.sv

+3
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ module ibex_compressed_decoder (
282282
// Assertions //
283283
////////////////
284284

285+
// The valid_i signal used to gate below assertions must be known.
286+
`ASSERT_KNOWN(IbexInstrValidKnown, valid_i)
287+
285288
// Selectors must be known/valid.
286289
`ASSERT(IbexInstrLSBsKnown, valid_i |->
287290
!$isunknown(instr_i[1:0]))

0 commit comments

Comments
 (0)