diff options
author | Josh Blum <josh@joshknows.com> | 2012-01-30 23:04:31 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-01-30 23:04:31 -0800 |
commit | 531a7910c22dce40de5ddccee0cb05275b73fe32 (patch) | |
tree | 74f1c6558737a8e7c31a6ded50b56fc4cf732209 /usrp2/sdr_lib | |
parent | 327c25864e3d09fdc34fe9f438dded1329b0c65c (diff) | |
download | uhd-531a7910c22dce40de5ddccee0cb05275b73fe32.tar.gz uhd-531a7910c22dce40de5ddccee0cb05275b73fe32.tar.bz2 uhd-531a7910c22dce40de5ddccee0cb05275b73fe32.zip |
dsp rework: finished engine HEADER_OFFSET stuff, add post_engine_buffering
Diffstat (limited to 'usrp2/sdr_lib')
-rw-r--r-- | usrp2/sdr_lib/dspengine_8to16.v | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usrp2/sdr_lib/dspengine_8to16.v b/usrp2/sdr_lib/dspengine_8to16.v index 66568bc12..7319451e5 100644 --- a/usrp2/sdr_lib/dspengine_8to16.v +++ b/usrp2/sdr_lib/dspengine_8to16.v @@ -132,7 +132,7 @@ module dspengine_8to16 dsp_state <= DSP_READ; write_adr <= write_adr - 1; read_adr <= read_adr - 1; - new_header[15:0] <= write_adr; // length = addr of trailer + 1 + new_header[15:0] <= write_adr + (1 - HEADER_OFFSET); // length = addr of trailer + 1 end DSP_READ : @@ -145,7 +145,7 @@ module dspengine_8to16 begin write_adr <= write_adr - 1; odd <= 0; - if(write_adr == (hdr_length_reg+1)) + if(write_adr == (hdr_length_reg+HEADER_OFFSET)) dsp_state <= DSP_WRITE_HEADER; else if(odd) dsp_state <= DSP_READ; @@ -156,7 +156,7 @@ module dspengine_8to16 DSP_WRITE_0 : begin write_adr <= write_adr - 1; - if(write_adr == (hdr_length_reg+1)) + if(write_adr == (hdr_length_reg+HEADER_OFFSET)) dsp_state <= DSP_WRITE_HEADER; else dsp_state <= DSP_READ; @@ -167,8 +167,8 @@ module dspengine_8to16 DSP_DONE : begin - read_adr <= 1; - write_adr <= 1; + read_adr <= HEADER_OFFSET; + write_adr <= HEADER_OFFSET; dsp_state <= DSP_IDLE; end endcase // case (dsp_state) |