From 88c95171c310ca07b0c866724fe0cde10eeef9dd Mon Sep 17 00:00:00 2001 From: Nils Wistoff Date: Thu, 9 Jan 2025 17:39:17 +1100 Subject: [PATCH] wt_dcache_buffer: Avoid out-of-range user signal access 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 Signed-off-by: Nils Wistoff --- core/cache_subsystem/wt_dcache_wbuffer.sv | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/cache_subsystem/wt_dcache_wbuffer.sv b/core/cache_subsystem/wt_dcache_wbuffer.sv index be2029952c..ef3a62ef33 100644 --- a/core/cache_subsystem/wt_dcache_wbuffer.sv +++ b/core/cache_subsystem/wt_dcache_wbuffer.sv @@ -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