icache_axi_wrapper: Use AxiAddrWidth parameter (#1163)

This commit is contained in:
Nils Wistoff 2023-04-08 08:43:08 +02:00 committed by GitHub
parent 22ae096ddb
commit e51eec2904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;