Skip to content

Commit

Permalink
icache_axi_wrapper: Use AxiAddrWidth parameter (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
niwis authored Apr 8, 2023
1 parent 22ae096 commit e51eec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/cache_subsystem/cva6_icache_axi_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e51eec2

Please sign in to comment.