Skip to content

Commit

Permalink
fixup! cache_ctrl: Generalise AXI offset generation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Nov 6, 2024
1 parent 4a098a4 commit 36dd59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/cache_subsystem/cache_ctrl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module cache_ctrl
cl_offset = mem_req_q.index[CVA6Cfg.DCACHE_OFFSET_WIDTH-1:$clog2(CVA6Cfg.XLEN/8)] <<
$clog2(CVA6Cfg.XLEN); // shift by log2(XLEN) to the left
// XLEN offset within AXI request
axi_offset = (mem_req_q.index >> $clog2(CVA6Cfg.XLEN/8)) << $clog2(CVA6Cfg.XLEN);
axi_offset = (mem_req_q.index >> $clog2(CVA6Cfg.XLEN / 8)) << $clog2(CVA6Cfg.XLEN);
// default assignments
state_d = state_q;
mem_req_d = mem_req_q;
Expand Down

0 comments on commit 36dd59a

Please sign in to comment.