www.ti.com
EMAC Functional Architecture
2.10.3Receive Channel Addressing
The receive address block can store up to 32 addresses to be filtered or matched. Before enabling packet reception, all the address RAM locations should be initialized, including locations to be unused. The system software is responsible for adding and removing addresses from the RAM.
A MAC address location in RAM is 53 bits wide and consists of:
∙48 bits of the MAC address
∙3 bits for the channel to which a valid address match will be transferred. The channel is a don’t care if MATCHFILT bit is cleared.
∙A valid bit
∙A match or filter bit
First, write the index into the address RAM in the MACINDEX register to start writing a MAC address. Then write the upper 32 bits of the MAC address (MACADDRHI register), and then the lower 16 bits of MAC address with the VALID and MATCHFILT control bits (MACADDRLO). The valid bit should be cleared for the unused locations in the receive address RAM.
The most common uses for the receive address
∙Set EMAC in promiscuous mode, using RXCAFEN and RXPROMCH bits in the RXMBPENABLE register. Then filter up to 32 individual addresses, which can be both unicast and/or multicast.
∙Disable the promiscuous mode (RXCAFEN = 0) and match up to 32 individual addresses, multicast and/or unicast.
2.10.4Hardware Receive QOS Support
Hardware receive quality of service (QOS) is supported, when enabled, by the Tag Protocol Identifier format and the associated Tag Control Information (TCI) format priority field. When the incoming frame length/type value is equal to 81.00h, the EMAC recognizes the frame as an Ethernet Encoded Tag Protocol Type. The two octets immediately following the protocol type contain the
Received frames that contain priority information are determined by the EMAC as:
∙A
–The destination station’s individual unicast address
–The destination station’s multicast address (MACHASH1 and MACHASH2 registers)
–The broadcast address of all ones
∙A
∙The
∙The
∙Data bytes
∙The
The RXFILTERLOWTHRESH and the RXnFREEBUFFER registers are used in conjunction with the priority information to implement receive hardware QOS.
SPRU975B | Ethernet Media Access Controller (EMAC)/Management Data Input/Output (MDIO) | 51 |