User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 482
UG585 (v1.11) September 27, 2016
Chapter 16: Gigabit Ethernet Controller
16.2 Functional Description and Programming
Model
The controller comprises four main components:
MAC controlling transmit, receive, address checking, and loopback
Control and status registers, statistics registers, and synchronization logic
DMA controlling data transmit and receive through an AHB master interface
Time stamp unit (TSU) for calculating the IEEE 1588 timer values
10/100/1000 Operation
The gigabit enable bit in the Network Configuration register selects between 10/100 Mb/s Ethernet
operation and 1000 Mb/s mode. The 10/100 Mb/s speed bit in the network configuration register is
used to select between 10 Mb/s and 100 Mb/s.
MDIO Interface
Both controllers provide MDIO interfaces, however, only one interface is needed to control both of
the external PHYs due to the difference in PHY address.
16.2.1 MAC Transmitter
The MAC transmitter can operate in either half duplex or full duplex mode, and transmits frames in
accordance with the Ethernet IEEE 802.3 standard. In half duplex mode, the CSMA/CD protocol of the
IEEE 802.3 specification is followed.
Frame assembly starts by adding the preamble and the start frame delimiter. Data is taken from the
transmit FIFO a word at a time. When the controller is configured for gigabit operation, the data
output to the PHY uses all eight bits of the txd[7:0] output. In 10/100 mode, transmit data to the PHY
is nibble wide and least significant nibble first using txd[3:0] with txd[7:4] tied to logic 0.
If necessary, padding is added to take the frame length to 60 bytes. CRC is calculated using an order
32 bit polynomial. This is inverted and appended to the end of the frame taking the frame length to
a minimum of 64 bytes. If the no-CRC bit is set in the second word of the last buffer descriptor of a
transmit frame, neither pad nor CRC are appended. The no-CRC bit can also be set through the FIFO.
In full duplex mode (at all data rates), frames are transmitted immediately. Back-to-back frames are
transmitted at least 96 bit times apart to guarantee the interframe gap.
In half duplex mode, the transmitter checks carrier sense. If asserted, the transmitter waits for the
signal to become inactive, and then starts transmission after the interframe gap of 96 bit times. If the
collision signal is asserted during transmission, the transmitter transmits a jam sequence of 32 bits
taken from the data register and then retries transmission after the back off time has elapsed. If the
collision occurs during either the preamble or SFD, then these fields are completed prior to
generation of the jam sequence.