From 544e2b8ad0b7d802c9bb4a07bd4867e326a13212 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Thu, 11 Apr 2019 09:30:16 +0100 Subject: [PATCH] util_pulse_gen: Pulse should not be generated if module is in reset --- library/common/util_pulse_gen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/common/util_pulse_gen.v b/library/common/util_pulse_gen.v index c65cbf52e..ce55698a6 100644 --- a/library/common/util_pulse_gen.v +++ b/library/common/util_pulse_gen.v @@ -96,7 +96,7 @@ module util_pulse_gen #( // generate pulse with a specified width always @ (posedge clk) begin - if (end_of_period_s == 1'b1) begin + if ((end_of_period_s == 1'b1) || (rstn == 1'b0)) begin pulse <= 1'b0; end else if (pulse_period_cnt == pulse_width_d) begin pulse <= 1'b1;