From a21be27fd6b997e63dfb6bb352a8ac64dc0dd558 Mon Sep 17 00:00:00 2001 From: Pirmin Vogel Date: Mon, 6 Jan 2025 14:00:15 +0100 Subject: [PATCH] [entropy_src/rtl] Fix reg reference and default value for stubbed impl We currently don't use the stubbing anywhere in the codebase but some lint tools tend to flag issues despite the corresponding parameter being disabled. This resolves lowRISC/OpenTitan#24231. Signed-off-by: Pirmin Vogel --- hw/ip/entropy_src/rtl/entropy_src.sv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/ip/entropy_src/rtl/entropy_src.sv b/hw/ip/entropy_src/rtl/entropy_src.sv index 2ee58b7c2af6d..dbdb100b17b1a 100644 --- a/hw/ip/entropy_src/rtl/entropy_src.sv +++ b/hw/ip/entropy_src/rtl/entropy_src.sv @@ -209,8 +209,7 @@ module entropy_src stub_hw2reg.fw_ov_rd_data.d = stub_lfsr_value[31:0]; stub_hw2reg.entropy_data.d = stub_lfsr_value[31:0]; stub_hw2reg.debug_status.main_sm_idle.d = 1'b1; - // need to move this to package so that it can be referenced - stub_hw2reg.debug_status.main_sm_state.d = 8'b01110110; + stub_hw2reg.main_sm_state.d = entropy_src_main_sm_pkg::Idle; stub_hw2reg.intr_state.es_entropy_valid.de = stub_es_valid; stub_hw2reg.intr_state.es_entropy_valid.d = 1'b1;