diff options
Diffstat (limited to 'usrp2/fifo/dsp_framer36.v')
-rw-r--r-- | usrp2/fifo/dsp_framer36.v | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usrp2/fifo/dsp_framer36.v b/usrp2/fifo/dsp_framer36.v index 77a0ac5f7..d99b1fcaf 100644 --- a/usrp2/fifo/dsp_framer36.v +++ b/usrp2/fifo/dsp_framer36.v @@ -34,12 +34,13 @@ module dsp_framer36 .dataout(tfifo_data), .src_rdy_o(tfifo_out_src_rdy), .dst_rdy_i(tfifo_out_dst_rdy), .space(), .occupied() ); + // FIXME won't handle single-line packets, will show wrong length always @(posedge clk) if(reset | clear) pkt_len_in <= 0; else if(do_xfer_in) if(data_i[32]) // sof - pkt_len_in <= 1; + pkt_len_in <= 2; // fixes off by one since number is stored before increment else pkt_len_in <= pkt_len_in + 1; |