summaryrefslogtreecommitdiffstats
path: root/usrp2/gpif/gpif_rd.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2011-03-28 15:09:30 -0700
committerMatt Ettus <matt@ettus.com>2011-05-26 17:31:22 -0700
commitd0bfde4213dcab7fe3c5db404ef0f01354d56f67 (patch)
tree0159284dd5f97912177321d57627765a906e1b52 /usrp2/gpif/gpif_rd.v
parentdcabd7f30c60283533d28376fcf5cd38725fd437 (diff)
downloaduhd-d0bfde4213dcab7fe3c5db404ef0f01354d56f67.tar.gz
uhd-d0bfde4213dcab7fe3c5db404ef0f01354d56f67.tar.bz2
uhd-d0bfde4213dcab7fe3c5db404ef0f01354d56f67.zip
u1p: do padding outside of gpif_rd, in packet_splitter
Diffstat (limited to 'usrp2/gpif/gpif_rd.v')
-rw-r--r--usrp2/gpif/gpif_rd.v11
1 files changed, 1 insertions, 10 deletions
diff --git a/usrp2/gpif/gpif_rd.v b/usrp2/gpif/gpif_rd.v
index e79b275b3..ed0721a36 100644
--- a/usrp2/gpif/gpif_rd.v
+++ b/usrp2/gpif/gpif_rd.v
@@ -32,8 +32,7 @@ module gpif_rd
.arst(sys_rst));
reg [7:0] packet_count;
- reg do_padding;
- wire consume_data_line = gpif_rd & ~gpif_ep & ~read_count[8] & ~do_padding;
+ wire consume_data_line = gpif_rd & ~gpif_ep & ~read_count[8];
wire produce_eop = src_rdy_int & dst_rdy_int & data_int[17];
wire consume_sop = consume_data_line & final_rdy_data & data_o[16];
wire consume_eop = consume_data_line & final_rdy_data & data_o[17];
@@ -54,14 +53,6 @@ module gpif_rd
always @(negedge gpif_clk)
if(gpif_rst)
- do_padding <= 0;
- else if(~gpif_rd)
- do_padding <= 0;
- else if(consume_eop)
- do_padding <= 1;
-
- always @(negedge gpif_clk)
- if(gpif_rst)
gpif_empty_d <= 1;
else
gpif_empty_d <= ~|packet_count;