8000 ad_tdd_control: Fix the tdd_burst_counter implementation · analogdevicesinc/hdl@a7b98c3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit a7b98c3

Browse files
Istvan CsomortaniCsomi
Istvan Csomortani
authored andcommitted
ad_tdd_control: Fix the tdd_burst_counter implementation
1 parent 53fa482 commit a7b98c3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

library/common/ad_tdd_control.v

+7-3
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,14 @@ module ad_tdd_control#(
230230

231231
// tdd burst counter
232232
always @(posedge clk) begin
233-
if (tdd_cstate == ON) begin
234-
tdd_burst_counter <= ((tdd_burst_counter > 0) && (tdd_endof_frame == 1'b1)) ? tdd_burst_counter - 1 : tdd_burst_counter;
233+
if (rst == 1'b1) begin
234+
tdd_burst_counter <= 6'b0;
235235
end else begin
236-
tdd_burst_counter <= tdd_burst_count;
236+
if (tdd_cstate == OFF) begin
237+
tdd_burst_counter <= tdd_burst_count;
238+
end else if ((tdd_burst_counter > 0) && (tdd_endof_frame == 1'b1)) begin
239+
tdd_burst_counter <= tdd_burst_counter - 1'b1;
240+
end
237241
end
238242
end
239243

0 commit comments

Comments
 (0)
0