mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 21:57:11 -04:00
csr_regfile : condition RTL to improve code coverage
This commit is contained in:
parent
79ad41dc44
commit
fac99d2ccf
1 changed files with 1 additions and 1 deletions
|
@ -2613,7 +2613,7 @@ module csr_regfile
|
|||
wfi_q <= 1'b0;
|
||||
// pmp
|
||||
for (int i = 0; i < 64; i++) begin
|
||||
if (i < CVA6Cfg.NrPMPEntries) begin
|
||||
if (CVA6Cfg.NrPMPEntries != 0 && i < CVA6Cfg.NrPMPEntries) begin
|
||||
pmpcfg_q[i] <= riscv::pmpcfg_t'(CVA6Cfg.PMPCfgRstVal[i]);
|
||||
pmpaddr_q[i] <= CVA6Cfg.PMPAddrRstVal[i][CVA6Cfg.PLEN-3:0];
|
||||
end else begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue