User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 484
UG585 (v1.11) September 27, 2016
Chapter 16: Gigabit Ethernet Controller
of the receiver descriptor word 1 is updated to indicate the FCS validity for the particular frame. This
is useful for applications where individual frames with FCS errors must be identified.
Received frames can be checked for length field error by setting the length field error frame discard
bit of the Network Configuration register (bit [16]). When this bit is set, the receiver compares a
frame's measured length with the length field (bytes 13 and 14) extracted from the frame. The frame
is discarded if the measured length is shorter. This checking procedure is for received frames
between 64 bytes and 1,518 bytes in length.
Each discarded frame is counted in the 10-bit length field Error Statistics register. Frames where the
length field is greater than or equal to 0x0600 are not checked.
16.2.3 MAC Filtering
The MAC filter determines which frames should be written to the AHB interface FIFO and onto the
DMA controller.
Whether a frame is passed depends on what is enabled in the Network Configuration register, the
state of the external matching pins, the contents of the specific address, type, and hash registers and
the frame's destination address and type field.
If bit [25] of the Network Configuration register is not set, a frame is not copied to memory if the
Gigabit Ethernet controller is transmitting in half duplex mode at the time a destination address is
received.
Ethernet frames are transmitted a byte at a time, least significant bit first. The first six bytes (48 bits)
of an Ethernet frame make up the destination address. The first bit of the destination address, which
is the LSB of the first byte of the frame, is the group or individual bit. This is one for multicast
addresses and zero for unicast. The all-ones address is the broadcast address and a special case of
multicast.
The Gigabit Ethernet controller supports recognition of four specific addresses. Each specific address
requires two registers, Specific Address register bottom and Specific Address register top. Specific
address register bottom stores the first four bytes of the destination address and Specific Address
register top contains the last two bytes. The addresses stored can be specific, group, local or
universal.
The destination address of received frames is compared against the data stored in the Specific
Address registers once they have been activated. The addresses are deactivated at reset or when
their corresponding Specific Address register bottom is written. They are activated when Specific
Address register top is written. If a receive frame address matches an active address, the frame is
written to the FIFO and on to DMA controller, if used.
Frames can be filtered using the type ID field for matching. Four type ID registers exist in the register
address space and each can be enabled for matching by writing a one to the MSB (bit [31]) of the
respective register. When a frame is received, the matching is implemented as an OR function of the
various types of match.
The contents of each type ID registers (when enabled) are compared against the length/type ID of
the frame being received (e.g., bytes 13 and 14 in non-VLAN and non-SNAP encapsulated frames)
and copied to memory if a match is found. The encoded type ID match bits (Word 0, bit [22] and bit