Transmit Path - 7.2 English

AXI 1G/2.5G Ethernet Subsystem Product Guide (PG138)

Document ID
PG138
Release Date
2023-11-15
Version
7.2 English

When transmitting frames, the outgoing frame is detected as a VLAN frame by recognizing a VLAN TPID in the Type/Length field and comparing it against user-defined values in the VLAN TPID Word 0 Register and VLAN TPID Word 1 Register. The TPID values are shared between the receive and transmit paths.

After a VLAN frame is identified, the 12-bit Unique VLAN Identifier (VID) is used to access the TEMAC Receive Configuration Word 0 Register to supply a replacement VID value which is substituted into the outgoing frame. See the following figure.

Figure 1. VLAN Data Table AXI Ethernet Page-1 Sheet.2 Sheet.3 Sheet.4 Sheet.5 Sheet.6 Sheet.7 Sheet.8 Sheet.9 Sheet.10 Sheet.11 Sheet.12 Sheet.13 Sheet.14 Sheet.15 Sheet.24 0x000 0x001 0x002 0x003 0x0000x001 0x0020x003 Sheet.25 0xFFC 0xFFD 0xFFE 0xFFF 0xFFC0xFFD 0xFFE0xFFF Sheet.26 Current VID CurrentVID Sheet.27 New VID (12 bits) New VID(12 bits) Sheet.28 Tag enable bit Tag enable bit Sheet.29 Strip enable bit Strip enable bit Sheet.30 VLAN Data Table VLAN Data Table Sheet.1 Sheet.17 Sheet.16 X14089 X14089

Using transmit In-Band FCS mode of the TEMAC core is not allowed when using VLAN translation because the user-provided FCS field value is not correct for the new VID field. For double and triple-tagged VLAN frames, only the outer VID is translated. The following TPID values are commonly used to flag VLAN frames: 0x8100, 0x9100, 0x9200, and 0x88A8. However, the TPID values used to identify VLAN frames are programmable through the TPID registers. Transmit and receive VLAN translation can be enabled separately with their respective parameters. For VID values that do not need to be translated, the VLAN data table location associated with their value must be initialized to that same value.