[entropy_src/rtl] repcnt health tests fail pulses
When rep count health tests fails, the signal is on solid.
To properly predict counter values, the fail signal needs to be a pulse.
Signed-off-by: Mark Branstad <mark.branstad@wdc.com>
diff --git a/hw/ip/entropy_src/rtl/entropy_src_repcnt_ht.sv b/hw/ip/entropy_src/rtl/entropy_src_repcnt_ht.sv
index 0e6ac49..5b83e34 100644
--- a/hw/ip/entropy_src/rtl/entropy_src_repcnt_ht.sv
+++ b/hw/ip/entropy_src/rtl/entropy_src_repcnt_ht.sv
@@ -103,7 +103,7 @@
);
// the pulses will be only one clock in length
- assign test_fail_pulse_o = active_i && (test_cnt > '0);
+ assign test_fail_pulse_o = active_i && entropy_bit_vld_i && (|rep_cnt_fail);
assign test_cnt_o = test_cnt;
assign count_err_o = test_cnt_err || (|rep_cntr_err);
diff --git a/hw/ip/entropy_src/rtl/entropy_src_repcnts_ht.sv b/hw/ip/entropy_src/rtl/entropy_src_repcnts_ht.sv
index 0d1f29d..1f41e6a 100644
--- a/hw/ip/entropy_src/rtl/entropy_src_repcnts_ht.sv
+++ b/hw/ip/entropy_src/rtl/entropy_src_repcnts_ht.sv
@@ -100,7 +100,7 @@
// the pulses will be only one clock in length
- assign test_fail_pulse_o = active_i && (test_cnt > '0);
+ assign test_fail_pulse_o = active_i && entropy_bit_vld_i && (|rep_cnt_fail);
assign test_cnt_o = test_cnt;
assign count_err_o = test_cnt_err || (|rep_cntr_err);