mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 13:47:13 -04:00
icache_axi_wrapper: Use AxiAddrWidth parameter (#1163)
This commit is contained in:
parent
22ae096ddb
commit
e51eec2904
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue