mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Correct performance counter increment
Prior to this commit, the next counter value was not based on the current value.
This commit is contained in:
parent
157eb5bc11
commit
0ecf71e8e1
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ module ibex_cs_registers #(
|
|||
|
||||
// increment
|
||||
if (mhpmcounter_incr[i] & ~mcountinhibit[i]) begin
|
||||
mhpmcounter_n[i] = mhpmcounter_mask[i] & (mhpmcounter_n[i] + 64'h1);
|
||||
mhpmcounter_n[i] = mhpmcounter_mask[i] & (mhpmcounter_q[i] + 64'h1);
|
||||
end
|
||||
|
||||
// write
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue