Skip to content

Commit

Permalink
wt_dcache_buffer: Avoid out-of-range user signal access
Browse files Browse the repository at this point in the history
If the data user signal is disabled and the user bus width is reduced,
the slice operator into the user field will cause elaboration errors.
Since the faulty else block is anyways without effect, just remove it.

Co-authored-by: Paul Scheffler <[email protected]>
Signed-off-by: Nils Wistoff <[email protected]>
  • Loading branch information
niwis and paulsc96 committed Jan 9, 2025
1 parent 5a484fc commit 88c9517
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/cache_subsystem/wt_dcache_wbuffer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,6 @@ module wt_dcache_wbuffer
wbuffer_d[wr_ptr].data[k*8+:8] = req_port_i.data_wdata[k*8+:8];
if (CVA6Cfg.DATA_USER_EN) begin
wbuffer_d[wr_ptr].user[k*8+:8] = req_port_i.data_wuser[k*8+:8];
end else begin
wbuffer_d[wr_ptr].user[k*8+:8] = '0;
end
end
end
Expand Down

0 comments on commit 88c9517

Please sign in to comment.