ad_tdd_sync: Fix reset value of the pulse_counter

main
Istvan Csomortani 2015-11-13 18:31:24 +02:00
parent c88cbf78af
commit 9ba8c059ce
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ module ad_tdd_sync (
pulse_counter <= 0;
sync_pulse <= 0;
end else begin
pulse_counter <= (sync_pulse == 1'b1) ? pulse_counter + 1 : 3'h0;
pulse_counter <= (sync_pulse == 1'b1) ? pulse_counter + 1 : {PULSE_CNTR_WIDTH{1'h0}};
if(sync_period_eof == 1'b1) begin
sync_pulse <= 1'b1;
end else if(pulse_counter == {PULSE_CNTR_WIDTH{1'b1}}) begin