IP178C
Preliminary Data Sheet
2.5
Copyright
2004, IC Plus Corp.
34/91
October 27, 2005
IP178C-DS-R09
Tag VLAN/ Tag and un-tag function
Tag and un-tag function
IP178C inserts or removes a tag of a frame if tagging/ un-tagging function is enabled. The operation is
illustrated as follows. The tag information is defined in MII register 30.3~30.11 and EEPROM register
6~22.
The operation of a port which forwards the packet
Frame type of the
received packet
Forward to a untagged filed
Untagged
Forward
the
packet
without
modification
Forward to a tagged field
Insert a tag using the default VLAN tag
value of the source port
Calculate new CRC
The default VLAN tag value is defined in
the MII register 30.3~30.11.
Keep priority field.
Replace the tag with the default VLAN tag
value of the source port
Calculate new CRC
The default VLAN tag value is defined in
the MII register 30.3~30.11.
Forward the packet without modification
Priority-tagged
(VLAN ID=0)
Strip tag
Calculate new CRC
VLAN-tagged
Strip tag
Calculate new CRC
2.6
Tag VLAN
If tag VLAN function is enabled (MII register 30.13[3] TAG_VLAN_EN is logic high), IP178C forwards a
packet according to MAC address table and one of the sixteen VLAN output port masks, defined in MII
register 30.14~30.29. One of the sixteen VLAN output mask is selected by VID index, which is four bits
selected from VID field in a tag. VID index is defined in MII register 30.13[2:0] VID_SEL. For example,
VLAN output port mask 1 is selected if VID index selected by VID_SEL is equal to 1.
IP178C handles an un-tagged packet using the default VLAN tag value of its source port. A packet with
VID equal to 12’b0 will be handled as un-tag frame.