summaryrefslogtreecommitdiffstats
path: root/usrp2/gpif/packet_reframer.v
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-03 15:35:07 -0800
committerJosh Blum <josh@joshknows.com>2012-02-03 15:38:01 -0800
commit1b489be22ca07a949a9bea59f0040c0c3d770d8a (patch)
tree000eff4128f3166bc2e593d8bcb97eb538ca7536 /usrp2/gpif/packet_reframer.v
parentae1997f869695726c71cb671bb80e29709c9888d (diff)
downloaduhd-1b489be22ca07a949a9bea59f0040c0c3d770d8a.tar.gz
uhd-1b489be22ca07a949a9bea59f0040c0c3d770d8a.tar.bz2
uhd-1b489be22ca07a949a9bea59f0040c0c3d770d8a.zip
b100: connect all clears for gpif
Diffstat (limited to 'usrp2/gpif/packet_reframer.v')
-rw-r--r--usrp2/gpif/packet_reframer.v13
1 files changed, 3 insertions, 10 deletions
diff --git a/usrp2/gpif/packet_reframer.v b/usrp2/gpif/packet_reframer.v
index 0d8232653..1e913fd77 100644
--- a/usrp2/gpif/packet_reframer.v
+++ b/usrp2/gpif/packet_reframer.v
@@ -38,7 +38,7 @@ module packet_reframer
always @(posedge clk)
if(reset | clear)
- state <= 0;
+ state <= RF_IDLE;
else
if(src_rdy_i & dst_rdy_i)
case(state)
@@ -49,16 +49,9 @@ module packet_reframer
end
RF_PKT :
begin
- if(length == 2)
- begin
- state <= RF_IDLE;
- length <= 0;
- end
- else
- length <= length - 1;
+ if(eof_out) state <= RF_IDLE;
+ length <= length - 1;
end
- default :
- state <= RF_IDLE;
endcase // case (state)
assign dst_rdy_o = dst_rdy_i; // this is a little pessimistic but ok