DM accesses to DPC address point to PCM

This commit is contained in:
Matthew 2024-06-09 15:42:21 -05:00
parent 2fc214bb2d
commit 5ba6e4da0f
2 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,7 @@
// wallypipelinedcore
`define TRAPM_REGNO 16'hC000 // 1'b P.ZICSR_SUPPORTED (Read Only)
// src/ifu
`define DPC_REGNO 16'h07B1 // BOZO: Alias to PCM until DPC CSR is added
`define PCM_REGNO 16'hC001 // XLEN P.ZICSR_SUPPORTED | P.BPRED_SUPPORTED
`define INSTRM_REGNO 16'hC002 // 32'b P.ZICSR_SUPPORTED | P.A_SUPPORTED
// ieu/controller

View File

@ -101,6 +101,7 @@ module rad import cvw::*; #(parameter cvw_t P) (
InvalidRegNo = ~P.ZICSR_SUPPORTED;
RegReadOnly = 1;
end
`DPC_REGNO, // BOZO: Alias to PCM until DPC CSR is added
`PCM_REGNO : begin
ShiftCount = SCANCHAINLEN - PCM_IDX;
InvalidRegNo = ~(P.ZICSR_SUPPORTED | P.BPRED_SUPPORTED);