summaryrefslogtreecommitdiffstats
path: root/usrp2/sdr_lib
diff options
context:
space:
mode:
Diffstat (limited to 'usrp2/sdr_lib')
-rw-r--r--usrp2/sdr_lib/dsp_core_rx.v12
-rw-r--r--usrp2/sdr_lib/rx_frontend.v8
2 files changed, 12 insertions, 8 deletions
diff --git a/usrp2/sdr_lib/dsp_core_rx.v b/usrp2/sdr_lib/dsp_core_rx.v
index ac8fbc6eb..e5cb95fd9 100644
--- a/usrp2/sdr_lib/dsp_core_rx.v
+++ b/usrp2/sdr_lib/dsp_core_rx.v
@@ -21,8 +21,8 @@ module dsp_core_rx
(input clk, input rst,
input set_stb, input [7:0] set_addr, input [31:0] set_data,
- input [17:0] adc_i, input adc_ovf_i,
- input [17:0] adc_q, input adc_ovf_q,
+ input [23:0] adc_i, input adc_ovf_i,
+ input [23:0] adc_q, input adc_ovf_q,
output [31:0] sample,
input run,
@@ -46,7 +46,7 @@ module dsp_core_rx
wire enable_hb1, enable_hb2;
wire [7:0] cic_decim_rate;
- reg [17:0] adc_i_mux, adc_q_mux;
+ reg [23:0] adc_i_mux, adc_q_mux;
wire realmode;
wire swap_iq;
@@ -70,12 +70,12 @@ module dsp_core_rx
if(swap_iq)
begin
adc_i_mux <= adc_q;
- adc_q_mux <= realmode ? 18'd0 : adc_i;
+ adc_q_mux <= realmode ? 24'd0 : adc_i;
end
else
begin
adc_i_mux <= adc_i;
- adc_q_mux <= realmode ? 18'd0 : adc_q;
+ adc_q_mux <= realmode ? 24'd0 : adc_q;
end
always @(posedge clk)
@@ -88,7 +88,7 @@ module dsp_core_rx
cordic_z24 #(.bitwidth(25))
cordic(.clock(clk), .reset(rst), .enable(run),
- .xi({adc_i_mux[17],adc_i_mux,6'd0}),. yi({adc_q_mux[17],adc_q_mux,6'd0}), .zi(phase[31:8]),
+ .xi({adc_i_mux[23],adc_i_mux}),. yi({adc_q_mux[23],adc_q_mux}), .zi(phase[31:8]),
.xo(i_cordic),.yo(q_cordic),.zo() );
clip_reg #(.bits_in(25), .bits_out(24)) clip_i (.clk(clk), .in(i_cordic), .out(i_cordic_clip));
diff --git a/usrp2/sdr_lib/rx_frontend.v b/usrp2/sdr_lib/rx_frontend.v
index a95110240..04b14787e 100644
--- a/usrp2/sdr_lib/rx_frontend.v
+++ b/usrp2/sdr_lib/rx_frontend.v
@@ -7,7 +7,7 @@ module rx_frontend
input [15:0] adc_a, input adc_ovf_a,
input [15:0] adc_b, input adc_ovf_b,
- output [17:0] i_out, output [17:0] q_out,
+ output [23:0] i_out, output [23:0] q_out,
input run,
output [31:0] debug
);
@@ -60,10 +60,14 @@ module rx_frontend
.in1({adc_q_ofs,6'd0}), .in2({{4{corr_q[35]}},corr_q[35:16]}), .strobe_in(1'b1),
.sum(q_final), .strobe_out());
+ assign i_out = i_final;
+ assign q_out = q_final;
+
+ /*
round_sd #(.WIDTH_IN(24),.WIDTH_OUT(18)) round_i
(.clk(clk), .reset(rst), .in(i_final), .strobe_in(1'b1), .out(i_out), .strobe_out());
round_sd #(.WIDTH_IN(24),.WIDTH_OUT(18)) round_q
(.clk(clk), .reset(rst), .in(q_final), .strobe_in(1'b1), .out(q_out), .strobe_out());
-
+ */
endmodule // rx_frontend