[doc] Fixed reset values in flash ctrl and hmac Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/hw/ip/flash_ctrl/data/flash_ctrl.hjson b/hw/ip/flash_ctrl/data/flash_ctrl.hjson index cd01389..d7dbeea 100644 --- a/hw/ip/flash_ctrl/data/flash_ctrl.hjson +++ b/hw/ip/flash_ctrl/data/flash_ctrl.hjson
@@ -351,10 +351,10 @@ hwaccess: "hwo", hwext: "true", fields: [ - { bits: "0", name: "rd_full", desc: "Flash read fifo full, software must consume data" }, - { bits: "1", name: "rd_empty", desc: "Flash read fifo empty" }, + { bits: "0", name: "rd_full", desc: "Flash read fifo full, software must consume data"}, + { bits: "1", name: "rd_empty", desc: "Flash read fifo empty", resval: "1"}, { bits: "2", name: "prog_full", desc: "Flash program fifo full"}, - { bits: "3", name: "prog_empty", desc: "Flash program fifo empty, software must provide data"}, + { bits: "3", name: "prog_empty", desc: "Flash program fifo empty, software must provide data", resval: "1"}, { bits: "4", name: "init_wip", desc: "Flash controller undergoing init"}, { bits: "16:8", name: "error_page", desc: "Flash controller error page."}, { bits: "17", name: "error_bank", desc: "Flash controller error bank."},
diff --git a/hw/ip/hmac/data/hmac.hjson b/hw/ip/hmac/data/hmac.hjson index afe5963..2b7a4a3 100644 --- a/hw/ip/hmac/data/hmac.hjson +++ b/hw/ip/hmac/data/hmac.hjson
@@ -99,7 +99,8 @@ fields: [ { bits: "0", name: "fifo_empty", - desc: "FIFO empty" + desc: "FIFO empty", + resval: "1" } { bits: "1", name: "fifo_full",
diff --git a/hw/ip/hmac/dv/env/hmac_env_cfg.sv b/hw/ip/hmac/dv/env/hmac_env_cfg.sv index b324aaf..a7c1a74 100644 --- a/hw/ip/hmac/dv/env/hmac_env_cfg.sv +++ b/hw/ip/hmac/dv/env/hmac_env_cfg.sv
@@ -17,14 +17,6 @@ en_mem_read = 0; mem_ranges.push_back('{HMAC_MSG_FIFO_BASE, HMAC_MSG_FIFO_LAST_ADDR}); list_of_alerts = {"msg_push_sha_disabled"}; - endfunction - - // ral flow is limited in terms of setting correct field access policies and reset values - // We apply those fixes here - please note these fixes need to be reflected in the scoreboard - protected virtual function void apply_ral_fixes(); - // fix access policies - // fix reset values for fields with "hwext" attribute set - ral.status.fifo_empty.set_reset(1'b1); // set num_interrupts & num_alerts which will be used to create coverage and more num_interrupts = ral.intr_state.get_n_used_bits(); endfunction