diff options
author | Josh Blum <josh@joshknows.com> | 2012-10-01 17:19:04 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-10-05 14:11:01 -0700 |
commit | 8cfb73ed7d3b8b687509349ad6452886ce6d028b (patch) | |
tree | 653cdef7d5ff801471a0e7a778e17d47438cde3d /usrp2 | |
parent | ac9b1049b53b175e3dd7a2ce4c4110476b37272e (diff) | |
download | uhd-8cfb73ed7d3b8b687509349ad6452886ce6d028b.tar.gz uhd-8cfb73ed7d3b8b687509349ad6452886ce6d028b.tar.bz2 uhd-8cfb73ed7d3b8b687509349ad6452886ce6d028b.zip |
e1x0: fix RX ADC I and Q inversion
Diffstat (limited to 'usrp2')
-rw-r--r-- | usrp2/top/E1x0/E1x0.v | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usrp2/top/E1x0/E1x0.v b/usrp2/top/E1x0/E1x0.v index e7b0a4e00..8efb056e9 100644 --- a/usrp2/top/E1x0/E1x0.v +++ b/usrp2/top/E1x0/E1x0.v @@ -133,6 +133,15 @@ module E1x0 .S(1'b0)); // 1-bit set input // ///////////////////////////////////////////////////////////////////////// + // RX ADC -- handles inversion + + reg [11:0] rx_i, rx_q; + always @(posedge clk_fpga) begin + rx_i <= ~DA; + rx_q <= ~DB; + end + + // ///////////////////////////////////////////////////////////////////////// // Main Core wire [35:0] rx_data, tx_data, ctrl_data, resp_data; wire rx_src_rdy, rx_dst_rdy, tx_src_rdy, tx_dst_rdy, resp_src_rdy, resp_dst_rdy, ctrl_src_rdy, ctrl_dst_rdy; @@ -166,7 +175,7 @@ module E1x0 .sclk(sclk), .sen(sen8), .mosi(mosi), .miso(miso), .io_tx(io_tx), .io_rx(io_rx), .tx_i(tx_i), .tx_q(tx_q), - .rx_i(DA), .rx_q(DB), + .rx_i(rx_i), .rx_q(rx_q), .pps_in(PPS_IN) ); // ///////////////////////////////////////////////////////////////////////// |