diff --git a/rv32_csrs.sv b/rv32_csrs.sv index 1b190d0..dec4d21 100644 --- a/rv32_csrs.sv +++ b/rv32_csrs.sv @@ -65,7 +65,7 @@ module rv32_csrs ( cycleh <= cycleh + &cycle; cycle <= cycle + 1; - instreth <= instreth + &instret; + instreth <= instreth + (&instret && instr_retired_in); instret <= instret + instr_retired_in; end endmodule