File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1171,4 +1171,14 @@ module ibex_top import ibex_pkg::*; #(
1171
1171
// Dummy instructions may only write to register 0, which is a special register when dummy
1172
1172
// instructions are enabled.
1173
1173
`ASSERT (WaddrAZeroForDummyInstr, dummy_instr_wb && rf_we_wb | - > rf_waddr_wb == '0 )
1174
+
1175
+ // Ensure the crash dump is connected to the correct internal signals
1176
+ `ASSERT (CrashDumpCurrentPCConn, crash_dump_o.current_pc === u_ibex_core.pc_id)
1177
+ `ASSERT (CrashDumpNextPCConn, crash_dump_o.next_pc === u_ibex_core.pc_if)
1178
+ `ASSERT (CrashDumpLastDataAddrConn,
1179
+ crash_dump_o.last_data_addr === u_ibex_core.load_store_unit_i.addr_last_q)
1180
+ `ASSERT (CrashDumpExceptionPCConn,
1181
+ crash_dump_o.exception_pc === u_ibex_core.cs_registers_i.mepc_q)
1182
+ `ASSERT (CrashDumpExceptionAddrConn,
1183
+ crash_dump_o.exception_addr === u_ibex_core.cs_registers_i.mtval_q)
1174
1184
endmodule
You can’t perform that action at this time.
0 commit comments