mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 05:07:21 -04:00
wt_dcache_buffer: Avoid out-of-range user signal access (#2698)
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.
This commit is contained in:
parent
1c6b89df5b
commit
ee58bfab94
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue