diff options
author | Matt Ettus <matt@ettus.com> | 2010-10-11 16:39:31 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-10-11 16:39:31 -0700 |
commit | e650ed086c68c9e3458c91817fd0b01da261cd57 (patch) | |
tree | 08939649ffba375262356a13983758c9b8a650d5 /usrp2/vrt/vita_tx_deframer.v | |
parent | e45ee09da1f064e58e49d126b3144df198b11fc2 (diff) | |
download | uhd-e650ed086c68c9e3458c91817fd0b01da261cd57.tar.gz uhd-e650ed086c68c9e3458c91817fd0b01da261cd57.tar.bz2 uhd-e650ed086c68c9e3458c91817fd0b01da261cd57.zip |
switch to 32 bit sequence numbers. Will wrap in ~15 hours at max rate
Diffstat (limited to 'usrp2/vrt/vita_tx_deframer.v')
-rw-r--r-- | usrp2/vrt/vita_tx_deframer.v | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usrp2/vrt/vita_tx_deframer.v b/usrp2/vrt/vita_tx_deframer.v index d8575b745..40867cc55 100644 --- a/usrp2/vrt/vita_tx_deframer.v +++ b/usrp2/vrt/vita_tx_deframer.v @@ -15,7 +15,7 @@ module vita_tx_deframer output sample_fifo_src_rdy_o, input sample_fifo_dst_rdy_i, - output [15:0] current_seqnum, + output [31:0] current_seqnum, // FIFO Levels output [15:0] fifo_occupied, @@ -48,9 +48,9 @@ module vita_tx_deframer reg [1:0] vector_phase; wire line_done; - wire [15:0] seqnum = data_i[15:0]; - reg [15:0] seqnum_reg; - wire [15:0] next_seqnum = seqnum_reg + 16'd1; + wire [31:0] seqnum = data_i; + reg [31:0] seqnum_reg; + wire [31:0] next_seqnum = seqnum_reg + 32'd1; wire [3:0] vita_seqnum = data_i[19:16]; reg [3:0] vita_seqnum_reg; wire [3:0] next_vita_seqnum = vita_seqnum_reg[3:0] + 4'd1; @@ -80,7 +80,7 @@ module vita_tx_deframer always @(posedge clk) if(reset | clear_seqnum) begin - seqnum_reg <= 16'hFFFF; + seqnum_reg <= 32'hFFFF_FFFF; vita_seqnum_reg <= 4'hF; end else |