From 1d42a9f3b19b5a506bf1b16cc5079ddf6f842213 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 31 Mar 2009 18:03:20 +0000 Subject: 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 --- simple_gemac/simple_gemac_tb.v | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'simple_gemac/simple_gemac_tb.v') 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), -- cgit v1.2.3