KSZ8895 INFINEON [Infineon Technologies AG], KSZ8895 Datasheet - Page 91

no-image

KSZ8895

Manufacturer Part Number
KSZ8895
Description
Integrated 5-Port 10/100 Managed Ethernet Switch with MII/RMII interface
Manufacturer
INFINEON [Infineon Technologies AG]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
KSZ8895FMQI
Manufacturer:
Micrel Inc
Quantity:
10 000
Part Number:
KSZ8895FMQI TR
Manufacturer:
Micrel Inc
Quantity:
10 000
Part Number:
KSZ8895FQXIA
Manufacturer:
HONEYWELL
Quantity:
1 000
Part Number:
KSZ8895MLUB
0
Part Number:
KSZ8895MLXI
0
Part Number:
KSZ8895MQ
Manufacturer:
DATEL
Quantity:
149
Part Number:
KSZ8895MQ
Manufacturer:
Micrel Inc
Quantity:
10 000
Part Number:
KSZ8895MQI
Manufacturer:
MICREL
Quantity:
2 300
Part Number:
KSZ8895MQI
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
KSZ8895MQI
Manufacturer:
Micrel Inc
Quantity:
10 000
Part Number:
KSZ8895MQXCA
Manufacturer:
FREESCALE
Quantity:
1 043
Part Number:
KSZ8895MQXCA
Manufacturer:
MICREL
Quantity:
60
Part Number:
KSZ8895MQXI
0
Part Number:
KSZ8895RQXC-TR
0
Micrel, Inc.
VLAN Table
The VLAN table is used for VLAN table look-up. If 802.1q VLAN mode is enabled (Register 5 bit 7 = 1), this table is
used to retrieve VLAN information that is associated with the ingress packet. The fields includes FID (filter ID), Valid
and VLAN membership need initializtion, due to provide 4K spacing for the VLAN table, there is no VID filed bits, VID
is used as address index to input up to 4096 entries with bits [12:0] information.
If 802.1q VLAN mode is enabled, KSZ8895MQ/RQ/FMQ 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 non-null VID, the VID in the tag is used. The look-up process starts from the VLAN table look-up based
on VID number. If the entry is not valid in VLAN table, the packet is dropped and no address learning occurs. If the
entry is valid, then the FID is retrieved. The FID+DA and FID+SA lookups are performed. The FID+DA look-up
determines the forwarding ports. If FID+DA fails, the packet is broadcast to all the members (excluding the ingress
port) of the VLAN. If FID+SA fails, then the FID+SA is learned.
The VLAN table configuration is organized as 1024 VLAN sets, each VLAN set consists of 4 VLAN entries, to support
up to 4096 VLAN entries. Each VLAN set has 52 bits and should be read or written at the same time specified by the
indirect address.
The VLAN entries in the VLAN set is mapped to indirect data registers as follow:
Entry0[12:0] maps to the VLAN set bits[12-0] {register119[4:0], register120[7:0]}
Entry1[12:0] maps to the VLAN set bits[25-13]{register117[1:0], register118[7:0], register119[7:5]}
Entry2[12:0] maps to the VLAN set bits[38-26]{register116[6:0], register117[7:2]}
Entry3[12:0] maps to the VLAN set bits[51-39]{register114[3:0], register115[7:0], register116[7]}
In order to read one VLAN entry, the VLAN set is read first and the specific VLAN entry information can be extracted.
To update any VLAN entry, the VLAN set is read first then only the desired VLAN entry is updated and the whole
VLAN set is written back. Due to FID in VLAN table is 7-bit, so the VLAN table supports unique 128 flow VLAN
groups. Each VLAN set address is 10 bits long (Maximum is 1024) in the indirect address register 110 and 111, the
bit [9-8] of VLAN set address is at bit [1-0] of register 110, and the bit [7-0] of VLAN set address is at bit [7-0] of
register 111. Each Write and Read can access to four consecutive VLAN entries.
Examples:
January 2011
Address
Format of Static VLAN Table (Support Max 4096 VLAN ID entries and 128 Active VLANs)
12
11-7
6-0
(1) VLAN Table Read (read the VID=2 entry)
Write the indirect control and address registers first
Write to Register 110 (0x6E) with 0x14 (read VLAN table selected)
Write to Register 111 (0x6F) with 0x0 (trigger the read operation for VID=0, 1, 2, 3 entries)
Then read the indirect data registers bits [38-26] for VID=2 entry
Read Register 116 (0x74), (register116[6:0] are bits 12-6 of VLAN VID=2 entry)
Name
Valid
Membership
FID
Description
1, the entry is valid.
0, entry is invalid.
Specify which ports are members of the VLAN.
If a DA look-up fails (no match in both static and
dynamic tables), the packet associated with this VLAN
will be forwarded to ports specified in this field.
E.g., 11001 means Ports 5, 4, and 1 are in this VLAN.
Filter ID. KSZ8895MQ/RQ/FMQ supports 128 active
VLANs represented by these seven 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.
Table 16. VLAN Table
91
Mode
R/W
R/W
R/W
KSZ8895MQ/RQ/FMQ
Initial Value
suggestion
M9999-012011-1.2
11111
0
0

Related parts for KSZ8895