aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2011-09-30 13:58:04 -0700
committerMatt Ettus <matt@ettus.com>2011-10-26 15:57:22 -0700
commitc215afef149acf35cca87d1a5053d2c48957652c (patch)
treeebb070e8271902b2125d61dac2eff76196c6864c /usrp2
parente21b2852a7d3eb46ba564aad3883934b7a8dd8e5 (diff)
downloaduhd-c215afef149acf35cca87d1a5053d2c48957652c.tar.gz
uhd-c215afef149acf35cca87d1a5053d2c48957652c.tar.bz2
uhd-c215afef149acf35cca87d1a5053d2c48957652c.zip
dsp: ability to set rx dc offset to a fixed value
Diffstat (limited to 'usrp2')
-rw-r--r--usrp2/sdr_lib/rx_dcoffset.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/usrp2/sdr_lib/rx_dcoffset.v b/usrp2/sdr_lib/rx_dcoffset.v
index 9840e9e1f..04d7795c0 100644
--- a/usrp2/sdr_lib/rx_dcoffset.v
+++ b/usrp2/sdr_lib/rx_dcoffset.v
@@ -42,8 +42,9 @@ module rx_dcoffset
end
else if(set_now)
begin
- //integrator <= {set_data[30:0],{(31-int_width){1'b0}}};
fixed <= set_data[31];
+ if(set_data[30])
+ integrator <= {set_data[29:0],{(int_width-30){1'b0}}};
end
else if(~fixed)
integrator <= integrator + {{(alpha_shift){out[WIDTH-1]}},out};