summaryrefslogtreecommitdiffstats
path: root/simple_gemac/simple_gemac.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2009-09-04 22:23:27 -0700
committerMatt Ettus <matt@ettus.com>2009-09-04 22:23:27 -0700
commitc21464b1107295575afa958e34f915f7d9985c14 (patch)
treed129daeeb1af64465858aaca126ec9923742e7fb /simple_gemac/simple_gemac.v
parent71babf966d8cd340eb62122a297c2cc3b1294b82 (diff)
downloaduhd-c21464b1107295575afa958e34f915f7d9985c14.tar.gz
uhd-c21464b1107295575afa958e34f915f7d9985c14.tar.bz2
uhd-c21464b1107295575afa958e34f915f7d9985c14.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 'simple_gemac/simple_gemac.v')
-rw-r--r--simple_gemac/simple_gemac.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/simple_gemac/simple_gemac.v b/simple_gemac/simple_gemac.v
index 5ec2fa2ba..868a66819 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_en,
+ input pause_req, input [15:0] pause_time_req, input pause_respect_en,
// Settings
input [47:0] ucast_addr, input [47:0] mcast_addr,
@@ -33,7 +33,7 @@ module simple_gemac
.GMII_TX_ER(GMII_TX_ER), .GMII_TXD(GMII_TXD),
.tx_clk(tx_clk), .tx_data(tx_data), .tx_valid(tx_valid), .tx_error(tx_error), .tx_ack(tx_ack),
.ifg(SGE_IFG), .mac_addr(ucast_addr),
- .pause_req(pause_req), .pause_time(pause_time), // We request flow control
+ .pause_req(pause_req), .pause_time(pause_time_req), // We request flow control
.pause_apply(pause_apply), .paused(paused) // We respect flow control
);
@@ -50,7 +50,7 @@ module simple_gemac
flow_ctrl_tx flow_ctrl_tx
(.rst(rst_txclk), .tx_clk(tx_clk),
- .tx_pause_en(pause_en),
+ .tx_pause_en(pause_respect_en),
.pause_quanta(pause_quanta_rcvd), // 16 bit value
.pause_quanta_val(pause_rcvd),
.pause_apply(pause_apply),