summaryrefslogtreecommitdiffstats
path: root/sdr_lib/master_control.v
diff options
context:
space:
mode:
authorjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>2007-05-02 15:50:56 +0000
committerjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>2007-05-02 15:50:56 +0000
commit9c3a39287e7ae106c9ed91cb4d8fac5f176b2888 (patch)
tree2b487ee1ba19c0f2623b4d1b7a04618d2e67e555 /sdr_lib/master_control.v
parentb535098017d3df071b031bd15452a7bba53aab14 (diff)
downloaduhd-9c3a39287e7ae106c9ed91cb4d8fac5f176b2888.tar.gz
uhd-9c3a39287e7ae106c9ed91cb4d8fac5f176b2888.tar.bz2
uhd-9c3a39287e7ae106c9ed91cb4d8fac5f176b2888.zip
Merged r5203:5204 from developer branch jcorgan/atr. Fixed ATR delay enable and reduced delay width to 12 bits.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5228 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'sdr_lib/master_control.v')
-rw-r--r--sdr_lib/master_control.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdr_lib/master_control.v b/sdr_lib/master_control.v
index 6befc4dfd..3bce55f23 100644
--- a/sdr_lib/master_control.v
+++ b/sdr_lib/master_control.v
@@ -114,7 +114,7 @@ module master_control
wire transmit_now;
wire atr_ctl;
- wire [31:0] atr_tx_delay, atr_rx_delay;
+ wire [11:0] atr_tx_delay, atr_rx_delay;
wire [15:0] atr_mask_0, atr_txval_0, atr_rxval_0, atr_mask_1, atr_txval_1, atr_rxval_1, atr_mask_2, atr_txval_2, atr_rxval_2, atr_mask_3, atr_txval_3, atr_rxval_3;
setting_reg #(`FR_ATR_MASK_0) sr_atr_mask_0(.clock(master_clk),.reset(1'b0),.strobe(serial_strobe),.addr(serial_addr),.in(serial_data),.out(atr_mask_0));
@@ -139,7 +139,7 @@ module master_control
assign atr_ctl = 1'b1;
- atr_delay atr_delay(.clk_i(master_clk),.rst_i(tx_dsp_reset),.ena_i(atr_ctl & enable_tx),.tx_empty_i(tx_empty),
+ atr_delay atr_delay(.clk_i(master_clk),.rst_i(tx_dsp_reset),.ena_i(atr_ctl),.tx_empty_i(tx_empty),
.tx_delay_i(atr_tx_delay),.rx_delay_i(atr_rx_delay),.atr_tx_o(transmit_now));
wire [15:0] atr_selected_0 = transmit_now ? atr_txval_0 : atr_rxval_0;