[dv] Fix traps in simple system cosim

Previously any traps seen on RVFI were skipped over. This was old
behaviour. With the latest cosim setup traps must be passed to the
`step` function.
This commit is contained in:
Greg Chadwick 2022-07-19 16:06:21 +01:00 committed by Greg Chadwick
parent 51f1141335
commit 1ea89a423b

View file

@ -26,7 +26,7 @@ module ibex_simple_system_cosim_checker (
end
always @(posedge clk_i) begin
if (u_top.rvfi_valid & !u_top.rvfi_trap) begin
if (u_top.rvfi_valid) begin
riscv_cosim_set_nmi(cosim_handle, u_top.rvfi_ext_nmi);
riscv_cosim_set_mip(cosim_handle, u_top.rvfi_ext_mip);
riscv_cosim_set_debug_req(cosim_handle, u_top.rvfi_ext_debug_req);