SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
There are 3 TAG Insertion modes that software can select. Note that the mode must be selected before the first byte is pushed into the TX FIFO. The values, pushed into the TX FIFO are defined in the MII_RT_TX_FIFO_LEVEL0/1[7-0] TX_FIFO_LEVELn registers (where n = 0 or 1).
Case | RM VLAN | ADD VLAN | ADD HSR | In packet | Out packet |
---|---|---|---|---|---|
1 | 1 | 0 | 0 | If pkt[B13:B14] == vlan_type_id | B16, B15, B14, B13 will be removed. If packet is less than 64-Bytes, 0s will get added before the CRC. |
2 | 1 | 0 | 0 | If pkt[B13:B14] != vlan_type_id | No effect. |
3 | 0 | 1 | 0 | X | VLAN_TAG added 4-Bytes. Start B13. |
4 | 0 | 0 | 1 | X | HSR_TAG added 6-Bytes. Start B13. |
5 | 0 | 1 | 1 | X | VLAN+TAG and HSR_TAG added 10-Bytes. Start B13. |
6 | 1 | 1 | 0 | If pkt[B13:B14] == vlan_type_id | B16, B15, B14, B13 will be replaced with VLAN_TAG. |
7 | 1 | 1 | 0 | If pkt[B13:B14] != vlan_type_id | No effect. |
8 | 1 | 1 | 1 | If pkt[B13:B14] == vlan_type_id | B16, B15, B14, B13 will be replaced with VLAN_TAG. Then HSR_TAG wil be added. |
9 | 1 | 1 | 1 | If pkt[B13:B14] != vlan_type_id | No effect. |
10 | 1 | 0 | 1 | If pkt[B13:B14] = vlan_type_id | B16, B15, B14, B13 will be removed and HSR_TAG added 6-Bytes. Start B13. |
11 | 1 | 0 | 1 | If pkt[B13:B14] != vlan_type_id | HSR_TAG added 6-Bytes. Start B13 |