diff --git a/core/cache_subsystem/cva6_icache_axi_wrapper.sv b/core/cache_subsystem/cva6_icache_axi_wrapper.sv index 9b2c06ee5f..73eb10d597 100644 --- a/core/cache_subsystem/cva6_icache_axi_wrapper.sv +++ b/core/cache_subsystem/cva6_icache_axi_wrapper.sv @@ -50,7 +50,7 @@ module cva6_icache_axi_wrapper import ariane_pkg::*; import wt_cache_pkg::*; #( logic axi_rd_req; logic axi_rd_gnt; - logic [63:0] axi_rd_addr; + logic [AxiAddrWidth-1:0] axi_rd_addr; logic [$clog2(AxiNumWords)-1:0] axi_rd_blen; logic [2:0] axi_rd_size; logic [AxiIdWidth-1:0] axi_rd_id_in; @@ -76,7 +76,7 @@ module cva6_icache_axi_wrapper import ariane_pkg::*; import wt_cache_pkg::*; #( // We have a new or pending read request assign axi_rd_req = icache_mem_data_req | req_valid_q; - assign axi_rd_addr = {{64-riscv::PLEN{1'b0}}, req_data_d.paddr}; + assign axi_rd_addr = {{AxiAddrWidth-riscv::PLEN{1'b0}}, req_data_d.paddr}; // Fetch a full cache line on a cache miss, or a single word on a bypassed access assign axi_rd_blen = (req_data_d.nc) ? '0 : ariane_pkg::ICACHE_LINE_WIDTH/64-1;