VIA Technologies, Inc. Preliminary VT6516 Datasheet VT6516 16/12-PORT 10/100BASE-T/TX ETHERNET SWITCH CONTROLLER REVISION ‘E’ DATASHEET (Preliminary) ISSUE 1: July 31, 1999 VIA Technologies, Inc. 1 VIA Technologies, Inc. Preliminary VT6516 Datasheet PRELIMINARY RELEASE Please contact VIA Technologies for the latest documentation. Copyright Notice: Copyright © 1995, VIA Technologies Incorporated. Printed in Taiwan. ALL RIGHTS RESERVED. No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise without the prior written permission of VIA Technologies Incorporated. The VT86C100P may only be used to identify products of VIA Technologies. All trademarks are the properties of their respective owners. Disclaimer Notice: No license is granted, implied or otherwise, under any patent or patent rights of VIA Technologies. VIA Technologies makes no warranties, implied or otherwise, in regard to this document and to the products described in this document. The information provided by this document is believed to be accurate and reliable to the publication date of this document. However, VIA Technologies assumes no responsibility for any errors in this document. Furthermore, VIA Technologies assumes no responsibility for the use or misuse of the information in this document and for any patent infringements that may arise from the use of this document. The information and product specifications within this document are subject to change at any time, without notice and without obligation to notify any person of such change. Offices: 1045 Mission Court Fremont, CA 94539 USA 8th Floor, No. 533 Chung-Cheng Rd., Hsin-Tien Taipei, Taiwan ROC Tel: Fax: Tel: Fax: (510) 683-3300 (510) 683-3301 (886-2) 2218-5452 (886-2) 2218-5453 Online Services: BBS : 886-2-2186408 FTP : FTP.VIA.COM.TW HTTP:WWW.VIA.COM.TW –or- WWW.VIATECH.COM 2 VIA Technologies, Inc. Preliminary VT6516 Datasheet TABLE OF CONTENTS TABLE OF CONTENTS ................................................................................................................................ 3 FIGURES AND TABLES ............................................................................................................................... 4 REVERSION HISTORY ................................................................................................................................ 5 FEATURES ................................................................................................................................................ 6 BLOCK DIAGRAM...................................................................................................................................... 9 BALL OUT DIAGRAM ............................................................................................................................... 11 RMII-mode Ball out Diagram ........................................................................................................... 11 MII-mode Ballout Diagram............................................................................................................... 12 LOGIC SYMBOL ...................................................................................................................................... 13 PIN DESCRIPTIONS .................................................................................................................................. 14 JUMPER STRAPPING................................................................................................................................. 18 SECTION I FUNCTIONAL DESCRIPTIONS...................................................................................... 19 1. GENERAL DESCRIPTION ...................................................................................................................... 19 2. THE VIA ETHER SWITCH ARCHITECTURE ............................................................................................ 19 2.1 Switch initialization procedures .................................................................................................. 19 ù ~! © |¥ © ¼ w¸ q® Å Ñ ¡ Ò C 2.2 Packet receiving and forwarding follow .......................................¿ » 3. INTERFACE DESCRIPTIONS................................................................................................................... 20 3.1 Buffer Memory (SDRAM) Interface and Table (SRAM) interface..¿ » ù ~! © |¥ © ¼ w¸ q® Å Ñ ¡ Ò C 4. FUNCTIONAL DESCRIPTION ................................................................................................................. 33 4.1 Packet Reception and Address recognition.................................................................................. 33 4.2 Packet Forwarding and VLAN..................................................................................................... 33 4.3 Network Management Features................................................................................................... 34 SECTION II REGISTER MAP............................................................................................................... 36 1. REGISTER TABLES ............................................................................................................................. 36 2 CPU INTERFACE REGISTERS MAP ......................................................................................................... 36 3 SWITCH INTERNAL REGISTERS MAP ..................................................................................................... 37 4. DETAIL OF SWITCH REGISTER.............................................................................................................. 44 4.1 Registers of SDRAM Control Module......................................................................................... 44 4.2 Registers of SRAM Control Module............................................................................................ 46 4.4 Registers of Buffer Control Module............................................................................................. 48 4.5 Registers of Forwarding Control Module ................................................................................... 49 4.6 Registers of PHY Control Module .............................................................................................. 53 4.7 Registers of EEPROM Control Module ....................................................................................... 55 4.8 Registers of CPU Interface Module............................................................................................. 56 4.9 Registers of MAC/IO Control Module ......................................................................................... 59 4.10 Registers of CPU IO Control Module....................................................................................... 63 SECTION III ELECTRICAL SPECIFICATIONS................................................................................. 65 ABSOLUTE MAXIMUM RATINGS............................................................................................................... 65 DC CHARACTERISTICS............................................................................................................................ 65 AC CHARACTERISTICS............................................................................................................................ 65 PACKAGE MECHANICAL SPECIFICATIONS ................................................................................................. 73 3 VIA Technologies, Inc. Preliminary VT6516 Datasheet FIGURES AND TABLES Figure 1: Block Diagram .............................................................................................9 Figure 3-3 .................................................................................................................22 Figure 3-6: Algorithm of Initialization of Free Link Lists. ..........................................22 Figure 3-1 SRAM......................................................................................................26 Figure 3-2 Free buffer link structure ..........................................................................27 Table 1-0 Free buffer link structure............................................................................27 Figure 3-5 The Address table entries structure +........................................................27 Table 1-1 Address table structure ..............................................................................28 Table 3-1 RMII interface signals................................................................................30 Figure 3-1 RMII timing diagram................................................................................30 Table 3-2 MII interface signals ..................................................................................31 Figure 3-2 MII timing diagram ..................................................................................31 4 VIA Technologies, Inc. Preliminary VT6516 Datasheet REVERSION HISTORY Reversion V0.90 V0.91 Date 2/18/1999 6/2/1999 V0.92 8/23/1999 V0.93 9/9/1999 Reason for change First release version Add D version silicon features modification Add E version silicon features modification Revision according to Weipin’s, Kevin’s, and Ruth’s comments 5 By JeffreyChang JeffreyChang MurphyChen MurphyChen VIA Technologies, Inc. Preliminary VT6516 Datasheet FEATURES l l l l l l l l l l l Single chip 16/12 ports 10/100M Ethernet switch controller - Highly integrated single chip shared memory switch engine - With option for 16 RMII (Reduced Media Independent Interface) ports or 12 MII (Media Independent Interface) ports - Non-blocking layer 2 switch, 148,810 packets/sec on each 100Mbps Ethernet port Media Access Control (MAC) - Dual 192-bytes FIFO’s of receive and transmit for each port - CRC generator for outgoing packets from CPU port - IEEE 802.3X compliant flow control for full duplex ports - Backpressure for half duplex ports Two switching mechanisms - Supports ‘store and forward’ switching without forwarding CRC-bad packets - Supports ‘cut through’ switching subject to long packets of length over 290 bytes for 100Mbps ports or of length over 98 bytes for 10Mbps ports Packet buffering - Glueless 64-bit interface to SDRAM as a packet buffer pool with size from 2M bytes (SGRAM) to 512 M bytes - 1536 bytes for each packet buffer External 32 bits SSRAM interface for forwarding table and memory link table - Link list structure initialized by software - 2K up to 32K unicast/multicast addresses table entries with VLAN information - Supports static entries for upper-layer multicast protocols, e.g. IGMP Advanced address recognition - Layer 2 MAC address recognition engine to enable wire-speed forwarding rate - Self learning mechanism - Supports multiple MAC address per-port from 2K up to 32K unicast/multicast addresses Switch management support - Supports port mirroring (Sniffer feature) - Supports spanning tree algorithm - Supports CPU direct access to SDRAM and SSRAM - Supports five statistical counters in each port Supports I2C EEPROM interface for customized configuration Support port-grouping VLAN - Configurable server ports belonging to multiple VLAN groups Support port-based trunking - Three types of trunk grouping: one trunk group with 2 or 4 ports, two trunk groups each with 2 ports - Load balance according to MAC address and port number CPU interface VIA 8/16 bits ISA-like interface 6 VIA Technologies, Inc. Preliminary VT6516 Datasheet - l l l l l Chip initialization, auto-aging and spanning tree algorithm support by firmware Auto-sensing 10/100M media speed, duplex mode, and flow-control capability by firmware 50MHz internal reference clock rate 50~100MHz SDRAM clock rate, typically 83MHz 50~100MHz SSRAM clock rate, typically 83MHz Single +3.3V supply, 0.3µm standard CMOS technology 476 ball BGA package 7 VIA Technologies, Inc. Preliminary VT6516 Datarsheet BLOCK DIAGRAM CPU interface SRAM control forwarding control input control buffer control queue control output control SDRAM control RMAC TMAC Figure 1: Block Diagram 99/12/09 scheduler 9 VIA Technologies, Inc. Preliminary VT6516 Datarsheet BALL OUT DIAGRAM RMII-mode Ball out Diagram 3 4 5 6 7 RXD1.1 TXEN1 TXD1.0 RXD0.0 MD1 8 MD3 9 MD5 10 MD7 11 MD9 12 MD11 13 MD45 14 MD47 15 RAS0 16 MA3 17 MA7 18 MA11 19 DCS2 20 DWE0 21 MD49 22 MD20 23 MD22 24 MD24 25 MD57 26 MD58 B C D E F 1 2 CSDV2 CRS.D V1 RXD1.2 TXD1.2 TXEN2 RXD0.2 TXD1.3 CSDV3 RXD0.3 TXD0.3 RXD1.4 TXD0.4 TXD1.1 TXD0.2 TXEN3 RXD1.3 RXD0.4 RXD0.1 TXD0.1 NC NC TXEN4 MD34 MD2 GND MD35 NC MD36 MD4 MD37 VDD MD38 MD6 MD39 VDD MD40 MD8 MD41 VDD MD42 MD10 MD43 MD12 MD14 MD46 MD13 MD44 CAS1 CAS0 MD15 GND MA0 MA1 RAS1 GND MA4 MA5 MA2 GND MA8 MA9 MA6 VDD BA0 BA1 MA10 VDD DCS1 DCS0 DCS3 VDD NC DWE1 MD16 MD48 MD17 GND MD18 MD50 MD19 MD51 GNDI MD52 MD21 MD53 GNDI VDDI MD54 MD23 MD55 DCLK MD63 MD56 MD25 MD60 MD30 SD16 MD26 MD59 MD29 MD62 SD17 MD27 MD28 MD61 MD31 SD18 G H J K L M N P R T RXD0.5 TXD1.5 TXD0.6 CSDV6 RXD1.7 CSRV7 RXD1.8 TXD0.8 TXD1.9 RXD0.9 SCLK SD23 VDD VDD VDD SA10 SA15 GND GND SD11 SD19 SD24 SD31 SA4 SA3 SA11 SA16 SD0 SD4 SD12 SD20 SD25 SD28 SA6 SA2 SA12 SA17 SD3 SD7 SD10 SD21 SD26 SD29 SA7 SA13 SA13 SA9 SD2 SD6 SD9 SD22 SD27 SD30 SA5 SA0 SA14 SA8 SD18 SD5 SD8 RXD1.1 0 RXD0.1 1 TXD1.1 1 TXD0.1 2 CSDV1 2 RXD1.1 3 CSDV1 3 RXD1.1 4 RXD0.1 4 TXEN1 4 TXEN5 NC NC TXEN6 NC NC TXEN8 TXEN9 NC TXEN1 0 NC VDD GND NC U TXD1.4 TXD0.5 CSDV5 RXD1.6 RXD0.7 TXEN7 CSDV8 CSDV9 TXD0.9 TXD0.1 0 CSDV1 0 RXD1.1 1 RXD0.1 2 TXD1.1 2 TXD0.1 3 TXD1.1 3 TXD1.1 4 RXD1.1 5 TXD0.1 5 RXD0.1 5 VPP SADS# SD15 SD14 SD13 VPP SOE# A V W Y AA AB AC AD AE AF 99/12/09 CSDV4 RXD1.5 RXD0.6 TXD1.6 TXD0.7 TXD1.7 TXD1.8 RXD0.8 RXD1.9 RXD0.1 0 TXD1.1 0 TXD0.1 1 CSDV1 1 RXD1.1 2 RXD0.1 3 TXEN1 3 CSDV1 4 TXD0.1 4 CSDV1 5 TXD1.1 5 CSDV0 TXEN0 NC VDDI RCLK5 0 VDD VDD VDD NC GND GND NC NC VDD VDD TXD0.0 RXD1.0 NC GNDI VDDI MD32 MD0 MD33 GND GND GND VDD GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND GND TXEN1 VDD 1 TXEN1 NC 2 NC GND GND GND SCS3# SCS2# HA0 GNDI GNDI HCLK HD15 INTRQ HA1 HA2 NC GNDI VDDI VDD VDD GND GND GND GNDI HD1 HD0 IOW# IOR# NC VDDI VDD VDD NC VPP VPP NC NC GND GND NC NC VPP VPP VPP TEST12 VDDI GND HD3 HD13 HD2 HD14 NC EEC NC NC NC NC NC NC NC NC NC NC NC NC NC TEST7 TEST11 TEST16 TEST17 HD5 HD11 HD4 HD12 TXEN1 EEIO 5 MDC NC NC NC NC NC NC NC NC NC NC NC NC NC TEST3 TEST6 TEST10 TEST15 TEST20 TEST23 HD9 HD6 HD10 NC NC NC NC NC NC NC NC NC NC NC NC TEST2 TEST5 TEST9 TEST14 TEST19 TEST22 TEST25 HD8 MDIO NC NC NC NC NC NC NC NC NC NC NC NC TEST1 TEST4 TEST8 TEST13 TEST18 TEST21 TEST24 TEST26 RESET # NC 11 SCS1# SCS0# SWE# HCS# SCS4# HD7 VIA Technologies, Inc. Preliminary VT6516 Datarsheet MII-mode Ballout Diagram A B C D E F G H J K L M N P R T U V W Y AA AB AC AD AE AF 1 CRS1 2 3 RXD3_ COL0 0 RXD1_ RXDV0 TXD3_ 1 0 TXEN1 TXD1_ TXD0_ 1 1 TXD3_ RXD0_ COL1 1 1 RXD2_ RXDV1 RXD3_ 1 1 RXD1_ TXD2_ RXD0_ 2 1 2 RXD2_ TXD0_ TXD1_ 2 2 2 TXD3_ CRS2 TXD2_ 2 2 TXD0_ RXD3_ RXDV2 3 2 RXD0_ CRS3 TXD1_ 3 3 RXD3_ TXD2_ RXD2_ 3 3 3 RXDV3 TXD3_ COL3 3 TXD0_ RXD1_ TXD1_ 4 4 4 TXD3_ RXD0_ RXDV4 4 4 RXD2_ RXD3_ TXD2_ 4 4 4 RXD1_ RXD0_ TXD0_ 5 5 5 RXD2_ TXD1_ CRS5 5 5 TXD3_ TXD2_ RXD3_ 5 5 5 TXD0_ RXDV5 RXD0_ 6 6 CRS6 RXD1_ TXD1_ 6 6 RXD3_ RXD2_ TXD2_ 6 6 6 RXDV6 COL6 TXD3_ 6 RXD1_ CRS7 TXD1_ 7 7 RXD0_ TXD0_ RXD3_ 7 7 7 TXEN7 RXDV7 TXD2_ 7 TXD3_ RXD2_ MDIO 7 7 99/12/09 4 TXD1_ 0 RXD2_ 0 TXD2_ 0 NC 5 6 RXD0_ MD1 0 CRS0 TXD0_ 0 TXEN0 RXD1_ 0 NC NC 7 MD32 8 MD34 9 MD36 10 MD38 11 MD40 12 MD42 13 MD14 14 15 CAS1# MA0 16 MA4 17 MA8 18 BA0 19 20 21 DCS1# DWE1# MD18 22 MD20 23 MD22 24 MD24 25 MD57 26 MD58 MD0 MD2 MD4 MD6 MD8 MD10 MD46 CAS0# MA1 MA5 MA9 BA1 DCS0# MD16 MD50 MD52 MD54 MD56 MD26 MD27 MD33 MD35 MD37 MD39 MD41 MD43 MD13 MD15 RAS1# MA2 MA6 MA10 DCS3# MD48 MD19 MD21 MD23 MD25 MD59 MD28 MD3 VSS MD7 MD9 MD11 MD12 MD44 RAS0# MA3 MA7 MA11 DCS2# DWE0# MD17 MD51 MD53 MD55 MD60 MD29 MD61 NC VDD GND VSS MD5 VCC VCC VCC MD45 MD47 VSS VSS VCC VCC TXEN2 RCLK5 VDD 0 COL2 VCC VSS VSS NC VCC MD49 NC GND DCLK MD30 MD62 MD31 NC VSS GND VDD MD63 SD16 SD17 SD18 VSS SCLK SD19 SD20 SD21 SD22 NC SD23 SD24 SD25 SD26 SD27 TCLK2 VCC VCC SD31 SD28 SD29 SD30 RXD1_ TXEN3 3 RCLK3 VSS VCC SA4 SA6 SA7 SA5 VSS VSS VSS VSS VSS VSS VCC SA3 SA2 SA1 SA0 TCLK3 VSS VSS VSS VSS VSS VSS VSS SA10 SA11 SA12 SA13 SA14 CRS4 TXEN4 VSS VSS VSS VSS VSS VSS SA15 SA16 SA17 SA9 SA8 COL4 RCLK4 VSS VSS VSS VSS VSS VSS VSS SD0 SD3 SD2 SD1 TCLK4 VCC VSS VSS VSS VSS VSS VSS VSS SD4 SD7 SD6 SD5 TXEN5 VCC VSS VSS VSS VSS VSS VSS SD10 SD9 SD8 SD14 SD13 RCLK2 VCC VSS VCC SD11 SD12 TCLK5 VCC VCC SADS# SD15 COL5 VCC SOE# VCC TXEN6 RCLK5 VSS VSS TCLK6 VSS GND RCLK6 GND VDD VCC VCC TCLK7 VDD VCC VCC NC RCLK7 EEC RCLK8 TCLK8 RXD3_ 9 RXD0_ TXD0_ TXD3_ 8 8 8 MDC RXD2_ RXDV8 TXD1_ COL8 8 8 RXD3_ RXD1_ TXEN8 TXD2_ CRS8 8 8 8 COL7 EEIO VCC VCC RXD2_ 9 RXD1_ 9 RXD0_ 9 RXDV9 RCLK9 TXEN9 TXD0_ 9 TXD1_ 9 TCLK9 RXD3_ 10 TXD2_ RXD2_ 9 10 TXD3_ RXD1_ 9 10 COL9 RXD0_ 10 CRS9 RXDV1 0 VSS VSS RCLK1 0 TXEN1 0 TXD0_ 10 TXD1_ 10 TCLK1 0 TXD2_ 10 TXD3_ 10 COL10 12 CRS10 RCLK1 1 RXD3_ RXDV1 11 1 RXD2_ TXEN1 11 1 RXD1_ TXD0_ 11 11 RXD0_ TXD1_ 11 11 SCS1# SCS0# SWE# SCS3# SCS2# HA0 HCS# SCS4# GND HCLK HD15 VSS GND HD1 INTRQ HA1 # HD0 IOW# IOR# VSS VSS VSS VCC TEST12 VDD HA2 VCC VCC HD3 HD13 HD2 HD14 TCLK1 1 TXD2_ 11 TXD3_ 11 COL11 CRS11 TEST7 TEST11 TEST16 TEST17 HD5 HD11 HD4 HD12 HD6 HD10 TEST3 TEST6 TEST10 TEST15 TEST20 TEST23 HD9 TEST2 TEST5 TEST9 TEST14 TEST19 TEST22 TEST25 HD8 HD7 TEST1 TEST4 TEST8 TEST13 TEST18 TEST21 TEST24 TEST26 RESET # VIA Technologies, Inc. Preliminary VT6516 Datarsheet LOGIC SYMBOL HA[2:0] HD[15:0] VT6516 3 64 16 12 HOST Interface HCS IOR SDRAM Interface IOW 2 2 2 2 INTRQ 4 TCLK[11:0] TXD0[11:0] TXD1[11:0] TXD2[11:0] TXD3[11:0] TXEN[11:0] COL[11:0] CRS[11:0] RXD0[11:0] RXD1[11:0] RXD2[11:0] RXD3[11:0] RCLK[11:0] RXDV[11:0] MD[63:0] MA[11:0] BA[1:0] RAS[1:0] CAS[1:0] DWE[1:0] DCS[3:0] 12 12 32 12 18 12 SRAM Interface 12 5 12 SA[17:0] SCS[4:0] SADS 12 12 SD[31:0] SOE MII Interface SWE 12 EEC 12 EEIO 12 Miscellaneous Interface 12 12 MDC MDIO RCLK50 12 DCLK SCLK CRS_DV[15:0] RXD0[15:0] RXD1[15:0] TXEN[15:0] TXD0[15:0] TXD1[15:0] 16 HCLK RESET 16 16 26 RMII Interface 16 16 16 -13- TEST[26:1] VIA Technologies, Inc. Preliminary VT6516 Datarsheet PIN DESCRIPTIONS No. Name Type Description SDRAM Interface See Ball Table MD[63:0] I/O See Ball Table MA[11:0] O SDRAM Address Bus: 12-bit SDRAM data bus. These signals connect directly to the address input of the SDRAM devices. See Ball Table BA[1:0] O Bank Identifier for Bank 0 and 1: See Ball Table RAS [1:0] O Row Address Strobes for Bank 0 and 1: See Ball Table CAS [1:0] See Ball Table DWE [1:0] O DRAM Write Enable for Bank 0 and 1: See Ball Table DCS [3:0] O DRAM Chip Select: VT-3061A supports at most 4 SDRAM DIMM modules. SDRAM Data: 64-bit SDRAM data bus. These signals connect directly to the data input/output pins of the SDRAM devices. DRAM row address strobes. RAS [0] is used for Bank 0. RAS [1] is used for Bank 1. O Column Address Strobes for Bank 0 and 1: DRAM column address strobes. CAS [0] is used for Bank 0. CAS [1] is used for Bank 1. SRAM Interface See Ball Table SD[31:0] I/O See Ball Table SA[17:0] O SRAM Address Bus: 18-bit SDRAM data bus. These signals connect directly to the address input of the SDRAM devices. See Ball Table SCS [4:0] O SRAM Chip Select: SRAM Type Chip Select Pins ------------------------------------32KBx32 SCS[0] & SA[15] 64KBx32 SCS[0] & SA[16] 128KBx32 SCS[0] & SA[17] 256KBx32 SCS[0] See Ball Table SADS [1:0] O Synchronous Processor Address Status See Ball Table SOE [1:0] O Output Enable See Ball Table SWE [1:0] O SRAM Write Enable: SRAM Data: 32-bit SRAM data bus. These signals connect directly to the data input/output pins of the SRAM devices. Miscellaneous Interface -14- Address Pins -----------------SA[14:0] SA[15:0] SA[16:0] SA[17:0] VIA Technologies, Inc. Preliminary VT6516 Datarsheet See Ball Table EEC O See Ball Table EEIO I/O See Ball Table MDC O See Ball Table MDIO I/O See Ball Table RCLK50 I Main Reference Clock: See Ball Table DCLK I SDRAM Reference Clock: See Ball Table SCLK I SRAM Reference Clock See Ball Table HCLK O HOST Reference Clock HCLK is determined by the strapping pins in SYSLED[3:1], i.e. the jump selection of J1[5-6, 3-4, 1-2]: J1[OFF,OFF,OFF] => 8MHz J1[ OFF,OFF, ON] => 16MHz J1[OFF, ON, OFF] => 25MHz J1[OFF, ON, ON] => 4MHz J1[ ON,OFF,OFF] => 33MHz See Ball Table RESET I SYSTEM RESET See Ball Table SYSLED[26:0 ] O SYSTEM Output Pins for LED: SYSLED[8:0] are connected to pull-up IO PADs for strapping. Serial EEPROM Interface Clock Output: EEPROM Device Addressing in the demo board: PAGE 0 (EEPROM): Device Address = 1010 000 XXXXXXXX PAGE 1 (EEPROM): Device Address = 1010 001 XXXXXXXX PAGE 2 (EEPROM): Device Address = 1010 010 XXXXXXXX PAGE 3 (EEPROM): Device Address = 1010 011 XXXXXXXX PAGE 4 (SDRAM BANK-0): Device Address = 1010 100 XXXXXXXX PAGE 5 (SDRAM BANK-1): Device Address = 1010 101 XXXXXXXX Serial EEPROM Interface Data I/O Management Interface (MI) Clock Output Management Interface (MI) Data I/O SYSLED[25:9] are connected to IO PADs without pull up/down. All SYSLED[25:0] are HOST Interface -15- VIA Technologies, Inc. See Ball Table HA[2:0] I See Ball Table HD[15:0] I/O See Ball Table HCS See Ball Table IOR See Ball Table IOW See Ball Table INTRQ I Preliminary VT6516 Datarsheet HOST IDE-Interface Address Bus: 3’b000: command the switch that the whole 16-bit data in the HOST data bus HD[15:0] is valid for packet-data read/write. 3’b001: command the switch that only the 8-bit data in the HOST data bus HD[15:0] is valid for internal registers read/write. 3’b010: command the switch to write the low byte in the HOST data bus HD[15:0] into the low byte of the 16-bit switch address register for internal registers reference. 3’b011: command the switch to write the low byte in the HOST data bus HD[15:0] into the high byte of the 16-bit switch address register for internal registers reference. 3’b1xx: bus-idle command. Keep this address bus to be 3’b111 as the HOST has no access to VT-3061A. HOST IDE-Interface Data Bus: The whole 16-bit data bus is valid for packet data read/write. However, only the 8-bit data bus is valid for internal registers read/write. HOST Chip Select: Active LOW. HCS must be asserted during the access of HOST IDE interface. I IO READ: High-to-Low Edge Trigger. IOR must be asserted from high to low to begin the read cycle of HOST IDE interface. I IO READ: High-to-Low Edge Trigger. IOW must be asserted from high to low to begin the write cycle of HOST IDE interface. MII Interface See Ball TCLK[11:0] Table O Interrupt Request: Connected to the HOST external interrupt pin. It is asserted as the following four interrupt events happen: (1) MII Management Registers read/write command done (2) EEPROM read/write command done (3) Receiving a packet destined to HOST (4) Finishing transmission of a packet issued by HOST The interrupt cause is recorded in register IRQSTS[3:0] in address 2000H. To clear the individual interrupt, The corresponding register has to be written: (1) register CLR_PHY_INT in 1806H for PHY interrupt. (2) register CLR_EE_INT in 1C04H for EEPROM interrupt. (3) register CLR_RCV_INT in 6403H for packet-receiving interrupt. l register CLR_SENT_INT in 6411H for packet-sent interrupt. I Transmit Clock for Port 0-11: TCLK is driven by the PHY device. TCLK is a continuous clock that provides the timing reference for the transfer of the TXEN and TXD signals to the PHY. A PHY operating at 100Mbps must provide a TCLK frequency of 25MHz and a PHY operating at 10Mbps must provide a TCLK frequency of 2.5MHz. -16- VIA Technologies, Inc. Preliminary VT6516 Datarsheet See Ball Table TXD<3:0>[11: 0] O Transmit Data for Port 0-11: TXD is a bundle of 4 data signals (TXD<3:0>) that shall transition to the TCLK. For each TCLK period in which TXEN is asserted, TXD<3:0> are accepted for transmission by the PHY. TXD<0> is the least significant bit. While TXEN is de-asserted, TXD<3:0> shall have no effect upon the PHY, and the value of TXD<3:0> is unspecified. See Ball Table TXEN[11:0] O Transmit Enable for Port 0-11: TXEN shall transition synchronous to the TCLK. TXEN indicates the nibbles presenting on the MII for transmission. It shall be asserted synchronously with the first nibble of the preamble and shall remain asserted while all nibbles to be transmitted are presented to the MII. See Ball Table COL[11:0] I Collision Detected for Port 0-11: COL shall be asserted by the PHY asynchronously upon detection of a collision on the medium, and shall remain asserted while the collision condition persists. See Ball Table CRS[11:0] I Carrier Sense for Port 0-11: CRS shall be asserted by the PHY asynchronously upon detection of a non-idle medium or while TX_EN is asserted. CRS shall be de-asserted by the PHY asynchronously upon detection of idle conditions on both transmit and receive media. The PHY shall ensure that CRS remains asserted throughout the duration of a collision condition. See Ball Table RXD<3:0>[11 :0] I Receive Data for Port 0-11: RXD is a bundle of 4 data signals (RXD<3:0>) that shall transition to the RCLK. For each RCLK period in which RXDV is asserted, RXD<3:0> from the PHY are accepted by the switch’s MAC. RXD<0> is the least significant bit. While RXDV is de-asserted, RXD<3:0> shall have no effect upon the switch’s MAC, and the value of RXD<3:0> is unspecified. See Ball Table RCLK[11:0] I Receive Clock for Port 0-11: RCLK is sourced from the PHY. RCLK is a continuous clock that provides the timing reference for the transfer of the RXDV and RXD signals from the PHY. A PHY operating at 100Mbps must provide a RCLK frequency of 25MHz and a PHY operating at 10Mbps must provide a RCLK frequency of 2.5MHz. See Ball Table RXDV[11:0] I Receive Data Valid for Port 0-11: RXDV is driven by the PHY to indicate the nibbles presenting on the MII for receiving. RXDV shall transition synchronous to the RCLK. It shall be asserted synchronously with the first nibble of the preamble and shall remain asserted while all nibbles to be received are presented to the MII. Note: Some flat MII input pin when the VT6516 under the RMII application, please use 22 ohm resister pull down, refer to Table XXXX -17- VIA Technologies, Inc. RMII interface See Ball CRS_DV[15:0 Table ] See Ball RXD0[15:0] Table See Ball RXD1[15:0] Table See Ball TXEN[15:0] Table See Ball TXD0[15:0] Table See Ball TXD1[15:0] Table Power Supply & Ground See Ball VDD, VDDA Table See Ball VSS, VSSA Table Preliminary VT6516 Datarsheet I Carries sense and data valid from port 15 to port 0 : I Receive data zero from port 15 to port 0 : I Receive data one from port 15 to port 0 : O Transmit enable from port 15 to port 0 : O Transmit data zero from port 15 to port 0 : O Transmit data one from port 15 to port 0 : P Positive 3.3V Supply: Supply power to Internal digital logic, Digital I/O pads, and TD, TX pads. Double bonding may be required. Negative Supply: digital ground. Multiple bonding pads are required to separate core and I/O pads ground. G JUMPER STRAPPING Jumper Pin Description HOST Clock J1 [5-6], [3-4], [1- SYSLED[3: HOST Clock (HCLK) Rate Selection: 2] 1] J1[OFF,OFF,OFF] (SYSLED[3:1]==3’b111) => 8MHz J1[ OFF,OFF, ON] (SYSLED[3:1]==3’b110) => 16MHz J1[OFF, ON, OFF] (SYSLED[3:1]==3’b101) => 25MHz J1[OFF, ON, ON] (SYSLED[3:1]==3’b100) => 4MHz J1[ ON,OFF,OFF] (SYSLED[3:1]==3’b011) => 33MHz PHY Mode J1 [7-8] SYSLED[4] PHY Device Selection: J1[OFF] (SYSLED[4]==1’b1) => RMII PHY J1[ ON] (SYSLED[3:1]==1’b0) => MII PHY SRAM Type J1 [11-12,9-10] SYSLED[6: SRAM Device Type Selection: 5] J1[OFF,OFF] (SYSLED[6:5]==2’b11) => 64K x 32 SRAM J1[OFF,ON] (SYSLED[6:5]==2’b10) => 128K x 32 SRAM J1[ON,OFF] (SYSLED[6:5]==2’b01) => 32K x 32 SRAM -18- VIA Technologies, Inc. Preliminary VT6516 Datarsheet SECTION I FUNCTIONAL DESCRIPTIONS 1. GENERAL DESCRIPTION The VT6516 is a switch engine chip implementation of a 16 ports 10/100M Ethernet switch system for IEEE 802.3 and IEEE 802.3u network. Each of individual port can be either auto-sensing or manually selected to run at 10Mbps or 100Mbps speed rate and under full or half duplex mode. There are sixteen independent MACs within the VT6516 chip. The MAC controller controls the receiving, transmitting, and deferring of each individual port, and the MAC controller also provides framing, FCS checking, error handling, status indication and flow control function. The VT6516 10/100M N-way switch port IC is wire-speed performance and low-cost packet switch; it can forward up to 148,810 packets/sec on each Ethernet port. The VT6516 support 12 ports MII or 16 ports RMII (reduce MII) interface for network interface, The VT6516 used the simple 8/16 bits ISA-like interface to support initiation, expansion and management. The system CPU can access various registers inside VT6516 through a simple ISA-like CPU interface. The CPU can configure the switch by writing into the appropriate registers, or retrieve the status of the switch by reading the corresponding registers. The CPU can also access the register of external transceiver (PHY) device through the CPU interface. The VT6516 supports new features including port based VLAN , 802.3X flow control, and the VT6516 also support the sniffer function to monitor network traffic in special ports. 2. THE VIA ETHER SWITCH ARCHITECTURE The VT6516 switch engine uses the shared memory architecture. In order to improve the packet latency, VT6516 provides two methods for packet switching, one is cut-through, another is store-and-forwarding. A typical packet flow for Ethernet switch is described as follows in 4.5. 2.1 Switch initialization procedures 1. Test all of the on board components except the switch chip or access VIA the switch chip, including UART, LED, etc. 2. Switch SDRAM test --- switch chip SDRAM control hardware initialization, configuration, SDRAM size determination (VIA embedded EEPROM in SDRAM module) and read write test. 3. Switch SRAM test --- switch chip SDRAM control hardware initialization and read write test. Note that the SRAM size determination is VIA strapping. 4. Switch IO registers read write test. 5. Ethernet PHY registers read write test ---- the CPU read/write to PHY devices will go through PHY control in switch chip. Although they are outside components, but we test them as part of the switch chip. 6. Determine link table size; reset free buffer list pointers of bank 0 and 1; initialize free memory block counter. Note that permanent buffer management is controlled by allocating bit mask. They will be cleared automatically in the hardware reset or software reset. 2.2 Packet Switching Flow 1. After the switch microprocessor activates a port during initialization, the input control of that port preallocates one packet buffer from buffer pool. In the beginning, the buffer allocated will be from private buffer pool, but subsequent buffers may come from either private or public buffer pools. -19- VIA Technologies, Inc. Preliminary VT6516 Datarsheet 2. When receive MAC (RMAC) receives a packet data from the network interface – either through MII or reduced MII (RMII) – it packs the data into 16-bit word then passes it to input control. If RMAC detects any error, it also notifies input control to stop forwarding process. 3. Input control extracts the destination MAC address from incoming data, passes it along to forwarding table control for forwarding decision. In the mean while, it packs 16-bit words into 64-bit quad-words, and saves it to an input FIFO before storing the packet data to SDRAM. 4. If the switch is configured to “store and forward” mode, input control queues the packet to the output queue of the destination port after input control is informed by RMAC that this is a good packet and it stores all packet data to SDRAM. If the switch is configured to “cut-through” mode, the input control queues the packet to the output queue of the destination port after enough amount of packet is stored in SDRAM to prevent output FIFO under-run. 5. After the whole packet is received and FCS is correct, input control pass the source MAC address of the packet to forwarding table control for address learning. 6. Output control of the outbound port de-queue the packet from output queue, and fetch packet data from SDRAM and save it into output FIFO. Then it notifies the transmit MAC (TMAC) of the new packet to transmit. 7. TMAC grabs 16-bit at a time from output control, adds preamble and SFD to the beginning of the packet, then send them out. Proper deferring is done if necessary to conform to 802.3 standard. 8. After the packet is successfully transmitted, TMAC notifies output control of the successful transmission. Output control then returns the packet to buffer pool. 3. INTERFACE DESCRIPTIONS BUFFER MEMORY (SDRAM) INTERFACE AND TABLE (SSRAM) INTERFACE VT6516 provides a 64-bit SDRAM/SGRAM interface for packet buffering and a 32-bit synchronous SRAM (SSRAM) interface for maintaining address table and various link lists. VT6516 uses SDRAM as packet buffers. Each packet buffer is a 1536-byte contiguous memory block in SDRAM, and corresponds to a 12-byte link node data structure in SSRAM. Except the first 128 link nodes, each link node can be part of an output queue, a free buffer link list, or held in input or output control. The first 128 link nodes are divided into 16 groups, each pre-assigned to a specific input control, and bit-mapped inside buffer control for faster allocate/free operation and reduce SSRAM usage. Initially, each input port control would request one packet buffer from its private buffer pool. Each time when a packet buffer is consumed by an incoming packet, the input port control will request another packet buffer to prepare for next packet. The common shared packet memory will be allocated only when there’s no free permanent packet memory for that port. See Figure 3-4. -20- VIA Technologies, Inc. 128 entries Preliminary VT6516 Datarsheet SRAM DRAM 12 bytes/entry 1.5 K/Packet Permanent Buffer Table ... 1.5 K/Packet 12 bytes/entry Free List Link Table Address Table Entriers -21- 128 blocks VIA Technologies, Inc. List 0 Link/ Frame Memory Bank 128/0 2K Links/ List 128/0 129/0 2K 132/1 2K Bank 0 129/0 Bank 1 130/1 131/0 Memory Bank Bank 0 2K List 1 Preliminary VT6516 Datarsheet List 0 130/0 List 1 131/1 4K Bank 1 4K 132/1 133/1 133/1 2K 134/0 134/0 135/1 2K 135/0 136/0 2K 136/1 137/1 4K 4K 64MBits SDRAM 16MBits SDRAM Figure 3-3 Following as the listing and figure 3-6 is the algorithm of initialization procedures for 2 bank free list of SDRAM. For 16 Mbit SDRAM as following, -- Bank0 free link list: 128, 129, 131, 134, 136, 137, 139, 142, 144, 145, 147, 150, 152, 153, 155, 158, 160,... -- Bank1 free link list: 130, 132, 133, 135, 138, 140, 141, 143, 146, 148, 149, 151, 154, 156, 157, 159, 162, 164, ... For 64 Mbit SDRAM as following, -- Bank0 free link list: 128 , 129 , 130 , 134 , 135 , 139 , 140 , 141 , 144 , 145 , 146 , 150 , 151 , 155 , 156 , 157 , 160 , ... --Bank1 free link list: 131 , 132 , 133 , 136 , 137 , 138 , 142 , 143 , 147 , 148 , 149 , 152 , 153 , 154 , 158 , 159 , 163 , … Figure 3-6: Algorithm of Initialization of Free Link Lists. #define SRAM_ADDR_REG0 0x2001 #define SRAM_ADDR_REG1 0x2002 #define SRAM_ADDR_REG2 0x2003 #define SRAM_DATA_REG0 0x2004 #define SRAM_DATA_REG1 0x2005 #define SRAM_DATA_REG2 0x2006 #define SRAM_DATA_REG3 0x2007 #define SRAM_CMD_REG 0x2008 #define SRAM_STATUS_REG 0x2009 #define SRAM_ACCESS_IDLE 0x01 #define NULL_PTR 0x7FFFF void writeLinkEntry(int entryID, int nextID) { reg_byte_write (SRAM_ADDR_REG0, entryID*3 & 0x0FF); reg_byte_cont_write (((entryID*3) >> 8) & 0x0FF); reg_byte_cont_write (((entryID*3) >> 16) & 0x0FF); -22- VIA Technologies, Inc. Preliminary VT6516 Datarsheet reg_byte_cont_write (nextID & 0x0FF); // data bits [7:0] reg_byte_cont_write ((nextID >> 8) & 0x0FF); // data bits [15:8] reg_byte_cont_write ((nextID >> 16) & 0x0FF); // data bits [23:16] reg_byte_cont_write (0); // data bits [31:24] reg_byte_cont_write (0x02); // SRAM-write command while (reg_byte_read(SRAM_STATUS_REG) != SRAM_ACCESS_IDLE) {} } void initFreeList16Mb(int maxLinkEntryNo) { // note: for 16Mb SDRAM, // Bank0 free list head pointer = 128 // Bank1 free list head pointer = 130 int k; // k: current free entry id int b0, b1; // b0, b1: bank0/1 free list head entry id for(b0=b1= NULL_PTR, k= maxLinkEntryNo; k <=128; k--) if (((k * 3) % 8) < 4) { writeLinkEntry(b0,k); b0=k;} else { writeLinkEntry(b1,k); b1=k;} } void initFreeList64Mb(int maxLinkEntryNo) { // note: for 64Mb SDRAM, // Bank0 free list head pointer = 128 // Bank1 free list head pointer = 131 int k; // k: current free entry id int b0, b1; // b0, b1: bank0/1 free list head entry id for(b0=b1= NULL_PTR, k= maxLinkEntryNo; k <=128; k--) if (((k * 3) % 16) < 8) { writeLinkEntry(b0,k); b0=k;} else { writeLinkEntry(b1,k); b1=k;} } -23- VIA Technologies, Inc. Preliminary VT6516 Datarsheet 3.1.1 SDRAM interface All frames received by the VT6516 will be stored into a common frame buffer memory, SDRAM.The SDRAM contains the packet buffers, each buffer is a 1536 (1.5K) bytes memory block. Each block is associated to an entry in link table in SRAM. The link entry includes a field (19 bits to support 512 MB) to point to next link entry. The figure 3-2 is buffer link list structure. In order to provide the cost effective DRAM buffers, user can connect the 32 bits data SGRAM with VT6516 switch, there are two external buffer device using two double bank 128Kbits by 32 required. The following figure shows the minimum configuration of buffer memory and link/address memory. Note that the SGRAM physical memory hole is to accommodate the forwarding table into the SRAM link list hole. Physical Device (1MB) 32*32 (128Kb) SSRAM by one Link List Address table entries (Link-List Hole) Memory Hole (14MB) Link List VT6516 128K*32*2 (2MB) SGRAM by two Physical Device (1MB) Physical Buffer Memory Allocation (eg, 2MB) -24- Physical SRAM Memory Allocation (eg, 128K) VIA Technologies, Inc. Preliminary VT6516 Datarsheet The detail initial step of VT6516 as following, 1. Forwarding table base = 683 * 3 2. SDRAM type equal to 16M bit 3. END0-3 = 2 (16MB) 4. Free list of SRAM have to be constructed by release public node in the sequence of buffers with blocks number 10922, 10911, … . 10240, 681, 680, 128 Note: The buffers numbered 682 to 10239 are located in the buffer memory hole, those buffers will be not put into the free list. 5. Free Memory count equal to 1364 Otherwise like this minimum configuration, the entries support for difference SRAM size using normal Address table followed by free-list, the following table show the address entries support Buffers 2MB 4MB 32*32 SSRAM 8K entries 8K entries 64*32 8K~16K 8K~16K -25- 64*64 8K~64K 8K~64K VIA Technologies, Inc. Preliminary VT6516 Datarsheet 3.1.2 SRAM interface The feature 3-1 is SSRAM structure map, the SSRAM contains the forwarding address entries, SDRAM buffers link list and permanent buffers table. Low 0 Permanent Link Table 16 ports * 8 * 12 bytes/entry Link table Entries * 12 bytes/entry (FREECNT(1006H) * 1.5K) Link Table Forwarding Table start address (TABLE_BASE(1401H) ) Address Table Entries High Address Entries * 12 bytes/entry (2 HASH_BITS(1400H) * 12) Figure 3-1 SRAM -26- VIA Technologies, Inc. 95 65 64 59 reserved VLAN ID 58 Preliminary VT6516 Datarsheet 57 55 54 52 VLAN frame priority tage flag tag type 51 frame type 50 47 46 36 35 19 18 source packet byte port ID count port mask 0 pointer to next entry 16 ports +1 cpu Figure 3-2 Free buffer link structure Table 1-0 Free buffer link structure bit 18-0 bit 35-19 bit 46-36 bit 50-47 bit 51 Bit 54-52 Bit 57-55 bit 58 bit 64-59 bit 95-65 Next entry pointer port mask (bit[16]: CPU port + bit[15:0]: Ethernet ports 0~15) Packet byte count Source port ID Frame type Reserved (zero) Priority Frame tag type Reserved (zero) VLAN tag flag Reserved (zero) VLAN ID reserved for future 95 reserved 64 63 58 VLAN ID 57 56 static/dynamic VLAN flag tage flag 55 54 53 age count 3736 port mask 0 bit-47:11 MAC address 16 ports fixed, even for key +1 cpu length = 11~15 Figure 3-5 The Address table entries structure + The address table structure as figure 3-5, The address table entries contains the MAC address information from bit 11 to bit 47, others bits 0~10 or bits 0~14 (2K~32K) as the address entries hashing index, the total address entries of device assigned by the HASH_BITS(1400H). Initialization procedures include to set forwarding address table control in normal mode and to invalidate all forwarding table entries by setting the age-count field as 0. Configure port mask register (USER_PM) for broadcast MAC address. Configure port mask and MAC address pairs that allow any static MAC to port mask mapping. Forwarding table entry has 96 bits, defined as follows: -27- VIA Technologies, Inc. Preliminary VT6516 Datarsheet Table 1-1 Address table structure bit 36-0 bit 53-37 bit 55-54 bit 56 bit 57 bit 63-58 bit 95-64 High bits (bit 47-11) of MAC address port mask (bit[16]: CPU port + bit[15:0]: Ethernet ports 0~15) age count Static flag (0: dynamic entry, 1: static entry that can not be updated) VLAN tag flag Reserved (zero) VLAN ID Reserved for future And following is the algorithm for the initial the address entries; #define SRAM_ADDR_REG0 0x2001 #define SRAM_ADDR_REG1 0x2002 #define SRAM_ADDR_REG2 0x2003 #define SRAM_DATA_REG0 0x2004 #define SRAM_DATA_REG1 0x2005 #define SRAM_DATA_REG2 0x2006 #define SRAM_DATA_REG3 0x2007 #define SRAM_CMD_REG 0x2008 #define SRAM_STATUS_REG 0x2009 #define SRAM_ACCESS_IDLE 0x01 void invalidateForwardEntry(int entryID) { // the entryID is starting from maxLinkEntryID with width of 96 bits reg_byte_write (SRAM_ADDR_REG0, (entryID*3+1) & 0x0FF); reg_byte_cont_write (((entryID*3+1) >> 8) & 0x0FF); reg_byte_cont_write (((entryID*3+1) >> 16) & 0x0FF); reg_byte_cont_write (nextID & 0x0FF); entry bits [32] reg_byte_cont_write ((nextID >> 8) & 0x0FF); reg_byte_cont_write ((nextID >> 16) & 0x0FF); reg_byte_cont_write ((nextID >> 16) & 0x0FF); reg_byte_cont_write (0x02); // SRAM-write command while (reg_byte_read(SRAM_STATUS_REG) != SRAM_ACCESS_IDLE) {} } 3.1.3 CPU interface The VT6516 support one ISA-like CPU interface, this CPU interface can cooperate with one simple microprocessor like 8031 or 8051. The CPU will access the switch control and status register to perform initialization and configurations. By the CPU interface, the frames of CPU port can be read/written from/into the buffer. The CPU interface can also be used to access the internal registers. The CPU interface also used to access the external PHY devices through the PHY control module. The CPU firmware will perform following tasks, - Read the configuration from switch register or from the EEPROM contains - Initialize the switch followed by the configuration, those task including * DRAM initialization * SRAM initialization and link list construction * Program for each network ports for users manual setting or read the auto-negotiation result - start switch to receive frames and forward frames - decrease the learning address aging count - polling the network port change event and change the switch MAC negotiation mode. -28- VIA Technologies, Inc. Preliminary VT6516 Datarsheet - Receiving the STP defined BPDU packets - Blocking or re-start port due to STP - Access the network management counter of each port For a management switch the CPU also perform the management function like receiving and transmitting the SNMP frame. -29- VIA Technologies, Inc. Preliminary VT6516 Datarsheet 3.1.4 Network interface The VT6516 directly connect to 16 port RMII PHY or 12 port MII PHY device which compliant with IEEE standard (Please see IEEE 802.3u Fast Ethernet standard) . Each Fast Ethernet port has following characteristics: - Capable of supporting both 10MBps and 100MBps data rates in half and full duplex modes. - Provide a simple management interface (SMI) for port status - Perform all functions of the IEEE 802.3 protocol such as frame formatting, frame stripping, collision handling, deferred, etc. - Adjustable preamble ,SFD and inter frame gap (IFG). - IEEE 802.3X flow control supported - IEEE 802.1D spanning tree protocol support, and all port state of listen and block configurable 3.1.4.1 RMII interface The VT6516 communicates with the external 10/100M Ethernet transceiver through the reduced MII (RMII) interface. The signals of RMII interface are described in Table-3-1 Table 3-1 RMII interface signals Name CRSDV Type I RXD[0-1] I TXEN TXD[0-1] O O Description Carrier sense and Data valid Receive data bit 0 to 1 , data rate with 50MHz Transmit Enable Transmit Data bit 0 to 1 Figure 3-1 RMII timing diagram (omitted) -30- VIA Technologies, Inc. Preliminary VT6516 Datarsheet 3.1.4.2 MII interface The VT6516 communicates with the external 10/100M Ethernet transceiver through standard MII interface, in this mode the VT6516 became 12 ports MII port due to the MII signal multiplexed with RMII signal. But the ports number of internal remained as 16 ports. The signals of MII interface are described in Table-3-2: Table 3-2 MII interface signals Name Type TCLK TXD[3:0] TXEN COL CRS RXD[3:0] RCLK RXDV I O O I I I I I Description Transmit Clock Transmit Data for. Transmit Collision Detected Carrier Sense Receive Data Receive Clock Receive Data Figure 3-2 MII timing diagram (omitted) 3.1.4.3 Flow control Under full-duplex mode operation, if the buffer utilization of whole switch has exceeded the upper threshold and the permanent buffer has been used up, a pause frame with a pause time interval will be send to the sending port to stop it from sending new frame. If register- FMFCT not enable at this switch, the public buffer will used until no more buffers. Then further incoming frames will be dropped. The unit in pause time field of the flow control frame is slot time (512 bits). The max possible waiting time should be the max packet memory size divided by lowest port speed, for example if 512MB is the max packet buffer size and 10Mb is the lowest speed, the 512M * 8 bits * 100ns = 409.6 seconds (8M slot time) is the max possible waiting time. The congestion factor is the max possible waiting time at current link load. The pause timer value is half of the max possible waiting time. If it is greater than the feasible max pause time, use all 1’s in pause time value. If the utilization of the public buffer of the switch drops below the lower threshold, a pause-frame with minimum frame interval of 0 will be sent to the linking ports the enable new frame transmission. Under half duplex operation, if the buffer utilization of whole switch has exceeded the upper threshold and the permanent buffer has been used up, the port will perform back-pressure based flow control by sending a jam pattern on each incoming frame. If backpressure flow control of the port is not enable, the frame will be dropped. The flow control pause time is calculated by maintained the configuration of port speed of each port and the buffer size. With input of the free memory block count and congestion factor, it determines flow control on or off on an output port. If flow control is on, any new queue request from a input port to this output port will trigger a flow control frame sent to that request port by the output MAC that is notified by the packet flow control unit. -31- VIA Technologies, Inc. Preliminary VT6516 Datarsheet The flow control activity is triggered when the buffer utilization exceeds certain thresholds specified by the dedicated register FMFCT, Register- FMFCT is used to specify the upper and lower thresholds of reserved buffer slot for whole switch. 3.1.4.4 SMI interface The VT6516 communicates with the external 10/100M PHY and access the PHY register through MDC, MDIO 3.1.4.5 Auto negotiation The VT6516 communicates with the external 10/100M PHY and access the PHY register through MDC, MDIO 3.1.5 Serial EEPROM interface -32- VIA Technologies, Inc. Preliminary VT6516 Datarsheet 4. FUNCTIONAL DESCRIPTION 4.1 Packet Reception and Address recognition When VT6516 received frames from network, the input control module will receive packet from input MAC module, then get the output port mask from forwarding table control module, request packet buffer from buffer control, write packet from input FIFO to packet buffer scheduled by scheduler module, queue packet to the output queue through queue control module. And update the forwarding table by the source address of the received good packet. Usually the source MAC address will be learned and stored to forwarding table. If VLAN is configured by user, the frame tag type and VLAN ID will also be learned. The source MAC address bit 47~11 and VLAN ID will be record in the forwarding table entry indexed by source MAC address bit 10~0 or 14~0. The on chip multicast forwarding configuration registers mainly are for well-known addresses which are listened by CPU. External multicast addresses are for dynamically assigned. Also some static Mac addresses/port mask registers can be configured by CPU, these addresses will also be checked before look up the forward table. 4.2 Packet Forwarding and VLAN The VT6516’s queue control maintains all head and tail pointers for all output ports. Accept the request to queue and dequeue packets from input and output control. Both queue and dequeue operations take only 1 SRAM access (3 words = 96 bits), because the tail node is stored in the internal register of the queue control Usually, queue and dequeue operations to a specific output queue can be performed simultaneously. However, mutual exclusion is applied while only one node in this queue Each port will maintain a packet counter, it increments when packet gets queued through the tail pointer, it decrements when packet de-queued through head pointer. The congestion factor is the queued packet count divided by port media speed. The congestion factor will be used for flow control and multicast, congestion factor should be roughly equal to the time it takes to transmit all the queued packets. For multicast packet, based on congestion factor, the least congested output port will be queued first. The output control will queue the packet to next least congested output port when it is transmitted, the CPU port will always be last port to be transmitted if the corresponding CPU bit is set in the port mask. The port speed will be used for cut through forwarding decision. If the packet length is 7ff, it implies the input control try to cut through, queue control will accept or reject by looking whether the input port speed is equal to the output port speed and the output don’t have queued packets and any pending transmission. The faster output port (than input port speed) and CPU port is not able to cut through Broadcast packet, multicast and look up miss packet will forward(multicast) to those ports which is configured by software, but default(dump switching hub) will be all ports(or all ports in that VLAN if VLAN is implemented) except CPU port. Broadcast, multicast packet will check the on chip broadcast forwarding configuration register and multicast forwarding configuration registers first, if multicast address not match any of the multicast forwarding configuration registers then it will look up the external SRAM forwarding table. -33- VIA Technologies, Inc. Preliminary VT6516 Datarsheet When request transfer to or from SDRAM through scheduler, the input control need to derive each burst starting address to bank0 or bank1 information for scheduler to utilize SDRAM bandwidth efficiently. When input FIFO is filled to 12x64 or page boundary or end of frame, the input port control will request DRAM access to write packet. Input FIFO size is 64 bits by 24. After receiving the grant of queueing (cut-through or store-and-forward), even the bad packet has to be forwarded. While cut-through, the input control will request the grant of cut-through counter bus for passing the cut through packet count from input port to output port as the whole packet has received. 4.2.1 Cross VLAN Server Port support The VT6516 support Cross VLAN server port configuration, the following illation show the sample of server ports configuration by set the register of server port mask(14A0H~14A1H), and server ports only enable after the VLAN enabled. The multicast or broadcast frames received from one VLAN group will forward to any server ports and only forward to the ports with same VID. 4.3 Network Management Features Flow control The flow control activity is triggered when the buffer utilization exceeds certain thresholds specified by the dedicated register XXXX, Register-XXXX is used to specify the upper and lower thresholds of reserved buffer slot for whole switch. Under full-duplex mode operation, if the buffer utilization of whole switch has exceeded the upper threshold and the permanent buffer has been used up, a flow control with a predefined pause time value will be sent to the source port to stop the input traffic. If flow control mechanism is not enabled, the public buffer will exhausted so that the further incoming frames will be dropped. Under half duplex operation, if the buffer utilization of whole switch has exceeded the upper threshold and the permanent buffer has been used up, the port will perform back-pressure based flow control by sending a jam pattern on each incoming frame. If backpressure flow control of the port is not enable, the frame will be dropped. Sniffer port The VT6516 support sniffer function for user to monitor the network traffic. The Sniffer port enable can be set for any individual port of sixteen ports. And each sniffer port can set to monitor the traffic coming from any others fifteen port(monitor port). Any packets sent to the monitor ports or transmitted out of monitor port will be forwarded to sniffer port. Spanning tree support The VT6516 support the spanning tree protocol (STP). When spanning tree protocol support is enabled, frames from the CPU port having a DA value equal to reserved Bridge Management Group Address for BPDU will be forwarded to the port specified by the CPU. Frames from other port with a DA equal to reserved Bridge Management Group Address for BPDU will be forwarded to the CPU port. -34- VIA Technologies, Inc. Preliminary VT6516 Datarsheet Every port of the VT6516 can be set to block and listen mode through the CPU interface. In the mode, incoming frames with DA value equal to the reserved Group address for BPDU will be forward to CPU port and other incoming frames with other DA value will be dropped. Outgoing frames with any DA value will be filtered expect DA equal to BPDU. -35- VIA Technologies, Inc. Preliminary VT6516 Datarsheet SECTION II REGISTER MAP 1. REGISTER TABLES The VT6516 incorporates the required command/status registers and various counters for management purposes. Although the default values of the control registers are predefined in the usual way, there is still a requirement for CPU intervention. All registers are defined as 8 bits so that long registers have to be divided into pieces of 8 bits with the Little-Endian principle, i.e. the lower byte in the lower address. There are only eight registers that are directly accessible for CPU, called the CPU interface registers. They are located with memory mapping in the range of 8000H ~ 8007H for the microprocessor 8031 in the evaluation board. The other registers are called the internal registers that are referenced indirectly by the 16-bit address register with offset 02H ~ 03H in the CPU interface address table. While the 16-bit address register is set to reference to the specific 8-bit internal register, the following read or write operation to the 8-bit data register with offset 01H in the CPU interface address table will cause the specified internal register to be read or written indirectly. Besides, the address register will increase by one automatically to facilitate the successive read/write operation. If the internal register is of size less than 8 bits, the value 0’s is always returned for the vacant register space and any write operations to them take no effect. 2 CPU INTERFACE REGISTERS MAP *Note: register table base = 8000H for the evaluation board. Description Type Offset Function Packet Data Register R/W 0H According to the strapping mode of packet [15:0] read/write data bus, two types are defined for 8bit and 16-bit data bus, respectively. For 8-bit CPU, only the low byte of the Packet Data Register is used for packet read/write. For 16-bit CPU, the whole 16-bit Packet Data Register is used for packet read/write. Data Register [7:0] R/W 1H The read or write operation to the 8-bit data register will cause the specified internal register (referenced by the Address Register) to be read or written indirectly. Besides, after the read/write operation, the Address Register will increase by one automatically to facilitate the successive read/write operation. Address Register [7:0] R/W 2H The low-byte address register for the reference to an internal register with 16-bit address. Address Register [15:8] R/W 3H The high-byte address register for the reference to an internal register. TEST Register 0 [7:0] W/O 4H see the description in TEST Register 3 TEST Register 1 [7:0] W/O 5H see the description in TEST Register 3 TEST Register 2 [7:0] W/O 6H see the description in TEST Register 3 TEST Register 3 [7:0] W/O 7H -36- VIA Technologies, Inc. Preliminary VT6516 Datarsheet 3 SWITCH INTERNAL REGISTERS MAP Address Register Description (base/offse t) 0000H SDRAM 00H SDRAM TYPE Name SDRAMTYPE [0] 01H CAS Latency CL [1:0] 2 02H SDRAM Operation Mode RSDM [3:0] 5 03H DIM-Bank 0 Ending Address END0A [4:0] 0 04H DIM-Bank 1 Ending Address END1A [4:0] 0 05H DIM-Bank 2 Ending Address END2A [4:0] 0 06H DIM-Bank 3 Ending Address END3A [4:0] 0 07H 08H SDRAM Command Drive Strength Configure SDRAM Bank Interleaving Disable SDRAM_DR_C [2:0] 0 FG BK_IL_DIS [0] 0 0800H SRAM 00H SRAM Read Command Interleave Disable 0C00H Queue control 00-02H Free Memory Flow Control Threshold register 03H Cut Through Enable 04H CPU Port Speed Configuration 10-13H Congestion Factor of Output Port 0 14-17H Congestion Factor of Output Port 1 18-1BH Congestion Factor of Output Port 2 1C-1FH Congestion Factor of Output Port 3 20-23H Congestion Factor of Output Port 4 -37- SRAM_READ_IL_D IS Bits 0 R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W 0 R/ W [18:0 0 ] CUT_THROU [0] 0 GH_EN CPU_SPD_CF [2:0] 0 G CONGEST_FC [25:0 0 T0 ] CONGEST_FC [25:0 0 T1 ] CONGEST_FC [25:0 0 T2 ] CONGEST_FC [25:0 0 T3 ] CONGEST_FC [25:0 0 T4 ] R/ W R/ W R/ W FMFCT [0] Default R/ Value W R/O R/O R/O R/O R/O VIA Technologies, Inc. Preliminary VT6516 Datarsheet 24-27H Congestion Factor of Output Port 5 28-2BH Congestion Factor of Output Port 6 2C-2FH Congestion Factor of Output Port 7 30-33H Congestion Factor of Output Port 8 34-37H Congestion Factor of Output Port 9 38-3BH Congestion Factor of Output Port 10 3C-3FH Congestion Factor of Output Port 11 40-43H Congestion Factor of Output Port 12 44-47H Congestion Factor of Output Port 13 48-4BH Congestion Factor of Output Port 14 4C-4FH Congestion Factor of Output Port 15 50-53H CONGEST_FC T5 CONGEST_FC T6 CONGEST_FC T7 CONGEST_FC T8 CONGEST_FC T9 CONGEST_FC T10 CONGEST_FC T11 CONGEST_FC T12 CONGEST_FC T13 CONGEST_FC T14 CONGEST_FC T15 CONGEST_FC T16 [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [25:0 ] [18:0 ] [18:0 ] [18:0 ] [0] 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 0 R/O 1000H Congestion Factor of Output Port 16 (CPU port) Buffer control 00-02H Bank 0 Free Pointer FREE0_PT 03-05H Bank 1 Free Pointer FREE1_PT 06-08H Free Memory Block Count FREEMCNT 09H CLEAR All Free Pointers (reset the free buffer pointers according to the SDRAM TYPE) CFP 10H PRIVATE MEMORY ALLOCATION BIT MASK for PORT 0 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 1 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 2 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 3 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 4 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 5 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 6 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 7 PORT0_MASK [7:0] 0 R/ W W/ O R/O PORT1_MASK [7:0] 0 R/O PORT2_MASK [7:0] 0 R/O PORT3_MASK [7:0] 0 R/O PORT4_MASK [7:0] 0 R/O PORT5_MASK [7:0] 0 R/O PORT6_MASK [7:0] 0 R/O PORT7_MASK [7:0] 0 R/O 11H 12H 13H 14H 15H 16H 17H -38- R/O R/O VIA Technologies, Inc. 18H 19H 1AH Preliminary VT6516 Datarsheet PRIVATE MEMORY ALLOCATION BIT MASK for PORT 8 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 9 PRIVATE MEMORY ALLOCATION BIT MASK for PORT 10 PORT8_MASK [7:0] 0 R/O PORT9_MASK [7:0] 0 R/O PORT10_MAS K PRIVATE MEMORY ALLOCATION BIT MASK for PORT11_MAS PORT 11 K PRIVATE MEMORY ALLOCATION BIT MASK for PORT12_MAS PORT 12 K PRIVATE MEMORY ALLOCATION BIT MASK for PORT13_MAS PORT 13 K PRIVATE MEMORY ALLOCATION BIT MASK for PORT14_MAS PORT 14 K PRIVATE MEMORY ALLOCATION BIT MASK for PORT15_MAS PORT 15 K Forwarding table control bits of MAC address used as index for forwarding HASH_BITS [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [2:0] 0 01-03H starting SRAM address register for forwarding table base TBL_BASE 04H user configured forwarding mode FWD_MODE [18:0 0 ] [1:0] 0 05-07H user configured port mask USER_PM 08-09H port mask for packets sent by CPU 0AH 0BH CPU port related forwarding configuration. port id of sniffer port. 0C-0EH monitor port mask 10H high byte [14:8] of the MAC hash address to be aged low byte [7:0] of the MAC hash address AGE_MAC to be aged. aging status AGING_STAT US spanning tree state for PORT 0 PORT0_STP_S TATE spanning tree state for PORT 1 PORT1_STP_S TATE spanning tree state for PORT 2 PORT2_STP_S TATE spanning tree state for PORT 3 PORT3_STP_S TATE R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/O 1BH 1CH 1DH 1EH 1FH 1400H 00H table 11H 12H 20H 21H 22H 23H [16:0 0 ] CPU_PM [15:0 0 ] CPU_FWD_CF [2:0] 0 G SNIFFER_PID [3:0] 0 MONITOR_PM [16:0 0 ] AGE_MAC [6:0] 0 -39- [7:0] 0 [0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 R/ W R/ W R/ W R/ W VIA Technologies, Inc. Preliminary VT6516 Datarsheet 24H spanning tree state for PORT 4 25H spanning tree state for PORT 5 26H spanning tree state for PORT 6 27H spanning tree state for PORT 7 28H spanning tree state for PORT 8 29H spanning tree state for PORT 9 2AH spanning tree state for PORT 10 2BH spanning tree state for PORT 11 2CH spanning tree state for PORT 12 2DH spanning tree state for PORT 13 2EH spanning tree state for PORT 14 2FH spanning tree state for PORT 15 80H port 0 VLAN ID PORT4_STP_S TATE PORT5_STP_S TATE PORT6_STP_S TATE PORT7_STP_S TATE PORT8_STP_S TATE PORT9_STP_S TATE PORT10_STP_ STATE PORT11_STP_ STATE PORT12_STP_ STATE PORT13_STP_ STATE PORT14_STP_ STATE PORT15_STP_ STATE PORT0_VID 82H port 1 VLAN ID PORT1_VID [5:0] 0 84H port 2 VLAN ID PORT2_VID [5:0] 0 86H port 3 VLAN ID PORT3_VID [5:0] 0 88H port 4 VLAN ID PORT4_VID [5:0] 0 8AH port 5 VLAN ID PORT5_VID [5:0] 0 8CH port 6 VLAN ID PORT6_VID [5:0] 0 8EH port 7 VLAN ID PORT7_VID [5:0] 0 90H port 8 VLAN ID PORT8_VID [5:0] 0 92H port 9 VLAN ID PORT9_VID [5:0] 0 94H port 10 VLAN ID PORT10_VID [5:0] 0 -40- [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [1:0] 0 [5:0] 0 R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W VIA Technologies, Inc. Preliminary VT6516 Datarsheet 96H port 11 VLAN ID PORT11_VID [5:0] 0 98H port 12 VLAN ID PORT12_VID [5:0] 0 9AH port 13 VLAN ID PORT13_VID [5:0] 0 9CH port 14 VLAN ID PORT14_VID [5:0] 0 9EH port 15 VLAN ID PORT15_VID [5:0] 0 A0-A1H Server port mask 1800H 00H [15:0 0 ] VLAN related forwarding configuration VLAN_FWD_C [0] 0 FG PHY control PHY ID PHYID [3:0] 0 01H PHY register address 02-03H PHY data register 04H PHY command register 05H 10H PHY status register PORT0 PHY Device Address 11H PORT1 PHY Device Address 12H PORT2 PHY Device Address 13H PORT3 PHY Device Address 14H PORT4 PHY Device Address 15H PORT5 PHY Device Address 16H PORT6 PHY Device Address 17H PORT7 PHY Device Address 18H PORT8 PHY Device Address 19H PORT9 PHY Device Address 1AH PORT10 PHY Device Address A2H SRV_PM PHY_REG_AD [4:0] 0 DR PHYDATA [15:0 ] PHYCMD [0] PHYSTS PORT0_PHY_ ADDR PORT1_PHY_ ADDR PORT2_PHY_ ADDR PORT3_PHY_ ADDR PORT4_PHY_ ADDR PORT5_PHY_ ADDR PORT6_PHY_ ADDR PORT7_PHY_ ADDR PORT8_PHY_ ADDR PORT9_PHY_ ADDR PORT10_PHY_ ADDR -41- [1:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 R/ W R/ W R/ W R/ W R/ W R/ W R/ W W/ O W/ O R/ W W/ O R/O R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W R/ W VIA Technologies, Inc. Preliminary VT6516 Datarsheet 1BH PORT11 PHY Device Address PORT11_PHY_ ADDR PORT12_PHY_ ADDR PORT13_PHY_ ADDR PORT14_PHY_ ADDR PORT15_PHY_ ADDR 1CH PORT12 PHY Device Address 1DH PORT13 PHY Device Address 1EH PORT14 PHY Device Address 1FH PORT15 PHY Device Address 1C00H 00H EEPROM control EEPROM word address EEWDADDR [7:0] 01H EEPROM data EEDATA [7:0] 02H EEPROM device address EEDEVADDR [7:0] 03H 2000H 00H EEPROM status register CPU interface interrupt status register EESTS [2:0] IRQSTS [3:0] 0 01H-03H SRAM address register SRAMADDR 04H-07H SRAM data register SRAMDATA 08H SRAMCMD [18:0 ] [31:0 ] [1:0] SRAM command register 09H SRAM status register 10H-13H SDRAM address register [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 [4:0] 0 SRAMSTS [1:0] 0 SDRAMADDR [23:0 ] SDRAMDATA [63:0 ] SDRAMCMD [1:0] 14H-1BH SDRAM data register 1CH SDRAM command register 1DH 20H SDRAM status register Write packet command 21H Packet Abort 30H bits [47:40] of switch base MAC address SWITCH_MA [7:0] 0 [47:0] C_BASE bits [39:32] of switch base MAC address SWITCH_MA [7:0] 0 [47:0] C_BASE bits [31:24] of switch base MAC address SWITCH_MA [7:0] 0 [47:0] C_BASE 31H 32H SDRAMSTS [1:0] 0 WR_PKT_CM [2:0] D ERR_ABORT [0] -42- R/ W R/ W R/ W R/ W R/ W W/ O R/ W W/ O R/O R/ W R/ W R/ W R/ W R/O R/ W R/ W R/ W R/O W/ O W/ O R/ W R/ W R/ W VIA Technologies, Inc. 33H 34H 35H 40H 50H 51H 2400H 00H 01H 02H 03H 04H 10H-13H 14H-17H 18H-1BH 1CH-1FH 20H-23H 2800H 2C00H 3000H 3400H 3800H 3C00H 4000H 4400H 4800H 4C00H Preliminary VT6516 Datarsheet bits [23:16] of switch base MAC address SWITCH_MA [7:0] [47:0] C_BASE bits [15:8] of switch base MAC address SWITCH_MA [7:0] [47:0] C_BASE bits [7:4] of switch base MAC address SWITCH_MA [7:4] [47:0] C_BASE interrupt mask register IRQSTS_MAS [3:0] K CPU Soft Reset for the whole switch chip CPU_SOFT_R [0] reset ESET Revision Control Register REVISION_CT [7:0] L MAC & I/O Control Module of Port 0 configurable preamble bytes PREAM_CFG [2:0] 0 R/ W 0 R/ W 0 R/ W 4’b1111 R/ W 1 R/ W 0 R/O R/ W configurable frame gap in di bits for 1st IFG_CFG [5:0] 32 R/ interval W Backoff configuration BOFFCFG [4:0] 5’b100 R/ 00 W MAC media type configuration MACCFG [3:0] 0 R/ W IO port enable IO_CFG [1:0] 0 R/ W received good packet count RCV_GOOD_P [31:0 0 R/O KT ] received bad packet count RCV_BAD_PK [31:0 0 R/O T ] drop packet counter DROP_PKT [31:0 0 R/O ] sent good packet count XMT_GOOD_ [31:0 0 R/O PKT ] sent bad packet counter XMT_BAD_PK [31:0 0 R/O T ] MAC & I/O Control Module of Port 1 as same as Port 0 MAC & I/O Control Module of Port 2 as same as Port 0 MAC & I/O Control Module of Port 3 as same as Port 0 MAC & I/O Control Module of Port 4 as same as Port 0 MAC & I/O Control Module of Port 5 as same as Port 0 MAC & I/O Control Module of Port 6 as same as Port 0 MAC & I/O Control Module of Port 7 as same as Port 0 MAC & I/O Control Module of Port 8 as same as Port 0 MAC & I/O Control Module of Port 9 as same as Port 0 MAC & I/O Control Module of Port as same as Port 0 10 -43- 7 VIA Technologies, Inc. 5000H Preliminary VT6516 Datarsheet 02H MAC & I/O Control Module of Port 11 MAC & I/O Control Module of Port 12 MAC & I/O Control Module of Port 13 MAC & I/O Control Module of Port 14 MAC & I/O Control Module of Port 15 CPU IO Control Module CPU packet read byte count register bits [7:0] CPU packet read byte count register bits [10:8] CPU packet read status register 03H Packet source port ID 04H CPU IO port configuration register 10H CPU packet write status register 5400H 5800H 5C00H 6000H 6400H 00H 01H as same as Port 0 as same as Port 0 as same as Port 0 as same as Port 0 as same as Port 0 PKT_BYTE_C NT PKT_BYTE_C NT RD_PKT_STA TUS PKT_SRC_PO RT CPUIO_CFG [7:0] 0 R/O [10:8 0 ] [1:0] 0 R/O [3:0] 0 R/O [1:0] 0 R/ W R/O R/O WR_PKT_STA [2:0] 0 TUS 4. DETAIL OF SWITCH REGISTER 4.1 Registers of SDRAM Control Module * Base Address: 0000H Addres Function s (offset ) 00H SDRAM TYPE: Register Name Bits SDRAMTYPE [0] Defau R/ lt W Value 0 R/W 2 R/W 0: 16Mbit SDRAM chip (default) 1: 64Mbit 01H This register has to be specified before initialization of the buffer control because the Bank 1 free buffer pointer should have initial value 130 for 16Mbit SDRAM, or, initial value 131 for 64Mbit SDRAM. CAS Latency for read operation: CL 2’b00: latency 1 2’b01: latency 2 2’b10: latency 3 (default) This latency specifies the required delay between the CAS cycle and the first read cycle. Note that the CAS latency has to be specified before using RSDM in SDRAM initialization. -44- [1:0] VIA Technologies, Inc. 02H Preliminary VT6516 Datarsheet SDRAM Operation Mode: For the bits [2:0], the operation modes are defined as follows: 3’b000: Normal SDRAM Mode 3’b001: NOP Command Enable 3’b010: Precharge All Banks 3’b011: MSR Enable (Mode Register Set Enable) 3’b100: CBR Refresh Cycle Enable others: idle for power-up For the bit [3], it is called REFRESH_EN, defined as follows: 0: turn off hardware refresh cycle (default) 1: turn on hardware refresh cycle RSDM [3:0] 5 R/W END0A [4:0] 0 R/W [4:0] 0 R/W [4:0] 0 R/W [4:0] 0 R/W After the last refresh operation issued by software in the initialization cycle, software should enable the bit “REFRESH_EN” immediately to notify SDRAM control module ‘sdramctl’ to start generating refresh cycle periodically. 03H 04H 05H 06H The initialization of SDRAM control module is illustrated as follows: SDRAMTYPE ß 0 : 16Mb CL ß 1 : read latency = 2 (3) delay 1 s (4) RSDM ß 1 : NOP (5) delay 1 s (6) RSDM ß 2 : Precharge (7) delay 1 s (8) loop 7 times RSDM ß 4 : Refresh delay 1 s RSDM ß 1 : NOP delay 1 s (9) RSDM ß 0CH : Refresh & turn on hardware refresh (10) delay 1 s (11) RSDM ß 0BH : Mode Register Set Enable (12) delay 1 s (13) RSDM ß 08H : Normal SDRAM Mode (14) END0A ß 0x04 : DIM bank 0 ending address = 32MB (15) END1A ß 0x08 : DIM bank 1 ending address = 64MB (16) END2A ß 0x0C : DIM bank 2 ending address = 96MB (17) END3A ß 0x10 : DIM bank 3 ending address = 128MB Bits [27:23] of DIMM Bank 0 Ending Address For the case that there are two 32MB SDRAM modules plugged in DIMM slot 0 and two 16MB SDRAM modules plugged in DIMM slot 1, assign the registers as follows END0A = 04H to indicate the ending address of DIMM Bank 0 is at 2^25 (32MB) END1A = 08H to indicate the ending address of DIMM Bank 1 is at 2^26 (64MB) END2A = 0AH to indicate the ending address of DIMM Bank 0 is at 2^26+2^24 (80MB) END3A = 0CH to indicate the ending address of DIMM Bank 0 is at 2^26+2^25 (96MB) Bits [27:23] of DIMM Bank 1 Ending Address END1A (see END0A) Bits [27:23] of DIMM Bank 2 Ending Address END2A (see END0A) Bits [27:23] of DIMM Bank 3 Ending Address END3A (see END0A) -45- VIA Technologies, Inc. 07H 08H Preliminary VT6516 Datarsheet SDRAM Command Drive Strength Configure bit0: RDCSDV --- SDRAM Chip Select Drive Strength bit1: RMADV --- SDRAM MA drive strength (including RAS,CAS,WE,MA,BA) bit2: RMDDV --- SDRAM MD drive strength SDRAM Bank Interleaving Disable 0: enable interleaving (default) 1: disable interleaving SDRAM_DR_ [2:0] CFG 0 R/W BK_IL_DIS [0] 0 R/W Register Name Bits Defau R/ W lt Value 4.2 Registers of SRAM Control Module * Base Address: 0800H Addres Function s (offset ) 00H SRAM Read Command Interleave Disable 0: enable interleaving (default) 1: disable interleaving SRAM_READ [0] _IL_DIS 0 R/W Register Name Bits Defau R/ lt W Value FMFCT [18:0 0 ] 4.3 Registers of Queue Control Module * Base Address: 0C00H Addres Function s (offset ) Free Memory Flow Control Threshold register 0002H As FREEMCNT(a register in buffer control) < FMFCT, the 03H congestion control function will be triggered to command the TMAC module of the source port, destined to a congested port, to send out a flow control frame for full duplex mode, or to make back-pressure for half duplex mode. See the context about congestion control for details. Larger the threshold value more sensitive the congestion control mechanism, i.e. maybe poor utilization for packet buffers but larger packet loss rate. Smaller the threshold value less sensitive the congestion control mechanism, i.e. maybe good utilization for packet buffers but smaller packet loss rate. It depends on the network configuration and traffic pattern. The recommended threshold value is 256. Cut Through Enable CUT_THROU [0] 0: Disable Cut Through (default) GH_EN 1: Enable Cut Through Note: REMEMBER to enable the cut-through function to improve the switching latency. For 100Mbps input port, the smallest latency for cut-through is 288 bytes time (288x8x10 ns). For 10Mbps input port, the smallest latency for cut-through is 96 bytes time (96x8x100 ns). -46- 0 R/ W R/W VIA Technologies, Inc. 04H 1013H 1417H 181BH 1C1FH 2023H 2427H 282BH 2C2FH 3033H 3437H 383BH 3C3FH 4043H 4447H 484BH Preliminary VT6516 Datarsheet CPU_SPD_CF [2:0] G CPU Port Speed Configuration 3’b000: 1 Mbit (default) 3’b001: 5 Mbit 3’b010: 10 Mbit 3’b011: 20 Mbit 3’b100: 40 Mbit 3’b101: 50 Mbit 3’b110: 80 Mbit 3’b111: 100 Mbit This register is used to calculate the congestion factor of the CPU port, that is the quotient of the accumulated byte count of the CPU output queue to the specified CPU port speed. While the congestion control is triggered, the output ports with congestion factor larger than the average will enter into the congestion control mode. Congestion Factor of Output Port 0 CONGEST_F [25:0] CT0 The congestion factor, i.e. the quotient of the accumulated byte count of the output queue to the port speed, for each of 16 Ethernet ports is calculated by the flow control module. While the congestion control is triggered, the output ports with congestion factor larger than the average will enter into the congestion control mode. Congestion Factor of Output Port 1 CONGEST_F [25:0] CT1 0 R/W 0 R/O 0 R/O Congestion Factor of Output Port 2 CONGEST_F [25:0] CT2 0 R/O Congestion Factor of Output Port 3 CONGEST_F [25:0] CT3 0 R/O Congestion Factor of Output Port 4 CONGEST_F [25:0] CT4 0 R/O Congestion Factor of Output Port 5 CONGEST_F [25:0] CT5 0 R/O Congestion Factor of Output Port 6 CONGEST_F [25:0] CT6 0 R/O Congestion Factor of Output Port 7 CONGEST_F [25:0] CT7 0 R/O Congestion Factor of Output Port 8 CONGEST_F [25:0] CT8 0 R/O Congestion Factor of Output Port 9 CONGEST_F [25:0] CT9 0 R/O Congestion Factor of Output Port 10 CONGEST_F [25:0] CT10 0 R/O Congestion Factor of Output Port 11 CONGEST_F [25:0] CT11 0 R/O Congestion Factor of Output Port 12 CONGEST_F [25:0] CT12 0 R/O Congestion Factor of Output Port 13 CONGEST_F [25:0] CT13 0 R/O Congestion Factor of Output Port 14 CONGEST_F [25:0] CT14 0 R/O -47- VIA Technologies, Inc. 4C4FH 5053H Preliminary VT6516 Datarsheet Congestion Factor of Output Port 15 CONGEST_F [25:0] CT15 0 R/O Congestion Factor of Output Port 16 (CPU port) CONGEST_F [25:0] CT16 0 R/O Register Name Defau R/ lt W Value There are 11 bits are used for reading FREEMCNT. Only 15 bits are used as CPU port’s congestion factor. The read sequence of CONGEST_FCT16[14:0] is as follows: 1. Read 0C50H to get the lowest byte. CONGEST16[7:0] = HD[7:0] 2. Read 0C51H to get the other 7 bits. CONGEST16[14:8] = HD[6:0] 4.4 Registers of Buffer Control Module * Base Address: 1000H Addres Function s (offset ) 00-02H Bank 0 Free Pointer FREE0_PT [18:0 ] R/O [18:0 ] R/O [18:0 ] R/ W This register is initialized according to SDRAMTYPE while the CFP is written. For 16/64Mbit SDRAM, its value is always 128 because the bank 0 free list follows the private buffer pool of buffer entries 0~127. The free buffers with starting address at the SDRAM even bank should be linked into this free list to improve the SDRAM bandwidth utilization. However, if the free buffers are misplaced, they will returned to the adequate free lists after their first release by the output port control. Internally, the free pointer refers to the ID of the 1st free buffer, rather than its physical address in SRAM (that is equal to ID*3). 03-05H Bank 1 Free Pointer FREE1_PT 0608H This register is initialized according to SDRAMTYPE while the CFP is written. For 16Mbit SDRAM, its value is 130. For 64Mbit SDRAM, its value is 131. The fixed buffer size is 1536 bytes. Because the page size is 2KB for 16Mbit SDRAM, the first public buffer of bank 1 is the 130th entry located at page 1. Because the page size is 4KB for 64Mbit SDRAM, the first public buffer of bank 1 is the 131st entry located at page 1. Free Memory Block Count FREEMC It is an integer value <= sizeof(SDRAM) / 1.5KB. It has to be specified at the switch initialization stage. To fix the bug of reading FREEMCNT in VT3061A, the bit mapping for reading FREEMCNT is modified in VT3061B. The write sequence of FREEMCNT is also to write data to 1006H, 1007H, 1008H. However, the read sequence of FREEMCNT has to read data from (1) Read 1006H to get the lowest byte, and also lock the counter information, .i.e. FREEMCNT[7:0] = HD[7:0] (2) Read 0C52H to get the second byte, i.e. FREEMCNT[15:8] = HD[7:0] (3) Read 0C53H to get the FREEMCNT[17:16] FREEMCNT[17:16] = HD[1:0] (4) Read 0C51H to get the FREEMCNT[18] FREEMCNT[18] = HD[7] -48- Bits NT VIA Technologies, Inc. Preliminary VT6516 Datarsheet 09H CLEAR All Free Pointers 10H Write to this register will reset the two free buffer pointers according to the SDRAMTYPE. It is the only way to program the FREE0_PT and FREE1_PT. This command should be taken after the SDRAMTYPE has been specified. PRIVATE MEMORY ALLOCATION BIT MASK for PORT 0 PORT0_M 11H Each bit corresponds to a private packet buffer. This mask register will be cleared to bit pattern 0000-0000 while system reset. The 8 private buffers for the port K are that of entry IDs (K*8) ~ (K*8+7). But, the CPU IO port has not private buffers. PRIVATE MEMORY ALLOCATION BIT MASK for PORT 1 PORT1_M 12H PRIVATE MEMORY ALLOCATION BIT MASK for PORT 2 PORT2_M CFP [0] W/ O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O [7:0] 0 R/O ASK ASK 13H 14H 15H 16H 17H 18H 19H 1AH 1BH 1CH 1DH 1EH 1FH ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 3 PORT3_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 4 PORT4_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 5 PORT5_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 6 PORT6_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 7 PORT7_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 8 PORT8_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT 9 PORT9_M ASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT PORT10_ 10 MASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT PORT11_ 11 MASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT PORT12_ 12 MASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT PORT13_ 13 MASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT PORT14_ 14 MASK PRIVATE MEMORY ALLOCATION BIT MASK for PORT PORT15_ 15 MASK 4.5 Registers of Forwarding Control Module -49- VIA Technologies, Inc. Preliminary VT6516 Datarsheet * Base Address: 1400H Addres Function s (offset ) 00H 0103H 04H 0507H 0809H bits of MAC address used as index for forwarding table 3’b000: use MAC address bit 10-0 (default) 3’b001: use MAC address bit 11-0 3’b010: use MAC address bit 12-0 3’b011: use MAC address bit 13-0 3’b100: use MAC address bit 14-0 others, use MAC address bit 10-0 Register Name Bits Defau R/ W lt Value HASH_BITS [2:0] 0 R/W [18:0] 0 R/W 0 R/W This register specifies the lookup hash key. For example, if the MAC address bits [14:0] is used as the hash key, there must be 32K 96-byte table entries necessary to be allocated in the upper part of SRAM for destination MAC lookup and source MAC learning. TBL_BASE starting SRAM address register for forwarding table base The forwarding table should be located above the linked buffer entries in the SRAM. The starting address of the forwarding table is specified by TBL_BASE in unit of 32-bit word. The occupied size is determined by HASH_BITS. For example, if there are maximum 5461 buffers entries used for 8MB SDRAM, the minimum forwarding table base is 5461*3 because each linked buffer entry is of size 96 bits (3 words). FWD_MODE [1:0] user configured Forwarding Mode bit 0 – if using the specified forwarding mask without lookup (default: 0, to take lookup without specified mask) bit 1 – if not forwarding packets destined to congested ports (default: 0, not to filter packets by congestion factors) If FWD_MODE[0] = 1, the incoming packets would not be forwarded with table lookup. However, the USER_PM is used as the forwarding mask if the incoming packets are not from the CPU port. For broadcast & lookup-miss packets, the USER_PM is returned by Forwarding Control to IO Control as the lookup result. If FWD_MODE[1] = 1, the incoming packets would not be forwarded to the congested ports whose congestion factors are larger than 511. USER_PM USER configured Port Mask [16:0] 0 R/W The USER_PM is used as the lookup result for the incoming packets from Ethernet ports in the following cases: FWD_MODE = 1 FWD_MODE = 0, VLAN is off, STP_STATE is “forward”, and this is a broadcast packet or a lookup-miss packet CPU_PM port mask for packets sent by CPU [15:0] 0 R/W The CPU_PM is used as the lookup result for the incoming packets from the CPU port without regard to packet’s DMAC. -50- VIA Technologies, Inc. 0AH 0BH Preliminary VT6516 Datarsheet CPU port related forwarding configuration bit 0 – enable forwarding broadcast packets with DMAC=0xffffffffffff to CPU (default = 0 : disable) bit 1 – enable forwarding spanning-tree packets to CPU (default = 0 : disable) bit 2 – enable forwarding unicast packets with DMAC = switch MAC base to CPU (default = 0 : disable) The three register bits are used to enable/disable forwarding the above three types of frames to the CPU port. Note that for a lookup-miss packet, whether it will be forwarded to the CPU port is determined by the bit USER_PM[16], rather than this register. SNIFFER_PID [3:0] Sniffer Port ID This register is valid only if MONITOR_PM is not all 0's. The default value of MONITOR_PM is all 0's to disable the Sniffer function. 0C-0EH Monitor Port Mask 10H 11H 12H CPU_FWD_C [2:0] FG MONITOR_P [16:0] M This register is used to specify which ports to be monitored by Sniffer so that all packets forwarded from/to the monitored ports are also made a copy sent to the Sniffer port. The Sniffer function is enabled only if MONITOR_PM is not all 0's. The default value of MONITOR_PM is all 0's to disable the sniffer function. AGE_MAC high byte [14:8] of the MAC hash address to be aged [6:0] AGE_MAC is in the hash-key format of bits [14:0]. The high byte [14:8] is stored in the AGE_MAC register of offset 10H. The low byte [7:0] is stored in the AGE_MAC register of offset 11H. A write to the register of offset 11H will trigger an aging operation that decreases by one the age count of the corresponding forwarding table entry. A forwarding table entry with age count = 0 is an invalid entry, i.e. this entry is available for the source MAC learning. AGE_MAC is reset to all 0's after aging. AGE_MAC [7:0] low byte [7:0] of the MAC hash address to be aged (see the above) Aging Status AGING_STAT [0] 0, idle or done (default) US 1: aging in progress After an aging command is issued, the status is recorded in this register. The next age command can only be issued as the status changes from 1 (in-progress) to 0 (done). -51- 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/O VIA Technologies, Inc. 20H 21H 22H 23H 24H 25H 26H 27H 28H 29H 2AH 2BH 2CH 2DH 2EH 2FH 80H 82H 84H 86H 88H Preliminary VT6516 Datarsheet PORT0_STP_ [1:0] STATE 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [1:0] 0 R/W [5:0] 0 R/W The VLAN feature is enabled only when all port VID's are configured to a valid (non-zero) VID. port 1 VLAN ID PORT1_VID [5:0] 0 R/W port 2 VLAN ID PORT2_VID [5:0] 0 R/W port 3 VLAN ID PORT3_VID [5:0] 0 R/W port 4 VLAN ID PORT4_VID [5:0] 0 R/W spanning tree state for PORT 0 2’b00 – blocking state (default) 2’b01 – listening state 2’b10 - learning state 2’b11 – forwarding state The forwarding operation in each Ethernet port is controlled by its associated spanning tree state. In blocking or listening state, the incoming packets will not trigger any DMAC lookup operation and SMAC learning operation. In learning state, the incoming packets will not trigger DMAC lookup operation, but the SMAC learning operation will be triggered for CRC-OK packets. Only in forwarding state, an incoming packet will trigger DMAC lookup operation while the first 24 bytes are received, and it will trigger the SMAC learning operation while the whole packet is received with good CRC. For the 802.1d spanning tree algorithm, a blocked port for loop avoidance should enter the blocking state so that any incoming packets are filtered without forward. A normal port that does not cause any loop should be in the forwarding state. PORT1_STP_ spanning tree state for PORT 1 STATE PORT2_STP_ spanning tree state for PORT 2 STATE PORT3_STP_ spanning tree state for PORT 3 STATE PORT4_STP_ spanning tree state for PORT 4 STATE PORT5_STP_ spanning tree state for PORT 5 STATE PORT6_STP_ spanning tree state for PORT 6 STATE PORT7_STP_ spanning tree state for PORT 7 STATE PORT8_STP_ spanning tree state for PORT 8 STATE PORT9_STP_ spanning tree state for PORT 9 STATE PORT10_STP spanning tree state for PORT 10 _STATE PORT11_STP spanning tree state for PORT 11 _STATE PORT12_STP spanning tree state for PORT 12 _STATE PORT13_STP spanning tree state for PORT 13 _STATE PORT14_STP spanning tree state for PORT 14 _STATE PORT15_STP spanning tree state for PORT 15 _STATE PORT0_VID port 0 VLAN ID -52- VIA Technologies, Inc. 8AH 8CH 8EH 90H 92H 94H 96H 98H 9AH 9CH 9EH A0A1H Preliminary VT6516 Datarsheet port 5 VLAN ID PORT5_VID [5:0] 0 R/W port 6 VLAN ID PORT6_VID [5:0] 0 R/W port 7 VLAN ID PORT7_VID [5:0] 0 R/W port 8 VLAN ID PORT8_VID [5:0] 0 R/W port 9 VLAN ID PORT9_VID [5:0] 0 R/W port 10 VLAN ID PORT10_VID [5:0] 0 R/W port 11 VLAN ID PORT11_VID [5:0] 0 R/W port 12 VLAN ID PORT12_VID [5:0] 0 R/W port 13 VLAN ID PORT13_VID [5:0] 0 R/W port 14 VLAN ID PORT14_VID [5:0] 0 R/W port 15 VLAN ID PORT15_VID [5:0] 0 R/W Server Port Mask SRV_PM 0 R/W 0 R/W [15:0] The SRV_PM is used only when VLAN is enabled. As the VLAN feature is enabled (i.e. all port VID’s are valid (non-zero)), the behavior is described for the following scenarios: A broadcast or lookup-miss packet will be forwarded to the ports of same VLAN ID. If CPU_FWD_CFG[0]=1, the broadcast packet will also be forwarded to CPU port. A unicast packet destined to different VLAN will be forwarded to CPU port if VLAN_FWD_CFG[0]=1. A unicast packet destined to another port in the same VLAN will be forwarded in a unicast manner. The SRV_PM should be set for the Server ports that respond to carry cross VLAN packets. It is recommended that all packets from the Server stations have not any embedded VID. Only the cross VLAN packets through the Server ports (the corresponding SRV_PM bits are on) within different VLAN domain must carry VID. A2H In the source-MAC learning procedure, for packets with tagged VID, the corresponding forwarding table entry will have NOT the tagging bit on to make the outgoing packets destined to it with VID tagged. All valid forwarding table entries should have non-zero VID. VLAN_FWD_ [0] VLAN related forwarding configuration CFG This register bit is used to enable those packets destined to a different VLAN also to be forwarded to the CPU port. This scenario happens when the following conditions hold simultaneously: The destination MAC address is found in forwarding table (lookup hit), and this entry is not static. Note that if the entry is static, its priority is highest and the destination ports are fully determined by the port mask field in the entry so that forwarding to CPU is not necessary. The source VID differs from the destination VID. 4.6 Registers of PHY Control Module * Base Address: 1800H -53- VIA Technologies, Inc. Preliminary VT6516 Datarsheet Addres Function s (offset ) 00H PHY ID 01H 0203H 04H 05H 10H This is used to specify which PHY device is the objective of the following MII commands. There are maximum 16 RMII PHY devices. PHY register address Bits PHYID [3:0] 0 W/ O PHY_REG [4:0] 0 _ADDR W/ O In each PHY device, there are maximum 32 MII management registers accessible by the CPU. The PHY_REG_ADDR register is used to specify which one is the objective of the following access command. PHY data register PHYDAT Each PHY management register is 16 bits. Every data access to a PHY management register is in unit of 16 bits, stored in this register. PHY command register 1: read 0: write Defau R/ W lt Value Register Name A [15:0 ] PHYCMD [0] Write 0 to this register will cause a write operation to the PHY management register (specified by the PHY_REG_ADDR) of the PHY device (specified by the PHYID). Write 1 to this register will cause a read operation. A read or write operation takes about 0.4 ms so that the CPU has to read the PHYSTS register periodically to check if the issued command is complete. PHY status register PHYSTS 2’b00: idle 2’b01: busy 2’b10: complete This register indicates the status of the PHY control module. Initially, the PHY control module is in the idle status. While a read or write command is issued by writing 1/0 to the PHYCMD register, PHYSTS becomes “busy” immediately, and goes into the “complete” status as this operation finishes. Then, a following “read status” command will cause it back to the “idle” status, or a following read/write command will cause it into the “busy” status. PORT0 PHY Device Address PORT0_P 11H 12H R/O [4:0] 0 R/ W [4:0] 0 R/ W HY_ADD R PORT2_P [4:0] 0 HY_ADD R PORT2 PHY Device Address -54- W/ O [1:0] 0 HY_ADD The pair of 5-bit PHY device address and 5-bit register address forms a unique access address to a PHY device’s register. Each PHY R device has a unique device address that is identified by the PHYID. In the system initialization, the CPU should write PHY device addresses, corresponding to every PHY devices, to registers PORT[0..15]_PHY_ADDR, that may be recorded in the EEPROM or code ROM. PORT1 PHY Device Address PORT1_P R/ W R/ W VIA Technologies, Inc. 13H PORT3 PHY Device Address 14H PORT4 PHY Device Address 15H PORT5 PHY Device Address 16H PORT6 PHY Device Address 17H PORT7 PHY Device Address 18H PORT8 PHY Device Address 19H PORT9 PHY Device Address 1AH PORT10 PHY Device Address 1BH PORT11 PHY Device Address 1CH PORT12 PHY Device Address 1DH PORT13 PHY Device Address 1EH PORT14 PHY Device Address 1FH PORT15 PHY Device Address Preliminary VT6516 Datarsheet PORT3_P [4:0] HY_ADD R PORT4_P [4:0] HY_ADD R PORT5_P [4:0] HY_ADD R PORT6_P [4:0] HY_ADD R PORT7_P [4:0] HY_ADD R PORT8_P [4:0] HY_ADD R PORT9_P [4:0] HY_ADD R PORT10_P [4:0] HY_ADD R PORT11_P [4:0] HY_ADD R PORT12_P [4:0] HY_ADD R PORT13_P [4:0] HY_ADD R PORT14_P [4:0] HY_ADD R PORT15_P [4:0] HY_ADD R 4.7 Registers of EEPROM Control Module * Base Address: 1C00H -55- 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W 0 R/ W VIA Technologies, Inc. Preliminary VT6516 Datarsheet Register Name 00H EEWDAD [7:0] DR W/ O EEDATA [7:0] R/ W EEDEVA [7:0] DDR W/ O 01H 02H 03H EEPROM word address For a 256-byte EEPROM device, an 8-bit data object is identified with this register. For a 512-byte EEPROM device, an 8-bit data object is identified with this register plus EEDEVADDR[1]. For a 1024-byte EEPROM device, an 8-bit data object is identified with this register plus EEDEVADDR[2:1], vice versa. EEPROM data Every data access to EEPROM is in unit of 8 bits, stored in this register. EEPROM device address bit 7-4 : device type id (EEPROM 1010) bit 3-1 : device id bit 0 : r/w command , value 0: write; value 1: read The triple of 4-bit PHY device type ID, 3-bit device ID, and 7-bit word address forms a unique access address to an 8-bit EEPROM data object. This register’s bit 0 is used to specify the command type: 0 for write and 1 for read. A read or write operation takes about 0.4 ms so that the CPU has to read the EEYSTS register periodically to check if the issued command is “complete without error” or “ack error”. EEPROM status register EESTS 3’b000: idle 3’b001: busy 3’b010: complete without error 3’b100: ack error Bits Defau R/ W lt Value Addres Function s (offset ) [2:0] R/O This register indicates the status of the EEPROM control module. Initially, the EEPROM control module is in the idle status. While a read or write command is issued by writing 1/0 to EEDEVADDR[0], EESTS becomes “busy” immediately, and goes into the “complete” status as this operation finishes or into the “ack error” as an acknowledge error happens. Then, a following “read status” command will cause it back to the “idle” status, or a following read/write command will cause it into the “busy” status. 4.8 Registers of CPU Interface Module * Base Address: 2000H Addres Function s (offset ) Register Name -56- Bits Defau R/ lt W Value VIA Technologies, Inc. 00H 01H03H 04H07H 08H 09H 10H13H 14H1BH 1CH 1DH Preliminary VT6516 Datarsheet interrupt status register bit 0: interrupt indication for read/write PHY command complete bit 1: interrupt indication for read/write EEPROM command complete or error bit 2: interrupt indication for CPU IO port receiving an incoming packet bit 3: interrupt indication for CPU IO port finishing the transmission of an outgoing packet To clear an interrupt, write 1 to the corresponding IRQSTS bit. However, write 0 will not cause any change on that interrupt. SRAM address register The data object addressed is in unit of 32 bits. The maximum allowable SRAM size is 1MB. For SRAM direct access, the CPU has to (1) set SRAMADDR & SRAMDATA, (2) issue read/write command by SRAMCMD, and (3) check command status by SRAMSTS. SRAM data register SRAM command register 2’b00 : nop 2’b01 : read 2’b10 : write IRQSTS SDRAM command register 2’b00 : nop 2’b01 : read 2’b10 : write R/ W SRAMDA [31:0 TA ] SRAMCM [1:0] D R/ W R/ W [1:0] 0 R/O [23:0 ] R/ W SDRAMD [63:0 ATA ] SDRAMC [1:0] MD R/ W R/ W DDR To make a direct read to SDRAM, write SDRAMCMD by 2’b01. To make a direct write to SDRAM, write SDRAMCMD by 2’b10. Read/Write will cause the SDRAMSTS = ”busy” immediately. As it is done, SDRAMSTS = “done”. A following read to SDRAMSTS will clear it to “idle”. SDRAM status register SDRAMS 2’b01 : read/write command done TS 2’b10 : busy (read/write in progress) 2’b00 : idle -57- R/ W SRAMAD [18:0 DR ] To make a direct read to SRAM, write SRAMCMD by 2’b01. To make a direct write to SRAM, write SRAMCMD by 2’b10. Read/Write will cause the SRAMSTS = ”busy” immediately. As it is done, SRAMSTS = “done”. A following read to SRAMSTS will clear it to “idle”. SRAM status register SRAMSTS 2’b01 : read/write command done 2’b10 : busy (read/write in progress) 2’b00 : idle SDRAM address register SDRAMA The data object addressed is in unit of 64 bits. The maximum allowable SDRAM size is 128MB. For SDRAM direct access, the CPU has to (1) set SDRAMADDR & SDRAMDATA, (2) issue read/write command by SDRAMCMD, and (3) check command status by SDRAMSTS. SDRAM data register [3:0] 0 [1:0] 0 R/O VIA Technologies, Inc. 20H 21H Preliminary VT6516 Datarsheet Write packet command 3’b100 : end of frame with the remaining data size = 2 bytes 3’b101 : end of frame with the remaining data size = 1 byte (that is the low byte as using 16-bit write) 3’b000 : idle 3’b001 : start of frame for the next write 3’b010 : middle of frame for the next write 3’b011 : abort the unfinished packet write CPU should write this command register before repeatedly writing 8/16 bit packet data VIA the ISA/IDE bus (with a2, a1, a0 = 000). Packet Abort 30H Write this register to drop an incoming packet ready to be read by CPU. bits [47:40] of switch base MAC address [47:0] 31H specified by the register SWITCH_MAC_BASE[47:4]. bits [39:32] of switch base MAC address [47:0] 32H bits [31:24] of switch base MAC address [47:0] 33H bits [23:16] of switch base MAC address [47:0] 34H bits [15:8] of switch base MAC address [47:0] 35H bits [7:4] of switch base MAC address [47:0] 40H WR_PKT_ [2:0] CMD W/ O ERR_ABO [0] RT W/ O SWITCH_ [7:0] 0 MAC_BA Each port in the switch IC has a unique MAC address with the port SE ID as address bits [3:0] and the same MAC base bits [47:4], interrupt mask register bit 0: PHY interrupt mask bit 1: EEPROM interrupt mask bit 2: packet received interrupt mask bit 3: packet sent interrupt mask The four interrupts can be masked individually. The value 0 indicates “Masked”, and value 1 (default) indicates “Unmasked”. -58- SWITCH_ MAC_BA SE SWITCH_ MAC_BA SE SWITCH_ MAC_BA SE SWITCH_ MAC_BA SE SWITCH_ MAC_BA SE IRQSTS_ MASK R/ W [7:0] 0 R/ W [7:0] 0 R/ W [7:0] 0 R/ W [7:0] 0 R/ W [7:4] 0 R/ W [3:0] 4’b11 R/ 11 W VIA Technologies, Inc. 50H 51H Preliminary VT6516 Datarsheet CPU Soft Reset for the whole switch chip reset CPU_SOF [0] T_RESET For Read 0: soft reset in progress 1: soft reset done For Write, any value will trigger the whole chip reset 1 The soft reset is similar to power-on reset for the switch chip, except that it is asserted by writing any value to this register. The CPU soft reset has to take 16 RCLK50 cycles, i.e. 320ns, to make the switch chip being reset and ready to CPU. For 8MHz 8051 CPU that an instruction cycle is 1.5 s, it needs to wait for 4 CPU instruction cycles to continue after the soft reset. Or, CPU can read this register CPU_SOFT_RESET until value 1 is returned. Note that reading this register will not cause the address register to increment automatically. So, consecutively reading from 2050H to 2051H should not be applied. That is, any reading to 2051H has to specify the address explicitly. REVISIO [7:0] 0 Revision ID Register N_ID This register is used to record the revision code. Its value is 0 for the first sample ICs. R/ W R/O 4.9 Registers of MAC/IO Control Module * Base Address: 2400H Addres Function s (offset ) 00H configurable preamble bytes Register Name Bits Defau R/ lt W Value PREAM_C [2:0] 7 FG This register specifies the preamble length (0..7 bytes) for outgoing packets. -59- R/ W VIA Technologies, Inc. 01H Preliminary VT6516 Datarsheet configurable frame gap in di bits for 1st interval st This register specifies the 1 interval of the inter-frame gap (in unit of di bit) for outgoing packets, where the 2nd interval of the interframe gap is fixed as 16 di bits (i.e. 32 bits). The minimum interframe gate (IFG) defined in 802.3 is 96 bits (48 di bits). But for fast transmission, many manufactures use smaller IFG (minimum is 32 bits) in practical. The allowable IFG_CFG value is 0..63 di bits. Note that, TMAC only performs the carrier sense function during the 1st IFG interval, rather than the whole IFG. So, for the half duplex link, if an incoming packet arrives at the 2nd IFG interval, a collision with the ready-to-send outgoing packet will happen. -60- IFG_CFG [5:0] 32 R/ W VIA Technologies, Inc. 02H Preliminary VT6516 Datarsheet BOFFCFG [4:0] 5’b10 R/ Backoff configuration 000 W bit 0: CAP mode , mild solution for Capture effect bit 1: MBA mode , aggressive solution for Capture effect bit 2: EEFAST mode , drop the 2nd collided packet for testing purpose, accelerate the drop event bit 3: CRANDOM mode , use another random algorithm bit 4: OFSET , parameter for backoff timer For that CAP mode is enabled, the TMAC module will select the backoff time as b’10 or b’11 for the 2nd collision, i.e. the backoff time for the 2nd collision is 2 or 3 slot times, where a slot time is 512 bits time duration. For that MBA mode is enabled, the TMAC will select backoff time for 10th collision just as that for 5th collision backoff time for 11th collision just as that for 4th collision backoff time for 12th collision just as that for 3rd collision backoff time for 13th collision just as that for 2nd collision backoff time for 14th collision just as that for 1st collision backoff time for 15th collision as 0. For that EEFAST mode is enabled, the Output Control will drop the packet immediately as the second collision happens. For that CRANDOM mode is enabled, the TMAC will select the backoff time by using the alternative random algorithm that calculates the backoff time as that for 10th collision. For OFSET=1, the TMAC will follow the 802.3 standard backoff algorithm. For OFSET=0, the TMAC will select the backoff time for the 1st and 2nd collision as that of the 3rd collision, i.e. the possible the backoff time for the 1st and 2nd collision is ranged from 0 to 7 in unit of slot time. -61- VIA Technologies, Inc. Preliminary VT6516 Datarsheet MAC media type configuration bit 0: SPD_10M , value 0: 100Mbps, value 1: 10Mbps bit 1: HALF_DPX , 1: half duplex, 0: full duplex bit 2: RCV_FC_DIS , 1: disable receive flow control frame 0: enable receive flow control frame bit 3: XMT_FC_DIS , 1: disable send flow control frame 0: enable send flow control frame MACCFG [3:0] 0 R/ W IO_CFG [1:0] 0 IO port enable bit 0: input port enable , 1: input enable, 0: input disable bit 1: output port enable , 1: output enable, 0: output disable 10H- received good packet count RCV_GO [31:0 0 13H OD_PKT ] Accounting Event: receiving packets with CRC ok and packet size between 64 and 1522 (valid maximum packet size in spite of VLAN disabled or enabled). Note that the RMON/MIB counter will be locked during 4-byte continuous register-read, and the increment (if any) is deferred until read complete. 14H- received bad packet count RCV_BAD [31:0 0 17H _PKT ] Formal Definition: "The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol." R/ W 03H 04H Accounting Events: (1) receiving valid-length packets with CRC error, (2) receiving runt packets, (3) receiving over-length packets 18H- drop packet counter DROP_PK [31:0 0 1BH T ] Formal Definition: "The total number of events in which packets were dropped by the probe due to lack of resources. Note that this number is not necessarily the number of packets dropped; it is just the number of times this condition has been detected." Accounting Event: input FIFO overrun due to SDRAM-bandwidth blocking or buffer starvation. 1CH- sent good packet count XMT_GO [31:0 0 1FH OD_PKT ] Accounting Event: store-and-forward transmission success without collision -62- R/O R/O R/O R/O VIA Technologies, Inc. Preliminary VT6516 Datarsheet 20H- sent bad packet counter 23H Formal Definition: "The number of outbound packets that could not be transmitted because of errors." XMT_BA [31:0 0 D_PKT ] R/O Accounting Event: re-transmission due to collision or output FIFO underrun. as same as Port 0 2800H MAC & I/O Control Module of Port 1 as same as Port 0 2C00 MAC & I/O Control Module of Port 2 H as same as Port 0 3000H MAC & I/O Control Module of Port 3 as same as Port 0 3400H MAC & I/O Control Module of Port 4 as same as Port 0 3800H MAC & I/O Control Module of Port 5 as same as Port 0 3C00 MAC & I/O Control Module of Port 6 H as same as Port 0 4000H MAC & I/O Control Module of Port 7 as same as Port 0 4400H MAC & I/O Control Module of Port 8 as same as Port 0 4800H MAC & I/O Control Module of Port 9 as same as Port 0 4C00 MAC & I/O Control Module of Port 10 H as same as Port 0 5000H MAC & I/O Control Module of Port 11 as same as Port 0 5400H MAC & I/O Control Module of Port 12 as same as Port 0 5800H MAC & I/O Control Module of Port 13 as same as Port 0 5C00 MAC & I/O Control Module of Port 14 H as same as Port 0 6000H MAC & I/O Control Module of Port 15 4.10 Registers of CPU IO Control Module * Base Address: 6400H Addres Function s (offset ) 00H CPU packet read byte count register bits [7:0] 01H CPU can check the incoming packet length VIA the 11-bit register PKT_BYTE_CNT [10:0] before starting to read it. CPU packet read byte count register bits [10:8] -63- Register Name Bits Defau R/ lt W Value PKT_BYT E_CNT [7:0] 0 R/O PKT_BYT [10:8 0 E_CNT ] R/O VIA Technologies, Inc. Preliminary VT6516 Datarsheet 02H CPU packet read status register 2’b00: idle or packet read in progress 2’b01: packet received successfully 2’b10: packet received with error (CPU needs to read the same packet again) RD_PKT_ [1:0] 0 STATUS R/O 03H Packet source port ID PKT_SRC [3:0] 0 _PORT R/O CPUIO_C [1:0] 0 FG R/ W WR_PKT_ [2:0] 0 STATUS R/O CPU can check the incoming packet’s source port ID VIA the 3-bit register PKT_SRC_PORT before starting to read it. It is useful to the spanning tree algorithm. 04H 10H CPU IO port configuration register bit 0 : input port enable , 1: input enable, 0: input disable bit 1 : output port enable , 1: output enable, 0: output disable CPU packet write status register bits [1:0] : packet write status 2’b00: idle or packet write in progress 2’b01: CPU sent packet successfully 2’b10: CPU sent packet unsuccessfully (CPU needs to re-write the packet again) bit 2: CPU Input Control is ready for CPU to write packets (It can be ready only after setting CPUIO_CFG[0] = 1.) 0: not ready (default) 1: ready -64- VIA Technologies, Inc. Preliminary VT6516 Datarsheet SECTION III ELECTRICAL SPECIFICATIONS ABSOLUTE MAXIMUM RATINGS Min Max Unit Ambient operating temperature Parameter 0 70 oC Case temperature 0 100 oC Storage temperature -55 125 oC Input voltage -0.5 5.5 Volts Output voltage (VCC = 3.1 - 3.6V) -0.5 VCC + 0.5 Volts Note: Stress above the conditions listed may cause permanent damage to the device. Functional operation of this device should be restricted to the conditions described under operating conditions. DC CHARACTERISTICS TA-0-70oC, VCC=3.3V+/-5%, GND=0V Symbol Parameter Min Max Unit Condition VIL Input low voltage -0.50 0.8 V VIH Input high voltage 2.0 VCC+0.5 V VOL Output low voltage - 0.45 V IOL=4.0mA VOH Output high voltage 2.4 - V IOH=-1.0mA IIL Input leakage current - +/-10 uA 0<VIN<VCC IOZ Tristate leakage current - +/-20 uA 0.45<VOUT<VCC ICC Power supply current - TBD mA AC CHARACTERISTICS AC timing specifications provided are based on external zero-pf capacitance load. Min/Max cases are based on the following table: Parameter Min 3.3V power (Vcc) Temperature -65- Max Unit 3.135 3.465 V 0 95 oC VIA Technologies, Inc. Preliminary VT6516 Datarsheet - CPU interface IO Timing Characteristics SYMBOL DESCRIPTION IOR/IOW falling to tIORH, tIOWH tIORL, tIOWL tVAL tIOWS tIOWH tIORS tIORH IOR/IOW rising IOR/IOW rising to IOR/IOW falling HD valid to IOR/IOW falling IOW data setup(write data valid to IOW rising) IOW data hold(IOW rising to write data invalid) IOR data setup(read data valid to IOR rising) IOR data hold(IOW rising to read data invalid) MIN MAX UNIT 70 - ns 25 - ns 25 - ns 20 - ns 10 - ns 20 - ns 5 - ns IOR hhhhhhhhfllllllllllrhhhhhfll ~ tIORH !~ tIORL ! ~ tVAL ! ~tIORS!~tIORH! HD zzzzznddddddddddddddddozzzzz CPU read timing diagram IOWhhhhhhhhfllllllllllrhhhhhfll ~ tIOWH !~ tIOWL ! ~ tVAL ! ~tIOWS!~tIOWH! HD zzzzznddddddddddddddddozzzzz CPU write timing diagram -66- VIA Technologies, Inc. Preliminary VT6516 Datarsheet - SRAM interface Timing Characteristics SYMBOL DESCRIPTION SETUP tSA tSDS , TSDH tSD tSADS tSCS tSWE HOLD SA output delay SD input 2.5 MIN MAX UNIT 2 7 Ns 1.5 Ns SD output delay 2 7 Ns SADS output delay 2 7 Ns SCS0 output delay 2 7 Ns SWE output delay 2 7 ns SCLK llrhhhhfllllrhhhhfllllrhhhflllrhhh + tSADS~ SADS zzzzzndddddddddozzzzzzzzznddddddd + tSCS ~ SCS zzzzzndddddddddozzzzzzzzznddddddd + tSWE~ SWE zzzzzndddddddddozzzzzzzzznddddddd +tSA~ SA zzzzndddddddddozzzzzzzzznddddddd v input cycle v turn around cycle v output cycle v +tSDS~\\ +tSD~ SD nddddozzzzzzzzzzzzzzzzzznddddddo + tSDH ~ -67- VIA Technologies, Inc. Preliminary VT6516 Datarsheet - DRAM interface Timing Characteristics SYMBOL DESCRIPTION SETUP tMA tMDS , tMDH tMD tBA tRAS tCAS tDWE tDCS HOLD MIN MAX 2 6.5 MD output delay 2 6.5 BA0, BA1 output delay 2 6.5 RAS0, RAS1 output delay CAS0, CAS1 output delay DWE0, DWE1 output delay DCS3~0 output delay 2 6.5 2 6.5 2 6.5 2 6 MA output delay MD input 1.5 2 DCLK llrhhhhfllllrhhhhfllllrhhhflllrhh + tBA ~ BA zzzzzndddddddddozzzzzzzzznddddddd + tRAS ~ RAS zzzzzndddddddddozzzzzzzzznddddddd + tCAS~ CAS zzzzzndddddddddozzzzzzzzznddddddd + tDWE~ DWE zzzzzndddddddddozzzzzzzzznddddddd + tDCS~ DCS zzzzzndddddddddozzzzzzzzznddddddd +tMA~ MA zzzzndddddddddozzzzzzzzznddddddd v input cycle v turn around cycle v output cycle v +tMDS~\\ +tMD~ MD nddddozzzzzzzzzzzzzzzzzznddddddo + tNDH ~ -68- VIA Technologies, Inc. Preliminary VT6516 Datarsheet - RMII Interface Timing Characteristics SYMBOL DESCRIPTION min type max unit 20 ns tRC tRXDS RCLK50 cycle time RXD CRS_DV setup time 4 - - ns tRXDH RXD CRS_DV hold time 2 - - ns tTXD TXD TX_EN output delay 3 - 12 ns condition to RCLK50 rising edge to RCLK50 rising edge to RCLK50 rising edge lllrhhhhfllllrhhhhfllllrhhhhflll +tRXDS~\\ CRS_DVndddddozzzndddddozzznddddddozzzz +tRXDH~ +tRXDS~\\ RXD ndddddozzzndddddozzznddddddozzzz +tRXDH~ +tTXD~ TX_EN zzzzzndddddddddozzzzzzzzzznddddd +tTXD~ TXD zzzzzndddddddddozzzzzzzzzznddddd RCLK -69- VIA Technologies, Inc. MII Interface Timing Characteristics SYMBOL DESCRIPTION Preliminary VT6516 Datarsheet min type max unit tRC tRXDS RCLK cycle time - 40 - ns RXD, RXDV setup time 5 - - ns tRXDH RXD, RXDV hold time 5 - - ns tTC tTXD TCLK cycle time - 40 - ns TXD, TX_EN output delay 4 - 20 ns condition to RCLK50 rising edge to RCLK50 rising edge to RCLK50 rising edge lllrhhhhfllllrhhhhfllllrhhhhflll +tRXDS~\\ CRS_DVndddddozzzndddddozzznddddddozzzz +tRXDH~ +tRXDS~\\ RXD ndddddozzzndddddozzznddddddozzzz +tRXDH~ RCLK lllrhhhhfllllrhhhhfllllrhhhhflll +tTXD~ TX_EN zzzzzndddddddddozzzzzzzzzznddddd +tTXD~ TXD zzzzzndddddddddozzzzzzzzzznddddd TCLK - Management Interface (MI) Timing Characteristics Parameter min typ max unit MDC cycle time - 400 - ns MDC high time 180 200 220 ns MDC low time 200 220 ns - - ns - - ns - 300 ns 180 MDIO setup time 30 (source by PHY) MDIO hold time (source by PHY) MDIO output 200 0 -70- condition to MDC rising edge to MDC rising edge to MDC rising VIA Technologies, Inc. Preliminary VT6516 Datarsheet delay (source by vt3061) edge -71- VIA Technologies, Inc. Preliminary VT6516 Datarsheet - EEPROM Interface Timing Characteristics Parameter min typ max unit condition EEC clock frequency Clock high time - 0 78.12 - kHz 6.4 - µs Clock low time 6.4 - µs 6.4 - - - - µs 6.4 - - 6.4 - - µs 0 - - 0 - - 2.6 - 3.0 µs - 11.4 - ms Start Condition setup time Start Condition hold time Stop Condition setup time Stop Condition hold time Read Data In setup time Read Data In hold time EEIO Data out delay Write Cycle time - 6.4 -72- µs µs to EEC rising edge to EEC falling edge to EEC falling edge VIA Technologies, Inc. Preliminary VT6516 Datarsheet PACKAGE MECHANICAL SPECIFICATIONS -73-