gmacgrp_vlan_incl_reg

          Register 353 (VLAN Tag Inclusion or Replacement Register)  

The VLAN Tag Inclusion or Replacement register contains the VLAN tag for insertion or replacement in the transmit frames. This register is present only when the Enable SA, VLAN, and CRC Insertion on TX option is selected during core configuration.
      
Module Instance Base Address Register Address
i_emac_emac0 0xFF800000 0xFF800584
i_emac_emac1 0xFF802000 0xFF802584
i_emac_emac2 0xFF804000 0xFF804584

Size: 32

Offset: 0x584

Access: RW

Important: The value of a reserved bit must be maintained in software. When you modify registers containing reserved bit fields, you must use a read-modify-write operation to preserve state and prevent indeterminate system behavior.
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

reserved_31_20

RO 0x0

csvl

RW 0x0

vlp

RW 0x0

vlc

RW 0x0

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

vlt

RW 0x0

gmacgrp_vlan_incl_reg Fields

Bit Name Description Access Reset
31:20 reserved_31_20
Reserved
RO 0x0
19 csvl
C-VLAN or S-VLAN

When this bit is set, S-VLAN type (0x88A8) is inserted or replaced in the 13th and 14th bytes of transmitted frames. When this bit is reset, C-VLAN type (0x8100) is inserted or replaced in the transmitted frames.
RW 0x0
18 vlp
VLAN Priority Control

When this bit is set, the control Bits [17:16] are used for VLAN deletion, insertion, or replacement. When this bit is reset, the mti_vlan_ctrl_i control input is used, and Bits [17:16] are ignored.
RW 0x0
17:16 vlc
VLAN Tag Control in Transmit Frames 

 * 2'b00: No VLAN tag deletion, insertion, or replacement
 * 2'b01: VLAN tag deletion 
The MAC removes the VLAN type (bytes 13 and 14) and VLAN tag (bytes 15 and 16) of all transmitted frames with VLAN tags. 
 * 2'b10: VLAN tag insertion
The MAC inserts VLT in bytes 15 and 16 of the frame after inserting the Type value (0x8100/0x88a8) in bytes 13 and 14. This operation is performed on all transmitted frames, irrespective of whether they already have a VLAN tag. 
 * 2'b11: VLAN tag replacement
The MAC replaces VLT in bytes 15 and 16 of all VLAN-type transmitted frames (Bytes 13 and 14 are 0x8100/0x88a8). 

Note: Changes to this field take effect only on the start of a frame. If you write this register field when a frame is being transmitted, only the subsequent frame can use the updated value, that is, the current frame does not use the updated value.
RW 0x0
15:0 vlt
VLAN Tag for Transmit Frames

This field contains the value of the VLAN tag to be inserted or replaced. The value must only be changed when the transmit lines are inactive or during the initialization phase. Bits[15:13] are the User Priority, Bit 12 is the CFI/DEI, and Bits[11:0] are the VLAN tag's VID field.
RW 0x0