fixed errors
This commit is contained in:
parent
006b54c4bc
commit
808821bb8c
|
@ -35,15 +35,16 @@ module reset_generator(
|
|||
|
||||
`ifdef VIVADO_SYNTHESIS
|
||||
initial begin
|
||||
pulse <= INITIAL_VALUE;
|
||||
clkdiv_counter <= 0;
|
||||
active_cycle_counter <= 0;
|
||||
pulse <= INITIAL_VALUE;
|
||||
end
|
||||
`endif
|
||||
|
||||
// Wait a number of clock cycles, hold the initial value
|
||||
always @(posedge clk) begin
|
||||
if (active_cycle_counter == ACTIVE_CYCLES) begin
|
||||
pulse <= ~INITIAL_VALUE;
|
||||
pulse <= ~pulse;
|
||||
end else begin
|
||||
active_cycle_counter <= active_cycle_counter + 1;
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue