mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 13:27:10 -04:00
Reading a perf counter above the implemented ones is now returning 0
This commit is contained in:
parent
22dd8f3ce0
commit
bac9faedf1
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ module zeroriscy_cs_registers
|
|||
`ifdef ASIC_SYNTHESIS
|
||||
perf_rdata = PCCR_q[0];
|
||||
`else
|
||||
perf_rdata = PCCR_q[csr_addr_i[4:0]];
|
||||
perf_rdata = csr_addr_i[4:0] < N_PERF_COUNTERS ? PCCR_q[csr_addr_i[4:0]] : '0;
|
||||
`endif
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue