From 8e36d8fe4f05d01584417b9b94e399230b911361 Mon Sep 17 00:00:00 2001 From: Caleb Whitehead Date: Wed, 13 Nov 2024 13:02:35 -0800 Subject: [PATCH] Syntax fix for clean lint (multibit signal used as boolean) --- src/riscv_core/veer_el2/rtl/dec/el2_dec_pmp_ctl.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riscv_core/veer_el2/rtl/dec/el2_dec_pmp_ctl.sv b/src/riscv_core/veer_el2/rtl/dec/el2_dec_pmp_ctl.sv index 1dc734d3a..3459843d7 100644 --- a/src/riscv_core/veer_el2/rtl/dec/el2_dec_pmp_ctl.sv +++ b/src/riscv_core/veer_el2/rtl/dec/el2_dec_pmp_ctl.sv @@ -110,7 +110,7 @@ module el2_dec_pmp_ctl `ifdef RV_SMEPMP assign csr_wdata = raw_wdata & 8'b10011111; `else - assign csr_wdata = (raw_wdata & 8'b00000001) ? (raw_wdata & 8'b10011111) : (raw_wdata & 8'b10011101); + assign csr_wdata = raw_wdata[0] ? (raw_wdata & 8'b10011111) : (raw_wdata & 8'b10011101); `endif rvdffe #(8) pmpcfg_ff (.*, .clk(free_l2clk),