aboutsummaryrefslogtreecommitdiffstats
path: root/simple_gemac/simple_gemac_tb.v
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-03-31 18:03:20 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-03-31 18:03:20 +0000
commit1d42a9f3b19b5a506bf1b16cc5079ddf6f842213 (patch)
tree6f4372579c1853f29ad493b4773f579796edebb0 /simple_gemac/simple_gemac_tb.v
parent541facc9474da424ad8e36e407a2a55301c52b77 (diff)
downloaduhd-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_tb.v')
-rw-r--r--simple_gemac/simple_gemac_tb.v10
1 files changed, 8 insertions, 2 deletions
diff --git a/simple_gemac/simple_gemac_tb.v b/simple_gemac/simple_gemac_tb.v
index 231a8b2ec..481c6ebab 100644
--- a/simple_gemac/simple_gemac_tb.v
+++ b/simple_gemac/simple_gemac_tb.v
@@ -9,7 +9,7 @@ module simple_gemac_tb;
initial #1000 reset = 0;
always #50 clk = ~clk;
- wire GMII_RX_DV, GMII_RX_ER, GMII_TX_EN, GMII_TX_ER;
+ wire GMII_RX_DV, GMII_RX_ER, GMII_TX_EN, GMII_TX_ER, GMII_GTX_CLK;
wire [7:0] GMII_RXD, GMII_TXD;
wire rx_valid, rx_error, rx_ack;
@@ -20,7 +20,13 @@ module simple_gemac_tb;
reg [7:0] tx_data;
wire [15:0] pause_time = 16'hBEEF;
- reg pause_req = 0;
+ reg pause_req = 0;
+
+ reg GMII_RX_CLK;
+ always @(GMII_GTX_CLK)
+ GMII_RX_CLK <= #30 GMII_GTX_CLK;
+
+// wire GMII_RX_CLK = #30 GMII_GTX_CLK;
simple_gemac simple_gemac
(.clk125(clk), .reset(reset),