summaryrefslogtreecommitdiffstats
path: root/sdr_lib/rx_buffer.v
diff options
context:
space:
mode:
authorjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>2007-11-10 19:23:57 +0000
committerjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>2007-11-10 19:23:57 +0000
commit78452721f53679ce8f1c70defc9a4b93ccf69b92 (patch)
treed4960c8584617f7c5da4701df4e931ad444594d0 /sdr_lib/rx_buffer.v
parent881199a5cc09fc98ce34219426ff2dd76a3f25c7 (diff)
downloaduhd-78452721f53679ce8f1c70defc9a4b93ccf69b92.tar.gz
uhd-78452721f53679ce8f1c70defc9a4b93ccf69b92.tar.bz2
uhd-78452721f53679ce8f1c70defc9a4b93ccf69b92.zip
Restores 8-bit sample format support to FPGA code. Synthesized with 7.1SP1.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6858 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'sdr_lib/rx_buffer.v')
-rw-r--r--sdr_lib/rx_buffer.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdr_lib/rx_buffer.v b/sdr_lib/rx_buffer.v
index 7c52925c9..d17294b98 100644
--- a/sdr_lib/rx_buffer.v
+++ b/sdr_lib/rx_buffer.v
@@ -136,7 +136,7 @@ module rx_buffer
phase <= 4'd1;
end
else if(~rx_full)
- if(phase == channels)
+ if(phase == ((bitwidth == 5'd8) ? (channels>>1) : channels))
phase <= 4'd0;
else
phase <= phase + 4'd1;