diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-19 17:45:08 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-19 17:45:08 -0800 |
commit | 72daf0902c8b8e404774a4e2d2657edf95be5e87 (patch) | |
tree | 0fa7de137a969b838f235dff9a30d8c64a67fdcc /fpga/usrp2/fifo/valve36.v | |
parent | 8e0fbbe47b3c0b2805d2a638da7f363bee2240fd (diff) | |
parent | 1254656ef914482cc111ffa3aca48be5c1e8caaf (diff) | |
download | uhd-72daf0902c8b8e404774a4e2d2657edf95be5e87.tar.gz uhd-72daf0902c8b8e404774a4e2d2657edf95be5e87.tar.bz2 uhd-72daf0902c8b8e404774a4e2d2657edf95be5e87.zip |
Merge branch 'fpga_next' into uhd_with_fpga_next
Diffstat (limited to 'fpga/usrp2/fifo/valve36.v')
-rw-r--r-- | fpga/usrp2/fifo/valve36.v | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fpga/usrp2/fifo/valve36.v b/fpga/usrp2/fifo/valve36.v index b4b23e5a6..d45eee497 100644 --- a/fpga/usrp2/fifo/valve36.v +++ b/fpga/usrp2/fifo/valve36.v @@ -7,7 +7,8 @@ module valve36 output [35:0] data_o, output src_rdy_o, input dst_rdy_i); reg shutoff_int, active; - + wire active_next = (src_rdy_i & dst_rdy_o)? ~data_i[33] : active; + assign data_o = data_i; assign dst_rdy_o = shutoff_int ? 1'b1 : dst_rdy_i; @@ -16,13 +17,13 @@ module valve36 always @(posedge clk) if(reset | clear) active <= 0; - else if(src_rdy_i & dst_rdy_o) - active <= ~data_i[33]; + else + active <= active_next; always @(posedge clk) if(reset | clear) shutoff_int <= 0; - else if(~active) + else if(~active_next) shutoff_int <= shutoff; endmodule // valve36 |