[flash/dv] Add correct initial values for otf temp variables
Signed-off-by: Eitan Shapira <eitanshapira89@gmail.com>
diff --git a/hw/ip/flash_ctrl/dv/env/seq_lib/flash_ctrl_otf_base_vseq.sv b/hw/ip/flash_ctrl/dv/env/seq_lib/flash_ctrl_otf_base_vseq.sv
index 3873b7e..2e01aa0 100644
--- a/hw/ip/flash_ctrl/dv/env/seq_lib/flash_ctrl_otf_base_vseq.sv
+++ b/hw/ip/flash_ctrl/dv/env/seq_lib/flash_ctrl_otf_base_vseq.sv
@@ -163,7 +163,7 @@
// overwrite secret_partition cfg with hw_cfg
rand_info[0][0][1] = conv2env_mp_info(flash_ctrl_pkg::CfgAllowRead);
rand_info[0][0][2] = conv2env_mp_info(flash_ctrl_pkg::CfgAllowRead);
- endfunction // post_randomize
+ endfunction : post_randomize
virtual task pre_start();
bit csr_test_mode = 0;
@@ -257,7 +257,9 @@
flash_ctrl_intr_enable(6'h3f);
end
end
- endtask
+ otf_wr_pct_temp = cfg.otf_wr_pct;
+ otf_bwr_pct_temp = cfg.otf_bwr_pct;
+ endtask : pre_start
// On the fly scoreboard mode
// This will disable reference memory check in the end of the test