diff options
author | Matt Ettus | 2009-09-04 22:23:27 -0700 |
---|---|---|
committer | Matt Ettus | 2009-09-04 22:23:27 -0700 |
commit | 9e05f0770b92f9c85f09e3629f875011e8f1ac24 (patch) | |
tree | 1c7c39e97bd582b17da7a1c31624cf14ab0830e4 /usrp2/fpga/simple_gemac/simple_gemac_wrapper.v | |
parent | 7ab7f93a1d7eecc873155026ea06d70d2d2b2846 (diff) | |
download | gnuradio-9e05f0770b92f9c85f09e3629f875011e8f1ac24.tar.gz gnuradio-9e05f0770b92f9c85f09e3629f875011e8f1ac24.tar.bz2 gnuradio-9e05f0770b92f9c85f09e3629f875011e8f1ac24.zip |
Implement Eth flow control using pause frames
Not fully tested, but it seems to work without frame errors, sequence
number errors or ethernet overruns. Still of course will get tx underruns
on a slow machine, and the transmitted signal has some issues though.
Diffstat (limited to 'usrp2/fpga/simple_gemac/simple_gemac_wrapper.v')
-rw-r--r-- | usrp2/fpga/simple_gemac/simple_gemac_wrapper.v | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usrp2/fpga/simple_gemac/simple_gemac_wrapper.v b/usrp2/fpga/simple_gemac/simple_gemac_wrapper.v index de445476c..7511f3fb9 100644 --- a/usrp2/fpga/simple_gemac/simple_gemac_wrapper.v +++ b/usrp2/fpga/simple_gemac/simple_gemac_wrapper.v @@ -140,7 +140,12 @@ module simple_gemac_wrapper .ll_src_rdy(tx_ll_src_rdy), .ll_dst_rdy(tx_ll_dst_rdy), .tx_data(tx_data), .tx_valid(tx_valid), .tx_error(tx_error), .tx_ack(tx_ack)); - wire [31:0] debug_tx, debug_rx; + flow_ctrl_rx flow_ctrl_rx + (.pause_request_en(pause_request_en), .pause_time(pause_time), .pause_thresh(pause_thresh), + .rx_clk(rx_clk), .rx_reset(rx_reset), .rx_fifo_space(rx_fifo_space), + .tx_clk(tx_clk), .tx_reset(tx_reset), .pause_req(pause_req), .pause_time_req(pause_time_req)); + + wire [31:0] debug_tx, debug_rx; assign debug_tx = { { tx_ll_data }, { tx_ll_sof, tx_ll_eof, tx_ll_src_rdy, tx_ll_dst_rdy, |