summaryrefslogtreecommitdiffstats
path: root/usrp2/sdr_lib
diff options
context:
space:
mode:
Diffstat (limited to 'usrp2/sdr_lib')
-rw-r--r--usrp2/sdr_lib/dspengine_8to16.v10
1 files changed, 8 insertions, 2 deletions
diff --git a/usrp2/sdr_lib/dspengine_8to16.v b/usrp2/sdr_lib/dspengine_8to16.v
index 7319451e5..ca808d2a6 100644
--- a/usrp2/sdr_lib/dspengine_8to16.v
+++ b/usrp2/sdr_lib/dspengine_8to16.v
@@ -146,7 +146,10 @@ module dspengine_8to16
write_adr <= write_adr - 1;
odd <= 0;
if(write_adr == (hdr_length_reg+HEADER_OFFSET))
- dsp_state <= DSP_WRITE_HEADER;
+ begin
+ write_adr <= HEADER_OFFSET;
+ dsp_state <= DSP_WRITE_HEADER;
+ end
else if(odd)
dsp_state <= DSP_READ;
else
@@ -157,7 +160,10 @@ module dspengine_8to16
begin
write_adr <= write_adr - 1;
if(write_adr == (hdr_length_reg+HEADER_OFFSET))
- dsp_state <= DSP_WRITE_HEADER;
+ begin
+ write_adr <= HEADER_OFFSET;
+ dsp_state <= DSP_WRITE_HEADER;
+ end
else
dsp_state <= DSP_READ;
end