ad_tdd_control: Delete redundant reset from tdd_burst_counter logic

This way we can slightly improve timing.
main
Istvan Csomortani 2018-07-20 12:53:28 +01:00 committed by István Csomortáni
parent 375ccac072
commit 9eba3e8370
1 changed files with 4 additions and 8 deletions

View File

@ -230,16 +230,12 @@ module ad_tdd_control#(
// tdd burst counter // tdd burst counter
always @(posedge clk) begin always @(posedge clk) begin
if (rst == 1'b1) begin
tdd_burst_counter <= 6'b0;
end else begin
if (tdd_cstate == OFF) begin if (tdd_cstate == OFF) begin
tdd_burst_counter <= tdd_burst_count; tdd_burst_counter <= tdd_burst_count;
end else if ((tdd_burst_counter != 0) && (tdd_endof_frame == 1'b1)) begin end else if ((tdd_burst_counter != 0) && (tdd_endof_frame == 1'b1)) begin
tdd_burst_counter <= tdd_burst_counter - 1'b1; tdd_burst_counter <= tdd_burst_counter - 1'b1;
end end
end end
end
always @(posedge clk) begin always @(posedge clk) begin
tdd_last_burst <= (tdd_burst_counter == 6'b1) ? 1'b1 : 1'b0; tdd_last_burst <= (tdd_burst_counter == 6'b1) ? 1'b1 : 1'b0;