util_pulse_gen: Pulse should not be generated if module is in reset

main
Istvan Csomortani 2019-04-11 09:30:16 +01:00 committed by István Csomortáni
parent 75e4c844ba
commit 544e2b8ad0
1 changed files with 1 additions and 1 deletions

View File

@ -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;