Datasheet

KSZ8863MLL/FLL/RLL
DS00002335B-page 66 2017 Microchip Technology Inc.
Read reg. 128 (0x80), static table bits [31:24]
Read reg. 129 (0x81), static table bits [23:16]
Read reg. 130 (0x82), static table bits [15:8]
Read reg. 131 (0x83), static table bits [7:0]
2. Static Address Table Write (Write the 8th Entry)
Write to reg. 124 (0x7C), static table bits [57:56]
Write to reg. 125 (0x7D), static table bits [55:48]
Write to reg. 126 (0x7E), static table bits [47:40]
Write to reg. 127 (0x7F), static table bits [39:32]
Write to reg. 128 (0x80), static table bits [31:24]
Write to reg. 129 (0x81), static table bits [23:16]
Write to reg. 130 (0x82), static table bits [15:8]
Write to reg. 131 (0x83), static table bits [7:0]
Write to reg. 121 (0x79) with 0x00 // Write static table selected
Write to reg. 122 (0x7A) with 0x07 // Trigger the write operation
4.7 VLAN Table
KSZ8863 uses the VLAN table to perform look-ups. If 802.1Q VLAN mode is enabled (register 5, bit 7 = 1), this table is
used to retrieve the VLAN information that is associated with the ingress packet. This information includes FID (filter ID),
VID (VLAN ID), and VLAN membership as described in Table 4-11.
If 802.1Q VLAN mode is enabled, KSZ8863 assigns a VID to every ingress packet. If the packet is untagged or tagged
with a null VID, the packet is assigned with the default port VID of the ingress port. If the packet is tagged with a non-
null VID, the VID in the tag is used. The look-up process starts from the VLAN table look-up. If the VID is not valid, the
packet are dropped and no address learning takes place. If the VID is valid, the FID is retrieved. The FID+DA and
FID+SA look-ups are performed. The FID+DA look-up determines the forwarding ports. If FID+DA fails, the packet is
broadcasted to all the members (excluding the ingress port) of the VLAN. If FID+SA fails, the FID+SA is learned.
Examples:
1. VLAN Table Read (read the 3rd entry)
Write to reg. 121 (0x79) with 0x14 // Read VLAN table selected
Write to reg. 122 (0x7A) with 0x02 // Trigger the read operation
Then,
Read reg. 129 (0x81), VLAN table bits [19:16]
Read reg. 130 (0x82), VLAN table bits [15:8]
TABLE 4-11: FORMAT OF STATIC VLAN TABLE (16 ENTRIES)
Bit Name R/W Description Default
19 Valid R/W
1 = entry is valid
0 = entry is invalid
1
18-16 Membership R/W
Specify which ports are members of the VLAN. If a DA
lookup fails (no match in both static and dynamic
tables), the packet associated with this VLAN will be
forwarded to ports specified in this field. For example,
101 means port 3 and 1 are in this VLAN.
111
15-12 FID R/W
Filter ID. KSZ8863 supports 16 active VLANs repre-
sented by these four bit fields. FID is the mapped ID.
If 802.1Q VLAN is enabled, the look up will be based
on FID+DA and FID+SA.
0x0
11-0 VID R/W IEEE 802.1Q 12 bits VLAN ID 0x001