diff options
author | Matt Ettus <matt@ettus.com> | 2011-02-02 16:22:29 -0800 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2011-02-16 16:18:57 -0800 |
commit | 2171188523f36a385c17c47aeb5c415085d163f4 (patch) | |
tree | 0d4998d96e41f7e499ae201fa7ca38b54f481290 /usrp2/fifo/fifo_pacer.v | |
parent | 611df3ea2b390add255b78752f7a278ed4ac7b30 (diff) | |
download | uhd-2171188523f36a385c17c47aeb5c415085d163f4.tar.gz uhd-2171188523f36a385c17c47aeb5c415085d163f4.tar.bz2 uhd-2171188523f36a385c17c47aeb5c415085d163f4.zip |
put these files in the right place. newfifo is long gone.
Diffstat (limited to 'usrp2/fifo/fifo_pacer.v')
-rw-r--r-- | usrp2/fifo/fifo_pacer.v | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/usrp2/fifo/fifo_pacer.v b/usrp2/fifo/fifo_pacer.v new file mode 100644 index 000000000..1bf03ab6e --- /dev/null +++ b/usrp2/fifo/fifo_pacer.v @@ -0,0 +1,24 @@ + + +module fifo_pacer + (input clk, + input reset, + input [7:0] rate, + input enable, + input src1_rdy_i, output dst1_rdy_o, + output src2_rdy_o, input dst2_rdy_i, + output underrun, overrun); + + wire strobe; + + cic_strober strober (.clock(clk), .reset(reset), .enable(enable), + .rate(rate), .strobe_fast(1), .strobe_slow(strobe)); + + wire all_ready = src1_rdy_i & dst2_rdy_i; + assign dst1_rdy_o = all_ready & strobe; + assign src2_rdy_o = dst1_rdy_o; + + assign underrun = strobe & ~src1_rdy_i; + assign overrun = strobe & ~dst2_rdy_i; + +endmodule // fifo_pacer |