aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/sdr_lib/rx_frontend.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2011-03-11 13:43:51 -0800
committerMatt Ettus <matt@ettus.com>2011-06-08 10:52:51 -0700
commit2bad9b4d2711ad3aeef2e3b35153b2463874940e (patch)
treea3f8b7c1d4d07dc8d8d7e6ca092bdf3f22ff1955 /usrp2/sdr_lib/rx_frontend.v
parent883d5af46bf756908a2fe45dea8a7d3673f7cb0a (diff)
downloaduhd-2bad9b4d2711ad3aeef2e3b35153b2463874940e.tar.gz
uhd-2bad9b4d2711ad3aeef2e3b35153b2463874940e.tar.bz2
uhd-2bad9b4d2711ad3aeef2e3b35153b2463874940e.zip
u2/u2p: misc connection and compilation fixes
Diffstat (limited to 'usrp2/sdr_lib/rx_frontend.v')
-rw-r--r--usrp2/sdr_lib/rx_frontend.v16
1 files changed, 8 insertions, 8 deletions
diff --git a/usrp2/sdr_lib/rx_frontend.v b/usrp2/sdr_lib/rx_frontend.v
index f5271a207..3b05a4a08 100644
--- a/usrp2/sdr_lib/rx_frontend.v
+++ b/usrp2/sdr_lib/rx_frontend.v
@@ -15,7 +15,7 @@ module rx_frontend
reg [15:0] adc_i, adc_q;
wire [17:0] adc_i_ofs, adc_q_ofs;
wire [35:0] corr_i, corr_q;
- wire [17:0] scale_i, scale_q;
+ wire [17:0] mag_corr,phase_corr;
wire [7:0] muxctrl;
wire [23:0] i_final, q_final;
@@ -41,11 +41,11 @@ module rx_frontend
setting_reg #(.my_addr(BASE+1),.width(18)) sr_1
(.clk(clk),.rst(rst),.strobe(set_stb),.addr(set_addr),
- .in(set_data),.out(scale_i),.changed());
+ .in(set_data),.out(mag_corr),.changed());
setting_reg #(.my_addr(BASE+2),.width(18)) sr_2
(.clk(clk),.rst(rst),.strobe(set_stb),.addr(set_addr),
- .in(set_data),.out(scale_q),.changed());
+ .in(set_data),.out(phase_corr),.changed());
rx_dcoffset #(.WIDTH(18),.ADDR(BASE+3)) rx_dcoffset_i
(.clk(clk),.rst(rst),.set_stb(set_stb),.set_addr(set_addr),.set_data(set_data),
@@ -55,12 +55,12 @@ module rx_frontend
(.clk(clk),.rst(rst),.set_stb(set_stb),.set_addr(set_addr),.set_data(set_data),
.in({adc_q,2'b00}),.out(adc_q_ofs));
- MULT18X18S mult_i
- (.P(corr_q), .A(adc_i_ofs), .B(scale_i), .C(clk), .CE(1), .R(rst) );
-
- MULT18X18S mult_q
- (.P(corr_i), .A(adc_i_ofs), .B(scale_q), .C(clk), .CE(1), .R(rst) );
+ MULT18X18S mult_mag_corr
+ (.P(corr_i), .A(adc_i_ofs), .B(mag_corr), .C(clk), .CE(1), .R(rst) );
+ MULT18X18S mult_phase_corr
+ (.P(corr_q), .A(adc_i_ofs), .B(phase_corr), .C(clk), .CE(1), .R(rst) );
+
add2_and_clip_reg #(.WIDTH(24)) add_clip_i
(.clk(clk), .rst(rst),
.in1({adc_i_ofs,6'd0}), .in2({{4{corr_i[35]}},corr_i[35:16]}), .sum(i_final));