diff options
author | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-04-03 22:34:15 +0000 |
---|---|---|
committer | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-04-03 22:34:15 +0000 |
commit | b1193c5b9e43bf898b7c924471e430253f2e58a7 (patch) | |
tree | 5ae52ad7ed0d5cee1d91c0d30853e57213364406 /simple_gemac/simple_gemac.v | |
parent | 054841c4bc1f596d646733613766993f56be1ad6 (diff) | |
download | uhd-b1193c5b9e43bf898b7c924471e430253f2e58a7.tar.gz uhd-b1193c5b9e43bf898b7c924471e430253f2e58a7.tar.bz2 uhd-b1193c5b9e43bf898b7c924471e430253f2e58a7.zip |
made pause enabling a pin so we can set it
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10759 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'simple_gemac/simple_gemac.v')
-rw-r--r-- | simple_gemac/simple_gemac.v | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/simple_gemac/simple_gemac.v b/simple_gemac/simple_gemac.v index 84a997666..adcc2d2fb 100644 --- a/simple_gemac/simple_gemac.v +++ b/simple_gemac/simple_gemac.v @@ -6,7 +6,7 @@ module simple_gemac input GMII_RX_CLK, input GMII_RX_DV, input GMII_RX_ER, input [7:0] GMII_RXD, // Flow Control Interface - input pause_req, input [15:0] pause_time, + input pause_req, input [15:0] pause_time, input pause_en, // RX Client Interface output rx_clk, output [7:0] rx_data, output rx_valid, output rx_error, output rx_ack, @@ -16,7 +16,6 @@ module simple_gemac ); localparam SGE_IFG = 8'd12; // 12 should be the absolute minimum - localparam SGE_RESPECT_FLOW_CTRL = 1'b1; // stop sending if other side requests wire rst_rxclk, rst_txclk; oneshot_2clk tx_rst_1shot (.clk_in(tx_clk),.in(reset),.clk_out(tx_clk),.out(rst_txclk)); // FIXME clocks @@ -51,7 +50,7 @@ module simple_gemac flow_ctrl_tx flow_ctrl_tx (.rst(rst_txclk), .tx_clk(tx_clk), - .tx_pause_en(SGE_RESPECT_FLOW_CTRL), + .tx_pause_en(pause_en), .pause_quanta(pause_quanta_rcvd), // 16 bit value .pause_quanta_val(pause_rcvd), .pause_apply(pause_apply), |