Fix instret rollover

This commit is contained in:
Graham Edgecombe 2017-12-29 16:23:33 +00:00
parent 0939363a3f
commit 63cd024d5c

View file

@ -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