Skip to content

Commit d8b00f0

Browse files
committed
[fpv] Only include double fault prediction logic where RVFI exists
1 parent b736680 commit d8b00f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rtl/ibex_top.sv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,9 @@ module ibex_top import ibex_pkg::*; #(
11671167
// data_err_i relevant to both reads and writes. Check it isn't X on any response.
11681168
`ASSERT_KNOWN_IF(IbexDataRErrPayloadX, data_err_i, data_rvalid_i)
11691169

1170-
// Tracking logic and predictor for double_fault_seen_o output
1170+
`ifdef RVFI
1171+
// Tracking logic and predictor for double_fault_seen_o output, relies on RVFI so only include
1172+
// it where RVFI is available.
11711173

11721174
// Returns 1'b1 if the provided instruction decodes to one that would write the sync_exc_bit of
11731175
// the CPUCTRLSTS CSR
@@ -1243,6 +1245,7 @@ module ibex_top import ibex_pkg::*; #(
12431245
// If double_fault_seen_o is asserted we should see predict one occurring within a bounded time
12441246
`ASSERT(DoubleFaultPulseOnlyOnDoubleFault,
12451247
double_fault_seen_o |-> ##[0:DoubleFaultSeenLatency] double_fault_seen_predicted)
1248+
`endif // RVFI
12461249
`endif
12471250

12481251
`ASSERT_KNOWN(IbexIrqX, {irq_software_i, irq_timer_i, irq_external_i, irq_fast_i, irq_nm_i})

0 commit comments

Comments
 (0)