diff options
author | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-03-31 18:03:20 +0000 |
---|---|---|
committer | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-03-31 18:03:20 +0000 |
commit | 1d42a9f3b19b5a506bf1b16cc5079ddf6f842213 (patch) | |
tree | 6f4372579c1853f29ad493b4773f579796edebb0 /simple_gemac/simple_gemac_rx.v | |
parent | 541facc9474da424ad8e36e407a2a55301c52b77 (diff) | |
download | uhd-1d42a9f3b19b5a506bf1b16cc5079ddf6f842213.tar.gz uhd-1d42a9f3b19b5a506bf1b16cc5079ddf6f842213.tar.bz2 uhd-1d42a9f3b19b5a506bf1b16cc5079ddf6f842213.zip |
we now inhibit our own sending when a received pause frame comes. _rx.v is currently only a skeleton for testing pause
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10721 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'simple_gemac/simple_gemac_rx.v')
-rw-r--r-- | simple_gemac/simple_gemac_rx.v | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/simple_gemac/simple_gemac_rx.v b/simple_gemac/simple_gemac_rx.v new file mode 100644 index 000000000..8650a69a9 --- /dev/null +++ b/simple_gemac/simple_gemac_rx.v @@ -0,0 +1,34 @@ + + +module simple_gemac_rx + (input clk125, input reset, + input GMII_RX_CLK, input GMII_RX_DV, input GMII_RX_ER, input [7:0] GMII_RXD, + output rx_clk, output [7:0] rx_data, output rx_valid, output rx_error, output rx_ack, + output reg [15:0] pause_quanta_rcvd, output reg pause_rcvd ); + + + + initial + begin + pause_rcvd <= 0; + pause_quanta_rcvd = 10; + #50000 pause_rcvd <= 1; + @(posedge rx_clk) + pause_rcvd <= 0; + repeat (100) + @(posedge rx_clk); + pause_quanta_rcvd <= 15; + pause_rcvd <= 1; + @(posedge rx_clk) + pause_rcvd <= 0; + repeat (1200) + @(posedge rx_clk); + pause_rcvd <= 1; + @(posedge rx_clk) + pause_rcvd <= 0; + + end + + assign rx_clk = GMII_RX_CLK; + +endmodule // simple_gemac_rx |