Correct performance counter increment

Prior to this commit, the next counter value was not based on the
current value.
This commit is contained in:
Pirmin Vogel 2019-06-21 14:08:48 +01:00 committed by Philipp Wagner
parent 157eb5bc11
commit 0ecf71e8e1

View file

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