Skip to content

Commit

Permalink
Fix inhibit impact on MCYCLE csr (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanRochCoulon authored Jan 3, 2024
1 parent 2708df9 commit 72b8556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/csr_regfile.sv
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ module csr_regfile
instret_d = instret;
// increment the cycle count
if (!mcountinhibit_q[0]) cycle_d = cycle_q + 1'b1;
else cycle_d = instret;
else cycle_d = cycle_q;
end

eret_o = 1'b0;
Expand Down

0 comments on commit 72b8556

Please sign in to comment.