axi_ad9361_tdd: Register the tdd_sync_cntr output

main
Istvan Csomortani 2017-02-23 11:31:23 +02:00
parent c598e84258
commit 2b354af876
1 changed files with 11 additions and 1 deletions

View File

@ -117,6 +117,7 @@ module axi_ad9361_tdd (
reg tdd_tx_valid = 1'b0;
reg tdd_rx_valid = 1'b0;
reg tdd_sync_cntr = 1'b0;
// internal signals
@ -163,7 +164,16 @@ module axi_ad9361_tdd (
wire tdd_tx_dp_en_s;
assign tdd_enabled = tdd_enable_s;
assign tdd_sync_cntr = ~(tdd_enable_s & tdd_terminal_type_s);
// syncronization control signal
always @(posedge clk) begin
if (tdd_enable_s == 1'b1) begin
tdd_sync_cntr <= ~tdd_terminal_type_s;
end else begin
tdd_sync_cntr <= 1'b0;
end
end
// tx/rx data flow control