20.06.2013 Views

Xilinx UG194 Virtex-5 FPGA Embedded Tri-Mode Ethernet MAC ...

Xilinx UG194 Virtex-5 FPGA Embedded Tri-Mode Ethernet MAC ...

Xilinx UG194 Virtex-5 FPGA Embedded Tri-Mode Ethernet MAC ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1: Introduction<br />

Preamble<br />

For transmission, this field is automatically inserted by the <strong>Ethernet</strong> <strong>MAC</strong>. The preamble<br />

field was historically used for synchronization and contains seven bytes with the pattern<br />

0x55, transmitted from left to right. For reception, this field is always stripped from the<br />

incoming frame, before the data is passed to the client. The <strong>Ethernet</strong> <strong>MAC</strong> can receive<br />

<strong>Ethernet</strong> frames, even if the preamble does not exist, as long as a valid start of frame is<br />

available.<br />

Start of Frame Delimiter<br />

The start of frame delimiter field marks the start of the frame and must contain the pattern<br />

0xD5.<br />

For transmission on the physical interface, this field is automatically inserted by the<br />

<strong>Ethernet</strong> <strong>MAC</strong>. For reception, this field is always stripped from the incoming frame before<br />

the data is passed to the client.<br />

Destination Address<br />

The least significant bit of the destination address determines if the address is an<br />

individual/unicast (0) or group/multicast (1) address. Multicast addresses are used to<br />

group logically related stations. The broadcast address (destination address field is all 1s)<br />

is a multicast address that addresses all stations on the LAN. The <strong>Ethernet</strong> <strong>MAC</strong> supports<br />

transmission and reception of unicast, multicast, and broadcast packets.<br />

This field is the first field of the <strong>Ethernet</strong> frame that is always provided in the packet data<br />

for transmissions and is always retained in the receive packet data.<br />

Source Address<br />

For transmission, the source address of the <strong>Ethernet</strong> frame should be provided by the client<br />

because it is unmodified by the <strong>Ethernet</strong> <strong>MAC</strong>. The unicast address for the <strong>Ethernet</strong> <strong>MAC</strong><br />

is used as the source address when the <strong>Ethernet</strong> <strong>MAC</strong> creates pause control frames. The<br />

source address field is always retained in the receive packet data.<br />

Length/Type<br />

The value of this field determines if it is interpreted as a length or a type field, as defined<br />

by the IEEE 802.3 standard. A value of 1536 decimal or greater is interpreted by the<br />

<strong>Ethernet</strong> <strong>MAC</strong> as a type field.<br />

When used as a length field, the value in this field represents the number of bytes in the<br />

following data field. This value does not include any bytes that can be inserted in the pad<br />

field following the data field.<br />

A length/type field value of 0x8100 hex indicates that the frame is a VLAN frame, and a<br />

value of 0x8808 hex indicates a pause <strong>MAC</strong> control frame.<br />

For transmission, the <strong>Ethernet</strong> <strong>MAC</strong> does not perform any processing of the length/type<br />

field.<br />

For reception, if this field is a length field, the <strong>Ethernet</strong> <strong>MAC</strong> receive engine interprets this<br />

value and removes any padding in the pad field (if necessary). If the field is a length field<br />

and length/type checking is enabled, the <strong>Ethernet</strong> <strong>MAC</strong> compares the length against the<br />

actual data field length and flags an error if a mismatch occurs. If the field is a type field,<br />

the <strong>Ethernet</strong> <strong>MAC</strong> ignores the value and passes it along with the packet data with no<br />

further processing. The length/type field is always retained in the receive packet data.<br />

22 www.xilinx.com TE<strong>MAC</strong> User Guide<br />

<strong>UG194</strong> (v1.10) February 14, 2011<br />

R

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!