Fix instret rollover
This commit is contained in:
parent
0939363a3f
commit
63cd024d5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue