
ValueHash Code Bit
xor multicast MAC address bits 47:405
Table 4-2: Hash Code Generation—Lower 24 Bits of Destination Address
Algorithm for generating the 6-bit code from the lower 24 bits of the destination address.
ValueHash Code Bit
xor multicast MAC address bits 3:00
xor multicast MAC address bits 7:41
xor multicast MAC address bits 11:82
xor multicast MAC address bits 15:123
xor multicast MAC address bits 19:164
xor multicast MAC address bits 23:205
The MAC function checks each multicast address received against the hash table, which serves as a fast
matching engine, and a match is returned within one clock cycle. If there is no match, the MAC function
discards the frame.
All multicast frames are accepted if all entries in the hash table are one.
Frame Type Validation
The MAC function checks the length/type field to determine the frame type:
• Length/type < 0x600—the field represents the payload length of a basic Ethernet frame. The MAC function
continues to check the frame and payload lengths.
• Length/type >= 0x600—the field represents the frame type.
• Length/type = 0x8100—VLAN or stacked VLAN tagged frames. The MAC function continues to
check the frame and payload lengths, and asserts the following signals:
• for VLAN frames, rx_err_stat[16] in MAC variations with internal FIFO buffers or
pkt_class_data[1] in MAC variations without internal FIFO buffers
• for stacked VLAN frames, rx_err_stat[17] in MAC variations with internal FIFO buffers or
pkt_class_data[0] in MAC variations without internal FIFO buffers.
• Length/type = 0x8088—control frames. The next two bytes, the Opcode field, indicate the type of
control frame.
• For pause frames (Opcode = 0x0001), the MAC function continues to check the frame and payload
lengths. For valid pause frames, the MAC function proceeds with pause frame processing. The
MAC function forwards pause frames to the user application only when the PAUSE_FWD bit in the
command_config register is set to 1.
• For other types of control frames, the MAC function accepts the frames and forwards them to the
user application only when the CNTL_FRM_ENA bit in the command_config register is set to 1.
• For other field values, the MAC function forwards the receive frame to the user application.
Related Information
Remote Device Congestion on page 4-17
Altera Corporation
Functional Description
Send Feedback
4-9
Frame Type Validation
UG-01008
2014.06.30
Kommentare zu diesen Handbüchern