mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
Make sure that the correct register is accessed in ASIC for PCCRs
This commit is contained in:
parent
ac384a23d4
commit
c73c6acc85
1 changed files with 6 additions and 1 deletions
|
@ -321,8 +321,13 @@ module riscv_cs_registers
|
|||
is_pccr = 1'b1;
|
||||
|
||||
pccr_index = csr_addr_i[4:0];
|
||||
|
||||
`ifndef PULP_FPGA_EMUL
|
||||
perf_rdata = PCCR_q[csr_addr_i[4:0]];
|
||||
`elsif SYNTHESIS
|
||||
perf_rdata = PCCR_q[0];
|
||||
`else
|
||||
perf_rdata = PCCR_q[csr_addr_i[4:0]];
|
||||
`endif
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue