Micrel, Inc.
KSZ8842-PMQL/PMBL
October 2007
108
M9999-100207-1.5
VLAN Table
The KSZ8842-PMQL/PMBL uses the VLAN table to perform look ups. If 802.1Q VLAN mode is enabled (SGCR2[15]),
this table will be 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 14:
Bit
Default
R/W
Description
19
1
RW
Valid
1 = specifies that this entry is valid, the look up result will be used
0 = specifies that this entry is not valid
18 – 16
111
R/W
Membership
Specifies 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. For example: 101
means port 3 and 1 are in this VLAN.
15 – 12
0x0
R/W
FID
Specifies the Filter ID. The KSZ8842-PMQL/PMBL supports 16 active
VLANs represented by these four bit fields. The FID is the mapped ID. If
802.1Q VLAN is enabled, the look up will be based on FID+DA and
FID+SA.
11 – 0
0x001
R/W
VID
Specifies the IEEE 802.1Q 12 bits VLAN ID.
Table 14. VLAN Table Format (16 Entries)
If 802.1Q VLAN mode is enabled, KSZ8842-PMQL/PMBL will assign 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 will be used. The look up process will start from the VLAN table look up. If
the VID is not valid, the packet will be dropped and no address learning will take place. If the VID is valid, 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 will be broadcast to all the members (excluding the ingress port) of the VLAN. If FID+SA fails,
the FID+SA will be learned.
Examples:
1. VLAN Table Read (read the third entry, at the indirect address offset 0x02)
Write to reg. IACR with 0x1402 (set indirect address and trigger a read VLAN table operation)
Then
Read reg. IADR5 (VLAN table bits 19-16)
Read reg. IADR4 (VLAN table bits 15-0)
2. VLAN Table Write (write the seventh entry, at the indirect address offset 0x06)
Write to reg. IADR5 (VLAN table bits 19-16)
Write to reg. IADR4 (VLAN table bits 15-0)
Write to reg. IACR with 0x1406 (set indirect address and trigger a read VLAN table operation)
相关PDF资料
PIC16LF873AT-I/SOG IC MCU FLASH 4KX14 28SOIC
PIC16LF819T-I/SOG IC MCU FLASH 2KX14 18SOIC
PIC16F724-I/PT IC PIC MCU FLASH 4KX14 44TQFP
DSPIC30F2010T-20I/SO IC DSPIC MCU/DSP 12K 28SOIC
PIC18F24J10-I/SP IC PIC MCU FLASH 8KX16 28-DIP
PIC18LF23K22-I/SO IC PIC MCU 8KB FLASH 28SOIC
PIC16F639-E/P IC MCU FLASH 2KX14 20DIP
PIC12F635T-I/MF IC MCU FLASH 1KX14 8DFN
相关代理商/技术参数
PIC18F23K20-E/ML 功能描述:8位微控制器 -MCU 8 KB Enh Flash 768 RAM 25 I/O Pb Free RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-E/MV 功能描述:8位微控制器 -MCU 8KB Flash 768B RAM Enhanced Flash RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-E/SO 功能描述:8位微控制器 -MCU 8 KB Enh Flash 768 RAM 25 I/O Pb Free RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-E/SP 功能描述:8位微控制器 -MCU 8 KB Enh Flash 768 RAM 25 I/O Pb Free RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-E/SS 功能描述:8位微控制器 -MCU 8 KB Enh Flash 768 RAM 25 I/O Pb Free RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-I/ML 功能描述:8位微控制器 -MCU 8 KB Enh Flash 768 RAM 25 I/O Pb Free RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-I/MV 功能描述:8位微控制器 -MCU 8KB Flash 768B RAM Enhanced Flash RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F23K20-I/SO 功能描述:8位微控制器 -MCU 8 KB Enh Flash 768 RAM 25 I/O Pb Free RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT