TC9205M Preliminary Data Sheet 5-Port 10/100/1000 Smart Ethernet Switch This feature allows improved multimedia applications. Features Stand Alone Switch On A Chip 5 Ethernet 10/100/1000 ports I Ethernet 10/100 port MII/GMII interface for 5 ports I extra MII interface for 6th port Four Classes of Service (CoS) selectable for each port and/or checked via IP Header and 802.1Q VLAN Tag Five port-based VLANs Maximum throughput, non head-of-line blocking architecture Embedded SSRAM packet buffer/address table 8K MAC address table Each port is configurable to 10 full/half duplex, 100 full/half duplex and 1000 full duplex mode Flow-control ability is able to set for both full and half duplex mode Broadcast throttling Port Mirroring Serial EEPROM Interface, EEPROM is optional MDIO master for PHY configuration / polling 0.18 micron technology 2V and 3.3V dual voltage power supply Packaged in PBGA 292 25MHz crystal input only for The chip embeds IEEE 802.3 MAC functions for each port and these functions support full and half duplex modes for both 10 and 100 Mbits/s data rates and full duplex for 1000 Mbit/s. Each port includes dedicated receive and transmit FIFOs with necessary logic to implement flow control for both full and half duplex modes. TC9205M uses IEEE 802.3x frame based flow control for full duplex and backpressure for half duplex. TC9205M handles an 8K address-lookup table with searching, self-learning, and automatic aging, at very high speed and excellent address space coverage. Forwarding rules are implemented according to IEEE 802.1D specifications. Filtering capabilities for bad packets and packets with Reserved Group Address DA are also provided. The pin configuration interface comprises 40 configurations, which are shared with GMII output pins by latching the configuration data during reset. An external EEPROM device can also be used to configure the TC9205M at power-up. With reference to pin configuration interface, the EEPROM extends the chip’s configuration capability with new features and enables a jumper-less configuration mode using a parallel interface for reprogramming. A virtual internal EEPROM mode is also provided to enable the use of the programming interface in the absence of external EEPROM. TC9205M can make effective use by most of its features using only the pin configuration interface. General Description TC9205M is a fully integrated 5 Port 10/100/1000 smart Ethernet switch controller designed for low cost and high performance solutions. The chip embeds necessary SSRAM for packet buffering and MAC address table. It provides MII / GMII / interface for all ports. TC9205M includes a physical layer configuration / polling entity, which it is use to configure the phy functions and to monitor the physical layer transceiver’s speed, duplex mode, link status and full duplex flow control ability for each port. The chip provides four modes for phy configurations, which these modes include auto-negotiation disable procedure for 10/100 speed modes. The phy configuration information is stored in EEPROM setting. A store-and-forward switching method using a non-blocking architecture is implemented within TC9205M to improve the availability and bandwidth. The chip embeds packet buffer, which it supports normal and priority queues for each transmission port. TC9205M provides evolved CoS with four levels of priority. The priority can be checked via layer 2 (802.1Q VLAN Tagging) and/or layer 3 (IP Header TOS bits) packets. Port based priority is also provided to ensure transmission with precedence for all packets incoming from selected port(s). Confidential. Copyright © 2003, IC Plus Corp. support The chip requires a 25 MHz system clock, dual 2V and 3.3V power supply and is packaged in PBGA 292. 1/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Block Diagram EEprom Interface MDIO interface Configuration Register Rx FIFO 1MII+ 5 GMII/MII RX/TX MAC's Control From RX MAC Queue Management Tx FIFO External PHY's To TX MAC Address LoockUp & Resolution Unit Internal SSRAM Buffer TC9205M Block Diagram Confidential. Copyright © 2003, IC Plus Corp. Memory Interface & Arbiter 2/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Table Of Contents Features ..............................................................................................................................................................1 General Description ............................................................................................................................................1 Block Diagram.....................................................................................................................................................2 Table Of Contents ...............................................................................................................................................3 Revision History ..................................................................................................................................................4 Pins Placement...................................................................................................................................................5 1 Pin Listing (PBGA 292) ...............................................................................................................................6 2 Ethernet Media Access Controller ............................................................................................................15 2.1 Receive MAC ..................................................................................................................... 15 2.2 Transmit MAC .................................................................................................................... 16 3 MAC Address Handling.............................................................................................................................17 4 Queue Management.................................................................................................................................17 5 Classes of Service ....................................................................................................................................18 6 Flow Control ..............................................................................................................................................20 7 Broadcast Throttling ..................................................................................................................................22 8 Port Mirroring.............................................................................................................................................22 9 Physical Layer Configuration / Polling......................................................................................................23 10 EEPROM Interface ...................................................................................................................................24 10.1 Reprogramming the EEPROM for reconfiguration ............................................................ 24 10.2 EEPROM Address Map ..................................................................................................... 25 10.3 Register Description........................................................................................................... 27 10.3.1 Validation Register ................................................................................................ 27 10.3.2 Port [X] Configuration Register ............................................................................. 29 10.3.3 Port [X] IFG Configuration Register ................................................................... 31 10.3.4 Flow Control Register ........................................................................................... 32 10.3.5 Backpressure Time Value Register....................................................................... 34 10.3.6 Flow Control Port Base Address Register ............................................................ 34 10.3.7 Reserved............................................................................................................... 34 10.3.8 Broadcast Configuration Register......................................................................... 35 10.3.9 IP Priority Mapping Register ................................................................................. 36 10.3.10 VLAN Priority Mapping Register ........................................................................... 37 10.3.11 CoS Bandwidth Register....................................................................................... 38 Reserved Register ................................................................................................ 38 10.3.12 10.3.13 CoS Configuration Register .................................................................................. 39 Port Mirroring Register.......................................................................................... 40 10.3.14 10.3.15 General Configuration Register ............................................................................ 41 Port VLAN Enable Register .................................................................................. 42 10.3.16 10.3.17 VLAN [Y] Register................................................................................................. 43 10.4 Writing / Reading PHY management registers via EEPROM interface............................. 44 10.4.1 Data Write Register............................................................................................... 44 10.4.2 Physical Layer Device Address Register .............................................................. 44 10.4.3 Physical Layer’s Register Address Register......................................................... 45 10.4.4 IO Status Control Register .................................................................................... 45 10.4.5 Data Read Register .............................................................................................. 46 11 Timing Requirements................................................................................................................................47 11.1 GMII / MII Receive Timing Requirements .......................................................................... 47 11.2 GMII / MII Transmit Timing................................................................................................. 47 11.3 PHY Management (MDIO) Timing ..................................................................................... 48 11.4 EEPROM Timing................................................................................................................ 49 12 Electrical Specifications ............................................................................................................................50 12.1 ABSOLUTE MAXIMUM RATINGS..................................................................................... 50 Confidential. Copyright © 2003, IC Plus Corp. 3/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 12.2 RECOMMENDED OPERATING CONDITIONS ................................................................ 50 12.3 DC CHARACTERISTICS................................................................................................... 50 13 Package Detail ..........................................................................................................................................51 Revision History Revision # TC9205-DS-R02 TC9205-DS-R03 Change Description 1. Modify “Pin Latched” field in Class of Service section. 2. Correct the register map of “Broadcast Configuration Register” 3. Correct the junction temperature limit. Confidential. Copyright © 2003, IC Plus Corp. 4/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pins Placement 1 2 3 4 A RXD00 CRS0 COL0 B RXD03 RXD02 RXD01 C RXD06 RXD05 RXD04 TXER7 D RXDV0 RXD07 RXCLK0 RXER0 E TXD00 TXCLK0 GTXCLK0 F TXD03 TXD02 G TXD06 H 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 A VSS3.3 VSS3.3 B VSS3.3 VSS3.3 TESTINT SDA C VSS2.0 SCL MDIO MDC D VSS3.3 TXER5 TXEN5 FullBp CarrBp E TXD01 VSS3.3 VSS2.0 DisBkPr TXD53 F TXD05 TXD04 VDD3.3 VDD3.3 TXD50 TXD51 TXD52 G TXER0 TXEN0 TXD07 VDD2.0 GND GND GND GND GND GND VDD2.0 TXCLK5 RXER5 RXDV5 H J RXD10 CRS1 COL1 VDD3.3 GND GND GND GND GND GND RXCLK5 K RXD13 RXD12 RXD11 VSS2.0 GND GND GND GND GND GND VDD3.3 L RXD17 RXD16 RXD15 RXD14 GND GND GND GND GND GND VSS3.3 RXD52 M RXDV1 RXCLK1 GTXCLK1 VDD3.3 GND GND GND GND GND GND VDD3.3 N RXER1 TXCLK1 TXD10 VDD2.0 GND GND GND GND GND GND P TXD11 TXD12 TXD13 R TXD16 TXD15 T TXD17 U GTXCK VSS2.0 VDD3.3 VDD2.0 VSS2.0 VSS3.3 VSS3.3 VSS2.0 VDD2.0 VDD3.3 VSS3.3 VSS3.3 J RXD53 K RXD51 RXD50 L TXEN4 COL5 CRS5 M VDD2.0 TXD46 TXD47 TXER4 N VDD3.3 VDD3.3 TXD43 TXD44 TXD45 P TXD14 VSS3.3 VSS2.0 TXD40 TXD41 TXD42 R TXER1 TXEN1 VSS2.0 RXCLK4 RXDV4 GTXCLK4 TXCLK4 T RESET SYSCK SELSCK VSS3.3 VSS3.3 VDD3.3 VDD2.0 VDD3.3 VSS3.3 VSS3.3 VDD3.3 VDD2.0 VDD3.3 VSS3.3 VSS2.0 RXD45 RXD46 RXD47 RXER4 U RXD24 RXD27 RXCLK2 TXD22 TXD23 TXEN2 COL3 RXD30 RXD35 RXD36 RXCLK3 TXD31 TXD32 TXD35 COL4 CRS4 RXD44 V V VDD18PLL D LE ST BC D LE UN OV W CRS2 RXD20 COL2 RXD25 RXDV2 GTXCLK2 TXD21 TXD24 TXD27 CRS3 RXD31 RXD34 RXD37 TXCLK3 TXD30 TXD33 TXD36 TXEN3 RXD40 RXD43 W Y RXD21 RXD22 RXD23 RXD26 RXER2 TXCLK2 TXD20 TXD25 TXD26 TXER2 RXD32 RXD33 RXDV3 GTXCLK3 RXER3 TXD34 TXD37 TXER3 RXD41 RXD42 Y 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Top View Confidential. Copyright © 2003, IC Plus Corp. 5/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 1 Pin Listing (PBGA 292) I Is Ipd I/O I/Opd ⇒ digital input ⇒ schmitt trigger digital input ⇒ digital input with internal pull down ⇒ digital bi-directional ⇒ digital bi-directional with internal pull down No. G4 E4 J4 F4 B15 H4 B16 K4 M4 R4 N4 T4 P4 C7 U5 B8 U7 U6 U9 H3 G1 G2 U10 G3 F1 F2 U12 F3 E1 H2 Pin label Vdd 3.3 Vss 3.3 Vdd 3.3 Vss 3.3 Vss 3.3 Vdd 2.0 Vss 3.3 Vss 2.0 Vdd 3.3 Vss 3.3 Vdd 2.0 Vss 2.0 Vdd 3.3 Vss 3.3 Vss 3.3 Vss 3.3 Vdd 3.3 Vss 3.3 Vdd 3.3 TxData0_7 TxData0_6 TxData0_5 Vss 3.3 TxData0_4 TxData0_3 TxData0_2 Vdd 3.3 TxData0_1 PriClass0_1 TxData0_0 PriClass0_0 Type P G P G P P P G P G P G P P G P P G P O O O G O O O P I/Opd I/Opu TxEn0 Confidential. Copyright © 2003, IC Plus Corp. O I/Opu O P G ⇒ digital bi-directional with internal pull up ⇒ digital output ⇒ power ⇒ ground Description Digital +3.3V power supply for I/O Digital ground for I/O Digital +3.3V power supply for I/O Digital ground for I/O Digital +2.0V power supply for core Digital ground for core Digital +3.3V power supply for I/O Digital ground for I/O Digital +2.0V power supply for core Digital ground for core Digital +3.3V power supply for I/O Digital ground for I/O Digital +3.3V power supply for I/O Digital ground for I/O Digital +3.3V power supply for I/O GMII transmit data - bits 7 GMII transmit data - bits 6 GMII transmit data - bits 5 Digital ground for I/O GMII transmit data - bits 4 GMII/MII transmit data - bits 3 GMII/MII transmit data - bits 2 Digital +3.3V power supply for I/O GMII/MII transmit data - bit 1 Priority class - most significant bit. GMII/MII transmit data - least significant bit Priority class - least significant bit. Sets priority level per port basis. PriClass[0] - '00' - port 0 has low priority PriClass[0] - '01' - port 0 has normal priority PriClass[0] - '10' - port 0 has high priority PriClass[0] - '11' - port 0 has very high priority PriClass[0] is latched on reset GMII/MII transmit enable 6/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. E3 U11 H1 E2 A2 A3 D4 U8 D3 D1 A1 Pin label GTxClk0 Vss 3.3 TxEr0 TxClk0 Crs0 Col0 RxEr0 Vdd 2.0 RxClk0 RxDv0 RxData0_0 Type O G I/Opd I Is Is Is P I Is Is B3 RxData0_1 Is B2 RxData0_2 Is U16 B1 Vss 2.0 RxData0_3 G Is C3 C2 C1 D2 U14 U15 T1 R1 R2 U13 R3 P3 P2 R17 P1 RxData0_4 RxData0_5 RxData0_6 RxData0_7 Vdd 3.3 Vss 3.3 TxData1_7 TxData1_6 TxData1_5 Vdd 2.0 TxData1_4 TxData1_3 TxData1_2 Vss 2.0 TxData1_1 Priclass1_1 Is Is Is Is P G O O O P O O O G I/Opd N3 TxData1_0 PriClass1_0 I/Opu T3 M3 TxEn1 GTxClk1 Confidential. Copyright © 2003, IC Plus Corp. O O Description GMII transmit clock Digital ground for I/O Transmit Error MII transmit clock MII carrier sense indication MII collision indication Receive Error Digital +2.0V power supply for core MII receive clock GMII/MII data valid GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data Digital ground for core GMII receive data - least significant nibble. MII receive data GMII receive data - most significant nibble GMII receive data - most significant nibble GMII receive data - most significant nibble GMII receive data - most significant nibble Digital +3.3V power supply for I/O Digital ground for I/O GMII transmit data - bits 7 GMII transmit data - bits 6 GMII transmit data - bits 5 Digital +2.0V power supply for core GMII transmit data - bits 4 GMII/MII transmit data - bits 3 GMII/MII transmit data - bits 2 Digital ground for core GMII/MII transmit data - bit 1 Priority class - most significant bit. PriClass[1] is latched on reset GMII/MII transmit data - least significant bit Priority class - least significant bit. Sets priority level per port basis. PriClass[1] - '00' - port 1 low priority PriClass[1] - '01' - port 1 has normal priority PriClass[1] - '10' - port 1 has high priority PriClass[1] - '11' - port 1 has very high priority PriClass[1] is latched on reset GMII/MII transmit enable GMII transmit clock 7/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. P17 T2 N2 J2 J3 N1 L17 M2 M1 J1 Pin label Vdd 3.3 TxEr1 TxClk1 Crs1 Col1 RxEr1 Vss 3.3 RxClk1 RxDv1 RxData1_0 Type P I/Opd I Is Is Is G I Is Is K3 RxData1_1 Is K2 RxData1_2 Is M17 K1 Vdd 3.3 RxData1_3 P Is L4 L3 L2 L1 U4 RxData1_4 RxData1_5 RxData1_6 RxData1_7 selsck Is Is Is Is Is U1 gtxck I V1 V2 Vdd 2.0 BcstLED V3 OvUnLED O D9 U3 U2 W9 Y9 Y8 W8 V8 Vss 2.0 sysck reset TxData2_7 TxData2_6 TxData2_5 TxData2_4 TxData2_3 PriBndw1 G I Ipus I/Opd I/Opd I/Opd I/Opd I/Opd N17 Vdd 2.0 P I/Opd Confidential. Copyright © 2003, IC Plus Corp. P Description Digital +3.3V power supply for I/O Transmit Error MII transmit clock MII carrier sense indication MII collision indication Receive Error Digital ground for I/O MII receive clock GMII/MII data valid GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data Digital +3.3V power supply for I/O GMII receive data - least significant nibble. MII receive data GMII receive data - most significant nibble GMII receive data - most significant nibble GMII receive data - most significant nibble GMII receive data - most significant nibble Selects the source for the system clock. selsck - ‘1’ - sysck is driven by a 25MHz external clock. The 125Mhz reference clock for 1000Mbps operating mode. This clock is used as a reference clock for the GMII transmission clock for every port. Digital +2.0V power supply for core The led can signal filtering of broadcast frames Also the led remains lit if the POST test fails, which indicates a faulty chip. The led is lit whenever a unicast packets overflow condition is reached and some frames are dropped by the buffer management engine. Digital ground for core The 25MHz system clock. General reset. GMII transmit data - most significant bit GMII transmit data - bit 6 GMII transmit data - bit 5 GMII transmit data - bit 4 GMII/MII transmit data - bit 3 Priority bandwidth configuration pins. PriBndw(1)is latched on reset Digital +2.0V power supply for core 8/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. V7 Pin label TxData2_2 PriBndw0 W7 TxData2_1 Y7 PriClass2_1 TxData2_0 PriClass0_0 V9 W6 F17 Y10 Y6 W1 W3 Y5 K17 V6 W5 W2 TxEn2 GTxClk2 Vss 2.0 TxEr2 TxClk2 Crs2 Col2 RxEr2 Vdd 3.3 RxClk2 RxDv2 RxData2_0 Y1 RxData2_1 Y2 RxData2_2 D16 Y3 Vss 3.3 RxData2_3 V4 W4 Y4 V5 RxData2_4 RxData2_5 RxData2_6 RxData2_7 Type Description I/Opu GMII/MII transmit data - bit 2 Priority bandwidth configuration pins. These configuration pins allow the bandwidth percentage assigned to a priority packet queue to be modified to certain hardwired levels. PriBndw chooses between 4 hardwired spreading percentage schemes among the 4 priority queues of each port. PriBndw(0)is latched on reset I/Opd GMII/MII transmit data - bit 1 PriClass[2] is latched on reset Priority class - most significant bit. I/Opu GMII/MII transmit data - least significant bit Priority class - least significant bit. Sets priority level per port basis. PriClass[2] - '00' - port 2 low priority PriClass[2] - '01' - port 2 has normal priority PriClass[2] - '10' - port 2 has high priority PriClass[2] - '11' - port 2 has very high priority PriClass[2] is latched on reset O GMII/MII transmit enable O GMII transmit clock G Digital ground for core I/Opd Transmit Error I MII transmit clock Is MII carrier sense indication Is MII collision indication Is Receive Error P Digital +3.3V power supply for I/O I MII receive clock Is GMII/MII data valid Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - least significant nibble. MII receive data G Digital ground for I/O Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - most significant nibble Is GMII receive data - most significant nibble Is GMII receive data - most significant nibble Is GMII receive data - most significant nibble Confidential. Copyright © 2003, IC Plus Corp. 9/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. Y17 Pin label TxData3_7 EnIPPr W17 TxData3_6 IPTosMap1 V17 TxData3_5 IPTosMap0 Y16 TxData3_4 EnVLANPr W16 TxData3_3 VLANPrMap1 G17 V16 Vdd 3.3 TxData3_2 VLANPrMap0 V15 TxData3_1 PriClass3_1 W15 TxData3_0 PriClass3_0 Type Description I/Opd GMII transmit data - bit 7 Enables IP prioritization. CoS resolution will consider TOS Precedence bits from IP Header. ‘1’ – IP priority will be taken into consideration ‘0’ – IP priority will be neglected EnIPPr is latched on reset I/Opd GMII transmit data - bit 6 IP type of service mapping - the most significant bit IPTosMap(1) is latched on reset I/Opu GMII transmit data - bit 5 IP type of service mapping - the least significant bit. This configuration chooses between 4 hard-wired mapping schemes for the associations of IP priority within the received packet and one of the 4 priority levels set by PriClass. In case the receiving port already has a priority level assigned by PriClass configuration, or the VLAN prioritization is also active, a resolution function is used for the final priority class. IPTosMap(0) is latched on reset. I/Opu GMII/MII transmit data - bit 4 Enables VLAN prioritization. CoS resolution will consider user priority bits (TCI field) from 802.1Q VLAN Tag Header. ‘1’ – VLAN priority will be taken into consideration ‘0’ – VLAN priority will be neglected EnVLANPr is latched on reset I/Opd GMII/MII transmit data - bit 3 VLAN priority mapping VLANPrMap(1)is latched on reset. P Digital +3.3V power supply for I/O I/Opu GMII/MII transmit data - bit 2 VLAN priority mapping This configuration chooses between 4 hard-wired mapping schemes for the associations of VLAN priority within the received packet and one of the 4 priority levels set by PriClass. In case the receiving port already has a priority level assigned by PriClass configuration, or the IP prioritization is also active, a resolution function is used for the final priority class. VLANPrMap(0)is latched on reset. I/Opd GMII/MII transmit data - bit 1 Priority class - most significant bit. PriClass[3] is latched on reset I/Opu GMII/MII transmit data - least significant bit Priority class - least significant bit. Sets priority level per port basis. PriClass[3] - '00' - port 3 low priority PriClass[3] - '01' - port 3 has normal priority PriClass[3] - '10' - port 3 has high priority PriClass[3] - '11' - port 3 has very high priority PriClass[3] is latched on reset Confidential. Copyright © 2003, IC Plus Corp. 10/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. W18 Y14 D15 Y18 W14 W10 V10 Y15 H17 V14 Y13 V11 Pin label TxEn3 GTxClk3 Vss 3.3 TxEr3 TxClk3 Crs3 Col3 RxEr3 Vdd 2.0 RxClk3 RxDv3 RxData3_0 Type O O G I/Opd I Is Is Is P I Is Is W11 RxData3_1 Is Y11 RxData3_2 Is Y12 RxData3_3 Is W12 V12 V13 W13 N19 RxData3_4 RxData3_5 RxData3_6 RxData3_7 TxData4_7 BcstThrot Is Is Is Is I/Opd N18 TxData4_6 OBMTest I/Opd P20 TxData4_5 FcBcstMode I/Opd Confidential. Copyright © 2003, IC Plus Corp. Description GMII/MII transmit enable GMII transmit clock Digital ground for I/O Transmit Error MII transmit clock MII carrier sense indication MII collision indication Receive Error Digital +2.0V power supply for core MII receive clock GMII/MII data valid GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data GMII receive data - least significant nibble. MII receive data GMII receive data - most significant nibble GMII receive data - most significant nibble GMII receive data - most significant nibble GMII receive data - most significant nibble GMII transmit data - bit 7 Enables broadcast throttling. '1' – Enable '0' – Disable BcstThrot is latched on reset. GMII transmit data - bit 6 Sets the switch into a special test mode. This test mode require crossover loopbacks cables to be placed on the pair ports: 1 & 2,2 & 3, 3 & 4, 4 & 5,5 & 6 while ports 0 and 7 will be accessible to the test machine. '1' – enabled '0' – disabled OBMTest is latched on reset. GMII transmit data - bit 5 Changes the way flow control threshold is handled while in broadcast situations. '1' – only the flow control threshold on the broadcast queue is considered '0' – flow control thresholds associated to each source port originating the broadcast frames are considered FCBcstMode is latched on reset. 11/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. P19 Pin label TxData4_4 FcBcstEn P18 D17 R20 R19 TxData4_3 Vss 2.0 TxData4_2 TxData4_1 PriClass4_1 R18 TxData4_0 PriClass4_0 M18 TxEn4 RejRDA T19 D7 N20 T20 V19 V18 U20 D11 T17 T18 W19 GTxClk4 Vdd 3.3 TxEr4 TxClk4 Crs4 Col4 RxEr4 Vss 3.3 RxClk4 RxDv4 RxData4_0 Y19 RxData4_1 Y20 RxData4_2 W20 RxData4_3 V20 U17 RxData4_4 RxData4_5 Type Description I/Opd GMII transmit data - bit 4 Enables/disables flow control for broadcast packets. '1' – enabled '0' – disabled FcBcstEn is latched on reset. I/Opd GMII/MII transmit data - bit 3 G Digital ground for core I/Opd GMII/MII transmit data - bit 2 I/Opd GMII/MII transmit data - bit 1 Priority class - most significant bit. PriClass[4] is latched on reset. I/Opu GMII/MII transmit data - least significant bit Priority class - least significant bit. Sets priority level per port basis. PriClass[4] - '00' - port 4 low priority PriClass[4] - '01' - port 4 has normal priority PriClass[4] - '10' - port 4 has high priority PriClass[4] - '11' - port 4 has very high priority PriClass[4] is latched on reset I/Opd GMII/MII transmit enable If this pin is set to '1' then all frames with 802.1D Reserved Group Address or 802.3x Full Duplex PAUSE operation DA will be filtered out. This setting is provided for testing purposes only and it is recommended to set high in normal operation. RejRDA is latched on reset. O GMII transmit clock P Digital +3.3V power supply for I/O I/Opd Transmit Error I MII transmit clock Is MII carrier sense indication Is MII collision indication Is Receive Error G Digital ground for I/O I MII receive clock Is GMII/MII data valid Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - least significant nibble. MII receive data Is GMII receive data - most significant nibble Is GMII receive data - most significant nibble Confidential. Copyright © 2003, IC Plus Corp. 12/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. U18 U19 D14 E19 Pin label RxData4_6 RxData4_7 Vdd 3.3 FullBp Type Is Is P Ipd E20 CarrBp Ipu F18 DisBkPr Ipd E17 F20 TxEr5 TxData5_3 FrcFdFc I/Opd I/Opd D10 G20 Vss 3.3 TxData5_2 DisFdFc G I/Opd G19 G18 E18 TxData5_1 TxData5_0 TxEn5 DisBPBk I/pd I/pd I/Opd H19 D13 H18 D12 J17 H20 M20 M19 L20 RxEr5 Vdd 2.0 Txclk5 Vss 2.0 RxClk5 RxDv5 Crs5 Col5 RxData5_0 Is P I G I Is Is Is Is Confidential. Copyright © 2003, IC Plus Corp. Description GMII receive data - most significant nibble GMII receive data - most significant nibble Digital +3.3V power supply for I/O In normal operation the backpressure process is executed until flow control condition disappears or until the time limit for backpressure is reached. This limit is based on EEPROM’s BPTimeValue register. When this configuration is ‘0’ the backpressure process will be also limited from exceeding 28 consecutive collisions. The default value (28) can be changed by EEPROM settings. FullBp is latched on reset Enable / disable carrier based backpressure for half -duplex mode. '1' – Carrier based backpressure ‘0' – Collision based backpressure. CarrBp is latched on reset Setting this pin to ‘1’ will disable backpressure procedure for all half duplex ports. DisBkPr is latched on reset. Transmit Error MII transmit data - bit 3 Setting this bit to ‘1’ will force flow control execution for 10/100Mbps, no matter the auto negotiation result. FrcFdFc is latched on reset. Digital ground for I/O MII transmit data - bit 2 Setting this bit to '1' will disable flow-control for full-duplex mode (transmission of pause frames). DisFdFc is latched on reset. MII transmit data - bit 1 MII transmit data - least significant bit MII transmit enable Enable / disable backoff during backpressure. '1' – No backoff executed. Another collision will be forced again after one minimum IFG time following previous collision if carrier sense is observed. '0' – The MAC randomly chooses between 0 and 1 slot times of backoff. DisBkBp is latched on reset. Receive Error Digital +2.0V power supply for core MII transmit clock Digital ground for core MII receive clock MII/MII data valid MII carrier sense indication MII collision indication MII receive data - least significant nibble. MII receive data 13/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Pin Listing (continued) No. L19 Pin label RxData5_1 L18 RxData5_2 K20 RxData5_3 D8 D20 D19 D6 D18 C20 C19 Vdd 2.0 MDC MDIO Vss 2.0 SCL SDA TestInt Type Description Is MII receive data - least significant nibble. MII receive data Is MII receive data - least significant nibble. MII receive data Is Receive data - least significant nibble. MII receive data P Digital +2.0V power supply for core O MDIO Clock. I/Opu MDIO Data. G Digital ground for core I/Opu EEPROM's serial clock. I/Opu EEPROM's serial data. Ipd TestInt - '0' - switch normal mode(default) TestInt -'1' - internal memory test mode. Confidential. Copyright © 2003, IC Plus Corp. 14/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 2 Ethernet Media Access Controller The TC9205M’s Ethernet Media Access Controller (MAC) contains IEEE 802.3 MAC functions for 5 ports. It is able to operate in 10/100/1000 full duplex and 10/100 half duplex modes for all ports. Each port has its dedicated receive and transmit FIFO with necessary logic to implement flow control for both duplex modes. The MAC functions are specially designed for high speed and flexible interfacing. 2.1 Receive MAC When a frame is received from the Ethernet media through the MII interface, it is stored first in a dedicated receive FIFO. This FIFO acts as a temporary buffer between the Receive MAC section and switch core interface. The Receive MAC layer extracts the valid ethernet information by stripping off the preamble sequence and SFD of the received frame, which the frame was acquired from the PHY layer via either GMII or MII interface. The Receive MAC then sends packets with valid information to the receive FIFO. TC9205M determines the validity of each received packet by checking the CRC and packet length. The bad packets will be dropped either by the MAC or by the queue manager. Oversized packets are truncated to 1536 bytes and marked as erroneous packets. Undersized packets are removed from the receive FIFO without being reported to the switch interface. Therefore the FIFO space held by undersized packets will be removed automatically. In Full Duplex mode the Receive MAC can identify any received frame as a flow control frame having a valid CRC. It will load its internal pause counter with the ‘pause quanta’ value extracted from the incoming frame. The flow control frame will be rejected after the pausing period has been acquired. After the pausing period has obtained from the flow control frame, the flow control mechanism inside TC9205M will set a decremental timer in the pause counter according to the value of the pausing period. A non-zero value sets in the pause counter will issue the Receive MAC to XOFF (Transmit Stop) the Transmit MAC. The pause counter will decrement the ‘pause quanta’ value after each slot time until it reaches zero. If the pause quanta value is equal to zero the flow control mechanism will XON (Transmit Enable) the Transmit MAC. If a frame transmission is in progress when the PAUSE frame is received, the transmission is allowed to complete for the current transmitting frame but the transmission for the next frame(s) will hold until the Receive MAC generates an XON command. The pause time will begin at the end of current transmission or start immediately if no transmission is in the medium when the PAUSE frame is received. If a pause command is received while the transmitter is already in pause, the new pause time indicated by the new Flow Control frame will be loaded into the pause register. The MAC is also able to reject frames containing IEEE 802.1D Reserved Group Destination Addresses and frames with Mac Control Type (Type 88-08) if selected through configuration settings. When the receive FIFO is full and additional data are still incoming from the MAC, then the overrun condition occurs and the frame is dropped. If the system clock frequency is not lower than the recommended value this condition will never occur. Confidential. Copyright © 2003, IC Plus Corp. 15/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 2.2 Transmit MAC The Transmit MAC section assembles the MAC frames stored in the transmit FIFO and controls their transmission onto the media via external PHY entities. It appends the standard preamble and start of frame delimiter to the transmitted packets. The MAC also controls the interframe gap time during transmission, maintaining for default the standard minimum interframe gap of 96-bit time. This value can be changed in the EEPROM register setting. For Half Duplex mode the Transmit MAC meets CSMA/CD IEEE 802.3 requirements. The FIFO logic manages frame retransmission for early collision conditions or discards the frame if late collision occurs. It also follows the truncated binary exponential backoff algorithm, collision and jamming procedures. The transmit FIFO stores the packets which are ready for transmission in the main memory queues. If there is no packet ready in the transmit FIFO before the current packet completes its transmission, an underrun condition has occurred and the mechanism will generate a signal to indicate FIFO underrun event, but if the switch core transfers the rest of the packet(s) into the FIFO, the Transmit MAC will safely discard it without affecting the next packet. Underrun conditions never occur if the system is operating at the recommended clock frequency or higher. For full duplex mode TC9205M implements the flow control algorithm according to the IEEE 802.3x standard, using the XON/XOFF method. Full duplex flow control can be configured automatically, by auto-negotiation result, or manually, pin configuration and/or EEPROM settings, to enable/disable the function. The TC9205M executes backpressure algorithm for half duplex flow control supporting both collision based and carrier based backpressure. Both modes are based on carrier sense forced collisions and an aggressive backoff algorithm. The forced consecutive collisions generated for flow control purposes can be limited to a maximum of 28 collisions if this option is selected. This feature helps to avoid HUB partitioning in heavy traffic. The number of collisions can be adjusted in EEPROM settings. MAC Block Diagram Rx Data (64) Tim e Value (16) FC Insert Tx Data (64) System Interface Rx FIFO Flow Control Rx MAC Tx FIFO Fifo Control Logic Tx MAC MAC RMII Rx Data (2) RMII Tx Data (2) RMII PHY Layer Confidential. Copyright © 2003, IC Plus Corp. 16/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 3 MAC Address Handling After the frames are recovered from MAC FIFOs they are transferred to the queue management entity. Prior to this transfer the DA and SA are extracted from each frame and passed to MAC Address Lookup Table and Resolution Engine (ALR). The Lookup engine uses a proprietary hashing algorithm to access its 8K address table. The engine will update its table with each SA, if it is found to be unknown or migrated, Then it will update the source port and aging information along with the new address. This learning process will be executed for all addresses except for multicast SA frames (bit 40 is ‘1’). For stored addresses, aging function is executed according to the time intervals set in the EEPROM registers. Default aging time is 600 seconds. TC9025M also provide option to disable the aging mechanism, please refer to the EEPROM Register in section 14.3.15 for more details. Destination address is also analyzed in order to make forwarding decisions. If the destination address is a broadcast or multicast address, the frame will flood to all ports except its originated port (source port). If only some ports are allow to send those frame(s) with broadcast or multicast address(es), the destination ports will search the for the port(s) with correct address(s) in the MAC address table. If the address is found to be unknown, the frame will be also flooded to every port otherwise frame(s) will be forwarded to the legitimate port(s) only. TC9205M will filter following frames: erroneous frames. This includes : - frames with CRC error; - undersized frames; - oversized frames; - frames that presents alignment error (this doesn’t include frames with dribble bits). 802.3x pause frames. These frames will be filtered after executing appropriate flow control actions; frames with 802.3x full duplex flow control PAUSE operation destination address. These frames are not recognized as pause frames if the MAC type and subtype does not match the “88080001”H value; frames with 802.1D Reserved Group Address destination address; frames with MAC Control Type (8808); Local frames. If the port found to correspond to destination address matches the source port, then the frame is considered to be local and discarded. 4 Queue Management TC9205M operates in a store and forward mode implementing efficient switching method that minimizes the overall latency. The queue manager uses the first in first out forwarding mode, which guarantees to maintain frame order. Congestion control is implemented within TC9205M, which will eliminate head-of-line blocking conditions. The switch embeds a 2 Mbit SSRAM as a central frame buffer pool, which is divided into 256 byte buffers to increase memory utilization efficiency. Normal and priority transmission queues are implemented within TC9205M for each port. All available frame buffers are shared between all transmission queues and each queue can fully extend to all buffers. Still memory resource utilization is limited on receive port basis. Evolved flow control and frame filtering mechanisms are implemented based on source, transmit and global memory load to maximize performance and minimize packet loss. Confidential. Copyright © 2003, IC Plus Corp. 17/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 5 Classes of Service TC9205M implements advanced Class of Service (CoS), supporting both traffic priority and delay bound features. It provides four classes of service: class 0 (low), class 1 (normal), class 2 (high) and class 3 (very high). Each class of service has its dedicated transmission queue for each port. The frames assign with higher service class will arrive sooner at the destination. Frames in the class 0 priority queue get the lowest transmission bandwidth percentage, while frames in the class 3 priority queue get the highest bandwidth percentage. The bandwidth percentage depends on two elements: - CoS bandwidth Weights; - The corresponding class of all non-empty queues for the respective port. The CoS Weights can be set by using PriBndw[1:0] shared configuration pins or by setting the EEPROM Registers. While the pins provide only four predefined hardwired combinations for the transmission bandwidth percentage allocation among the queues, the EEPROM gives more flexibility over this configuration. When EEPROM is not present, transmission bandwidth percentage distribution among the queues for the case when all the queues are loaded can be seen in the table below: PriBndw[1:0] 00 01 10 11 EEPROM is not present Transmission Bandwidth Percentage Class 0 Priority Class 1 Priority Class 2 Priority (lowest) 7% 13% 27% 3% 14% 27% 2% 8% 30% 3% 5% 10% Class 3 Priority (highest) 53% 56% 60% 82% The percentage refers to the port’s bandwidth, which is determined by the current operating speed. Those values are the guaranteed minimum ones and the transmission bandwidth percentage cannot drop below specified value under any circumstance. If EEPROM is used, the user has more flexible adjustment of bandwidth weights to choose from the EEPROM register. A special early packet dropping mechanism is also implemented to offer more protection against overflow conditions for priority packets. If the global memory load exceeds an overflow threshold, then all class 0 priority packets will be dropped from the source port(s) in order to save space for the higher priority packets. This will minimize the probability of packet loss in priority flows for senders that are not flow control capable. The CoS mechanism supports multiple prioritization sources: 802.1Q VLAN Tag Header (layer 2), IP Header TOS bits (layer 3) and/or port based CoS. For IP and VLAN sources a mapping is executed between the values of the fields extracted from each frame and one of the four CoS provided by TC9205M. This mapping can be adjusted by using IPTosMap[1:0] and VLANPrMap[1:0] shared configuration pins or the EEPROM settings. While the pins provide just four predefined hard-wired mapping schemes, the EEPROM gives a custom explicit mapping. Under some circumstances, one or more mechanisms can be active (VLAN, IP and/or port based). In this case there is a resolution function that resolves the CoS for each incoming frame. When EEPROM is not present and IP and/or VLAN prioritizations are enabled the corresponding headers are parsed. The frame will be assigned the CoS corresponding to the first header of each incoming frames parsed and found valid. When both above prioritizations are enabled the search order is determined by EEPROM Confidential. Copyright © 2003, IC Plus Corp. 18/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet configuration (default is IP). If no header is found or corresponding prioritizations are disabled then port based prioritization is executed. When EEPROM is present an additional method of prioritization is available. This method consists of selecting the highest service class from all classes corresponding to the enabled prioritization sources (IP, VLAN and port based). For both methods, when no prioritization source is available the default CoS is used (default is normal priority – CoS1 but it can be also changed by EEPROM configuration). The CoS feature can be configured by adjusting shared configuration pins and/or programming EEPROM Register settings. VLAN prioritization can be enabled by EnVLPr shared configuration pin or by EEPROM register settings,, while EnIPPr shared configuration pin or the EEPROM can enable IP prioritization. The shared configuration pins are sampled during reset. The per port basis CoS can be set using PriClass[x][1:0] shared configuration pins or configuring EEPROM registers, where x stands for port number. The port based prioritization can be disabled from EEPROM settings only. Configuration PriClass[x][1:0] Pins Latched Description TxDataX_[1:0] Set the priority class per port basis '00' – the port has class 0 priority(lowest priority) '01' – the port has class 1 priority '10' – the port has class 2 priority '11' – the port has class 3 priority(highest priority) TxData3_7 Enable/disable IP prioritization EnIPPr ‘0’ – IP priority within the received packet (if exists) is ignored ‘1’ – IP priority within the received packet (if exists) is considered EnVLPr TxData3_4 Enable/disable VLAN prioritization ‘0’ – VLAN priority within the received packet (if exists) is ignored ‘1’ – VLAN priority within the received packet (if exists) is considered IPTosMap[1:0] TxData3_[6:5] Selects one of four mappings for the 8 level precedence extracted from frame’s IP header to the 4 CoS offered by TC9205M (C0, C1, C2, C3 – class 0, 1, 2, 3 of service) Designated priority class IPTosMap[1:0] 0 1 2 3 4 5 6 7 C0 C0 C1 C1 C2 C2 C3 C3 00 C1 C2 C2 C2 C3 C3 C3 C3 01 C1 C1 C2 C2 C2 C3 C3 C3 10 C0 C1 C1 C2 C2 C3 C3 C3 11 VLANPrMap[1:0] TxData3_[3:2] Selects one of four mappings for the 8 level user_priority extracted from the frame’s VLAN Tag to the 4 level priority offered by TC9205M (C0, C1, C2, C3 – class 0, 1, 2, 3 of service) Designated priority class VLANPrMap[1:0] 0 1 2 3 4 5 6 7 C0 C0 C1 C1 C2 C2 C3 C3 00 C1 C0 C0 C1 C2 C2 C3 C3 01 C0 C0 C0 C1 C1 C2 C3 C3 10 C2 C0 C1 C2 C3 C3 C3 C3 11 Confidential. Copyright © 2003, IC Plus Corp. 19/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 6 Flow Control Whenever the memory load exceeds preset thresholds, flow control commands are issued by the traffic management entity to the transmit MACs to prevent overflow conditions occurred. The overrun conditions are either locally or globally triggered, depending on the traffic management entity configuration. Transmit MAC executed those flow control commands depending on the duplex mode status. TC9205M executes backpressure for half duplex operation mode and it is IEEE 802.3x compliant for full duplex operation mode. In special conditions forward-pressure is also executed to eliminate packet loss. For full duplex operation mode, TC9205M applies the XON/XOFF method using IEEE 802.3x PAUSE frames. When a flow control command is internally generated, the transmit MAC inserts a pause frame immediately or after the current transmission ends. On the receiving side, if a flow control frame is received, the transmit MAC will stop transmission for a number of slot times, where the pausing time was extracted from the received pause frame. The flow control function of the receiving side is always operational unless is specifically disabled by EEPROM on a per port basis (if no EEPROM is present the receive side flow-control is always operational), while transmission of the pause frames obeys the auto negotiation result. TC9205M recognizes flow control frames from the incoming frames and these frames should also have a valid CRC. The IEEE 802.3x PAUSE operation reserved destination address, MAC control type and PAUSE opcode (88-08-00-01). The chip filters all frames having PAUSE operation reserved DA disregarding the other fields. If enabled, direct flow control addressing can be executed. This implies inserting the port address as SA in each flow control frame generated by TC9205M and recognizing as flow control all received frames with the port’s address as DA, MAC control type and PAUSE opcode. After recognizing and executing appropriate flow control actions these frames will be also filtered. The port address is obtained by adding the port’s number to the base address contained within EEPROM. When no EEPROM is present and DisFdFC shared configuration pin is configured to high state, the switch will inhibit its ability to send flow control packets on all ports while preserving its ability to receive and act upon the incoming flow control packets. If this pin is configured to low state the switch will execute symmetrical PAUSE operation as defined in 802.3x. The function of enabling/disabling the flow control in the EEPROM is now available on a per port basis rather than setting flow control globally for all ports and separate enabling/disabling flow control ability can be performed on either receive or transmit side of a port. TC9205M can be instructed to ignore the auto-negotiation result for full duplex flow control ability. When the FrcFdFC shared configuration pin or the equvalent register in the EEPROM is equal to 1, the link partner will be considered to have full duplex flow control capable no matter of auto-negotiation result. The FrcFdFC setting is effective only for ports configured in 10/100 Mbps speed modes. When the FrcGbFC and the equivalent register in the EEPROM is equal to 1, the link partner will be considered symmetric and asymmetric towards link partner full duplex flow control capable no matter of auto-negotiation result. The FrcGbFC setting is effective only for ports configured in 1000 Mbps speed mode. The TC9205M executes backpressure algorithm for half duplex flow control, supporting both collision-based and carrier-based backpressure. For collision-based backpressure the switch will be forced to send collision signals to the terminal that sends packets to TC9205M. While TC9205M detects an incoming frame that it wishes to backpressure with carrier sense signals, the switch will start transmission to that port. If no packet is available at that moment for transmission then the MAC layer will generate short jamming frames. Additionally, an aggressive backoff will be executed on the switch side (by the transmit MAC) after each of the forced collisions. The transmit MAC will chose between 0 and 1 slot times to backoff. This will grant a fast recovery for the switch's congested port and will secure the channel for the congested port in case it wishes to transmit (empty its buffers). If desired, the backoff can Confidential. Copyright © 2003, IC Plus Corp. 20/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet be completely disabled using shared configuration pin DisBPBk or EEPROM. In this case the switch will start transmitting with minimum IFG after carrier sense is deasserted and followed after collision. For carrier-based backpressure the switch will use the deferral mechanism rather than the collision backoff mechanism. The transmit MAC will jam the line by sending continuous preamble. The link partner will see the channel busy and thus it will defer transmission without imposing any additional backoff delay. The jamming procedure will have short break to avoid jabber condition and the break will also be short enough to prevent the other stations from starting transmission. Preamble can be sent this way as long as necessary. If valid packets became available for transmission during this period then jamming will be interrupted and the packets will be transmitted with standard IFG (Inter-Frame Gap). In this case backpressure is executed the same way as collision based mechanism. Carrier based backpressure can be selected using shared configuration pin CrBP or EEPROM. Backpressure operation can be disabled globally using the shared configuration pin DisBkPr or per port basis using the EEPROM. By default forward pressure is also enabled whenever backpressure is enabled. Forward pressure is executed only in extreme congestion conditions that normally do not occur often. This flow control procedure is highly efficient in minimizing the packet loss. If desired, the forward pressure can be disabled by the EEPROM setting. If a HUB is connected to many workstations, one of the ports may be partitioned in heavy traffic when the switch executes backpressure. TC9205M can prevent this by discontinuing the backpressure process after a predefined number of consecutive collisions has reached. This function can be enabled using the shared configuration pin FullBP or adjusting EEPROM setting. Unlike other settings, to enable this feature the pin/bit should be set to '0'. The respective number of collisions defaults to 28 and can be specified using the EEPROM. In addition, when this feature is enabled the MAC will either grant receiving the next packet without colliding it, after which, it will resume the backpressure, or will completely quit backpressure waiting for a new XOFF command from internal flow control management device. Confidential. Copyright © 2003, IC Plus Corp. 21/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 7 Broadcast Throttling In case of excessive broadcast, TC9205M will throttle the broadcast traffic based on buffer memory loading. Both global buffer pool loading and source port loading are considered. The number of frame buffers that can be consumed by broadcast packets received from an individual source port is permanently limited to the EEPROM configurable value (contained by SrcLoadTrsh field from Broadcast Configuration Register). The default value is 32 when the EEPROM is not present. Additionally, regarding the global aspect, broadcast frames are always dropped by broadcast queues overflow. Two broadcast queues are implemented within TC9205M, one for low and normal priority (Classes 0 and 1) and another for higher priorities (Classes 2 and 3). Both filtering mechanisms described above can be avoided by enabling the flow control for broadcast process. This mechanism can be enabled using the FcBcstEn pin shared configuration or by adjusting the EEPROM setting. In this case the loading thresholds will never be reached and as result no broadcast packet will be dropped although the filtering mechanism always remains active. If the broadcast flow control is disabled TC9205M is still capable of taking continuous broadcast frames from one port and deliver them to all the other ports at maximum speed without losing packets. Independent of the throttling mechanisms, a bandwidth based broadcast throttling can be enabled using the BcstThrot pin or by EEPROM setting. When this process is active, the receive broadcast bandwidth per port will be limited to a value between 1% and 31% from the port’s maximum bandwidth. This percentage is encoded within ThrotTrsh field from EEPROM's Broadcast Configuration Register. Default value is 5 (%). Whenever the broadcast traffic bandwidth exceeds the above limit some broadcast frames will be randomly dropped in order to precisely meet the enforced bandwidth. TC9205M has the ability to give an indication about its status, from the broadcast packets handling issue perspective. Its BcstLED pin can signal either if the incoming broadcast packets are dropped or if broadcast packets overflow a certain threshold. During reset, this pin has the meaning of BcstCfg shared configuration pin. The BcstLED will behave as a broadcast packets dropping indicator, it lights periodically whenever a broadcast packet is dropped due to buffer overflow. 8 Port Mirroring Although TC9205M is a smart switch, it has the ability to set a pair of mirroring ports. This feature is available only through EEPROM settings. The port mirroring feature can be enabled by setting a value of ‘1’ in either EnTxMirror field from EEPROM’s PortMirrorConfig register or EnRxMirror field from the same register, or both. When port-mirroring feature has been enabled, the SourcePort field from EEPROM’s PortMirrorConfig register selects the monitored port while DestinationPort field from EEPROM’s PortMirrorConfig register selects the monitoring port. The traffic on the monitored (mirror source) port will be forwarded to the monitor port (mirror destination). Both ports can be any of the TC9205M’s ports. If EnRxMirror field is set to ‘1’ then all the incoming traffic of the mirror source port will be simultaneously forwarded towards its due destination and to the monitoring port. The bad CRC / undersized frames will be filtered out. If EnTxMirror field is set to ‘1’ then all the outgoing traffic of the mirror source port will be also forwarded to the monitoring port. Confidential. Copyright © 2003, IC Plus Corp. 22/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 9 Physical Layer Configuration / Polling TC9205M embeds a Physical Layer MII Management configuration / polling entity which provides speed, duplex, link status and link partner full duplex flow control ability information to the switch. This information is obtained by continuously polling the status of Physical Layer devices through the serial management interface. The entity is under control of EEPROM settings and it can operate in four different modes. The polling entity also performs Phy configuration procedure at two seconds after reset and each time EEPROM control information changes. The following operating modes are available per port basis (selectable by ANMode field from EEPROM's ConfigRegP[x]): 00 – Normal Mode (assumed by default when EEPROM is not present):In this mode the Auto-Negotiation Enable bit from MII Control Register (0.12) is checked first. If it is found enabled then TC9205M will disable advertisement for 1000BASE-T half duplex technology (9.8) and will advertise the full duplex flow control ability (4.10:11) according with internal flow control enable settings. Auto-negotiation is restarted leaving unchanged the rest of technology advertisements. Then Auto-Negotiation Advertisement register (4), Link Partner Base Page Ability register (5) and GMII registers (9:10) are polled continuously at 2 seconds interval in order to execute highest common denominator resolution. If auto-negotiation is disabled as reported by 0.12 then the switch will configure itself using bits 0.13 and 0.8 of Control register, and will consider link partner full duplex flow control capable. Gigabit speed will be disabled. 01 – Advertise one mode: Auto-Negotiation Enable is checked and if found to be disabled TC9205M will attempt to enable it. If successful the switch will force the port’s speed and duplex mode by advertising only the technology corresponding to the Speed and Duplex fields from EEPROM's ConfigRegP[x], otherwise bits 0.8 and 0.13 will be read for configuration and gigabit speed will be disabled. Full duplex flow control ability is also advertised along with selected technology and then auto-negotiation is restarted. An auto-negotiation register polling is executed as in Normal Mode. 10 – Advertise multiple modes: This mode is similar with previous one except that it advertises the technology corresponding to the forced mode and all lower position technologies, down to 10BASE-T half duplex. 11 – Disable Auto-Negotiation: When this mode is selected then auto-negotiation is disabled by setting bit 0.12 to ‘0’ and the forced speed and duplex mode will be written to Configuration Register, bits 0.13, 0.6 and 0.8. This mode is available only for 10/100 Mbps speed modes so bit 0.6 will always be written as ‘0’. Link partner will be considered full duplex flow control capable. In addition to the force mode feature, the TC9205M internal speed and duplex can be chosen between enforced ones (Speed and Duplex fields from EEPROM's ConfigRegP[x]) and polling results by means of ForceIntMode configuration. Independently of Phy configuration/polling operation mode the Link Status is also permanently monitored. If a Physical device reports link failure via 1.2 status bit then TC9205M disables transmission on associated port without holding any memory resources allocated for its transmission queues. The reported Link Status can be forced to ‘1’ using ForceLink bit from the same ConfigRegP[x] register. Confidential. Copyright © 2003, IC Plus Corp. 23/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10 EEPROM Interface TC9205M can be configured using a serial EEPROM device type AT24C02A (2048 bits organized as 256 pages of 1 byte each). With this device the manufacturer can deliver a pre-configured system to their customers while the customers can reconfigure the system and retain their preferences. TC9205M also provides a virtual internal EEPROM mode, which enables the programming entity to write the configuration data directly into the chip, without using the external EEPROM. In this mode the configuration data is lost after reset procedures. The TC9205M is able to operate without this device and can make effective use of its features using only the pin configuration interface. The EEPROM configuration provides additional features and it can override all pin interface settings offering a jumperless configuration mode. For this reason equivalent EEPROM settings can be found for every configuration pin. A validation bit is provided for each one of the EEPROM Configuration Registers. A dedicated Validation Register is reserved for this purpose and corresponding bits from this register must be set in order to enable the desired EEPROM configurations. The EEPROM configuration information is accessed by the TC9205M after each reset procedure. 10.1 Reprogramming the EEPROM for reconfiguration If the ‘Reset’ pin is hold low the TC9205M‘s EEPROM interface will go into high impedance state. This feature enables easy reprogramming of the EEPROM during installation or reconfiguration. The EEPROM can be reprogrammed using an external parallel port. A dedicated signal from this port can be used to hold the RESET pin low. Once the TC9205M interface pins have got to the high impedance state the EEPROM can be programmed by the parallel port trough the SDA and SCL pins. To enable the AT24C02A device to be accessed by the TC9205M its page address input pins must be hardwired to ‘0’. For virtual EEPROM mode the programming can be done using the same AT24C02A byte write protocol but page address bits must be “100” (A2 downto A0). SDA TC9205M EEPROM SCL Reset Parallel Port Confidential. Copyright © 2003, IC Plus Corp. 24/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.2 EEPROM Address Map Physical Address Bits Validation Bit Register Name DESCRIPTION EEPROM 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0ah 0bh 0ch 0dh 0eh 0fh 10h 11h 12h 13h 14h 15h - 18h 19h 1ah 1bh 1ch 1dh 1eh 1fh 20h 21h – 2dh 2eh 2fh 30h 31h 32h 33h 34h 35h 36h 37h 38h – 3bh 3dh 3eh [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] ValidReg [ 7 downto 0 ] ValidReg [ 15 downto 8 ] ValidReg [ 23 downto 16 ] ValidReg [ 24 downto 31 ] ValidReg [ 32 downto 39 ] ConfigRegP0 [ 7 downto 0 ] ConfigRegP0 [ 15 downto 8 ] ConfigRegP1 [ 7 downto 0 ] ConfigRegP1 [ 15 downto 8 ] ConfigRegP2 [ 7 downto 0 ] ConfigRegP2 [ 15 downto 8 ] ConfigRegP3 [ 7 downto 0 ] ConfigRegP3 [ 15 downto 8 ] ConfigRegP4 [ 7 downto 0 ] ConfigRegP4 [ 15 downto 8 ] ConfigRegP5 [ 7 downto 0 ] ConfigRegP5 [ 15 downto 8 ] ConfigRegP0 Validation Register Validation Register Validation Register Validation Register Validation Register Port 0 Configuration Register ConfigRegP1 Port 1 Configuration Register ConfigRegP2 Port 2 Configuration Register ConfigRegP3 Port 3 Configuration Register ConfigRegP4 Port 4 Configuration Register ConfigRegP5 Port 5 Configuration Register Reserved Reserved Reserved Reserved Reserved IFGConfigP0 IFGConfigP1 IFGConfigP2 IFGConfigP3 IFGConfigP4 IFGConfigP5 Reserved Reserved Reserved FlowContrReg [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] IFGConfigP0 [7 downto 0] IFGConfigP1 [7 downto 0] IFGConfigP2 [7 downto 0] IFGConfigP3 [7 downto 0] IFGConfigP4 [7 downto 0] IFGConfigP5 [7 downto 0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] FlowControlReg [7 downto 0] Flow Control Register FlowControlReg [15 downto 8] BPTimeValue [7 downto 0] BPTimeValue Backpressure Time Value Register BPTimeValue [15 downto 8] FCBaseAddress [47 downto 40] FCBaseAddress Flow Control Source Base Address Register FCBaseAddress [39 downto 32] FCBaseAddress [31 downto 24] FCBaseAddress [23 downto 16] FCBaseAddress [15 downto 8] FCBaseAddress [7 downto 0] Reserved BroadcastConfig [ 7 downto 0 ] BroadcastConfig Broadcast Configuration Register BroadcastConfig [15 downto 8 ] [7:0] [7:0] Confidential. Copyright © 2003, IC Plus Corp. 25/51 Port 0 IFG Configuration Port 1 IFG Configuration Port 2 IFG Configuration Port 3 IFG Configuration Port 4 IFG Configuration Port 5 IFG Configuration July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Physical Address Bits Validation Bit Register Name DESCRIPTION EEPROM 3fh 40h 41h 42h 43h 44h 45h 46h 47h 48h 49h 4ah 4bh – 4eh 4fh 50h 51h 52h 53h 54h 55h 56h 57h 58h 59h 5ah 5bh 5ch 5dh 5eh 5fh – 6fh 70h 71h 72h 73h 74h 75h 76h [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] [7:0] IPTosMapping [ 7 downto 0 ] IPTosMapping IP Priority Mapping Register IPTosMapping [15 downto 8 ] VLANPriMapping [7 downto 0 ] VLANPriMapping VLAN Priority Mapping Register VLANPriMapping [15 downto 8 ] CoSBandwidth [7 downto 0 ] CoSBandwidth CoS Bandwidth Register CoSBandwidth [15 downto 8 ] [7 downto 0 ] Reserved Register [15 downto 8 ] CosConfig [7 downto 0] CoSConfig CoS Configuration Register PortMirrorReg [7 downto 0 ] PortMirrorReg Port Mirroring Configuration Register PortMirrorReg [15 downto 8 ] GeneralConfig [ 7 downto 0 ] GeneralConfig General Configuration Register Reserved PortVLANEn PortVLANEn Port VLAN Enable Register VLAN0Reg [ 7 downto 0] PVIDEn ID 0 virtual LAN Register Reserved VLAN1Reg [ 7 downto 0] PVIDEn ID 1 virtual LAN Register Reserved VLAN2Reg [ 7 downto 0] PVIDEn ID 2 virtual LAN Register Reserved VLAN3Reg [ 7 downto 0] PVIDEn ID 3 virtual LAN Register Reserved VLAN4Reg [ 7 downto 0] PVIDEn ID 4 virtual LAN Register Reserved Reserved Reserved Reserved Reserved Reserved Reserved DataWriteReg [15 downto 8 ] Data Write Register DataWriteReg [ 7 downto 0 ] PhyAddress [ 7 downto 0 ] Phy Address Register RegAddress [ 7 downto 0 ] Phy's Register Address Register IOControl [ 7 downto 0 ] IO Control Register DataReadReg [ 7 downto 0 ] Data Read Register DataReadReg [ 15 downto 8 ] Confidential. Copyright © 2003, IC Plus Corp. 26/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3 10.3.1 Register Description Validation Register - Address: 00h - 04h 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 ValidationReg ConfigRegP0 ConfigRegP1 ConfigRegP2 ConfigRegP3 ConfigRegP4 ConfigRegP5 should be programmed to "0" should be programmed to "0" should be programmed to "0" IFGConfigP0 IFGConfigP1 IFGConfigP2 IFGConfigP3 IFGConfigP4 IFGConfigP5 should be programmed to "0" should be programmed to "0" should be programmed to "0" FlowContrReg BPTimeValue TrunkConfig BroadcastConfig IPTosMapping VLANPriMapping QoSBandwidth Reserved QoSConfig PortMirrorReg GeneralConfig not used PortVLANEn not used Confidential. Copyright © 2003, IC Plus Corp. 27/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Bit(s) Field Description 39 – 0 ValidationReg EEPROM’s Configuration Registers Validation Register ValidationReg ConfigRegP0 ConfigRegP1 ConfigRegP2 ConfigRegP3 ConfigRegP4 ConfigRegP5 IFGConfigP0 IFGConfigP1 IFGConfigP2 IFGConfigP3 IFGConfigP4 IFGConfigP5 FlowContrReg BPTimeValue BroadcastConfig IPTosMapping VLANPriMapping CoSBandwidth Reserved CoSConfig PortMirrorReg GeneralConfig PortVLANEn – each bit from this register corresponds to an EEPROM Configuration Register. To enable the use of a certain configuration register, a value of ‘1’ shall be written to its corresponding bit from the validation register. – validation bit for Port 0 Configuration Register – validation bit for Port 1 Configuration Register – validation bit for Port 2 Configuration Register – validation bit for Port 3 Configuration Register – validation bit for Port 4 Configuration Register – validation bit for Port 5 Configuration Register (10/100 only) – validation bit for Port 0 IFG Configuration Register – validation bit for Port 1 IFG Configuration Register – validation bit for Port 2 IFG Configuration Register – validation bit for Port 3 IFG Configuration Register – validation bit for Port 4 IFG Configuration Register – validation bit for Port 5 IFG Configuration Register (10/100 only) – validation bit for Flow Control Register – validation bit for Back Pressure Time Value Register – validation bit for Broadcast Configuration Register – validation bit for IP Priority Mapping Register – validation bit for VLAN Priority Mapping Register – validation bit for CoS Bandwidth Register – Reserved Register – validation bit for CoS Configuration Register – validation bit for Port Mirroring Register – validation bit for General Configuration Register – validation bit for Port VLAN Enable Register Confidential. Copyright © 2003, IC Plus Corp. 28/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.2 Port [X] Configuration Register - Addresses: 05h – 0eh - Note: x is in range 0 to 4 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 ConfigRegP[x] ANMode ForceIntMode Speed Duplex ForceLink not used TxDisable RxDisable DisFdxFCTx DisFdxFCRx DisBackPres PortPriorityEn PortPriority Bit(s) Field Description 1-0 2 4-3 5 6 7 8 9 10 11 12 13 15 - 14 ANMode ForceIntMode Speed Duplex ForceLnk not used TxDisable RxDisable DisFdxFCTx DisFdxFCRx DisBackPres PortPriorityEn PortPriority Operating mode selection for the phy configuration/polling entity Internal speed and duplex selection enforcement Internal speed selection (10 Mbps/100Mbps/1000Mbps) Internal duplex selection (full/half) Force Link Status to ‘ON’ not used Disable transmit MAC Disable receive MAC Disable flow control in full duplex on transmit side Disable flow control in full duplex on receive side Disable backpressure Enable port priority Sets the priority class(class 0, class 1, class 2, class 3) ANMode This field selects the way auto-negotiation advertisements are configured by theTC9205M’s physical layer management polling entity and the way Phy speed and duplex modes are extracted from management registers. It can enable EEPROM forced modes that also use Duplex and Speed bits below to configure the Phy mode. 00 – Normal Mode 01 – Advertise one mode 10 – Advertise multiple modes 11 – Disable auto-negotiation Default is “00”(0). ForceIntMode This bit selects the source of internal port mode configuration. When this bit is ‘0’ the port's speed and duplex is configured according to Phy polling results, otherwise it is set as indicated by following Speed and Duplex. Default is ‘0’. Confidential. Copyright © 2003, IC Plus Corp. 29/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet Speed Used by the physical layer management polling entity to configure physical layer’s speed mode when EEPROM forced modes are selected. Additionally this bit can be used to directly force the internal speed mode. 00 – 10M 01 – 100M 10 – 1000M These bits should be programmed to 10M mode or 100M mode for port 5. Duplex Used by the physical layer management polling entity to configure physical layer’s duplex mode when EEPROM forced modes are selected. Additionally this bit can be used to directly force the internal duplex mode. ForceLnk Setting this bit to '1' will force the internal polled link status of the corresponding port to “ON”. Default is ‘0’. TxDisable Setting this bit to '1' will disable the transmission MAC device, thus inhibiting transmission on the corresponding port. Default is ‘0’. RxDisable Setting this bit to '1' will disable the receiving MAC device, thus inhibiting receiving on the corresponding port. Default is ‘0’. DisFdxFCTx Setting this bit to '1' will disable flow control operation for full duplex mode on transmit side (transmission of pause frames). Default is ‘0’. DisFdxFCRx Setting this bit to '1' will disable flow control operation for full duplex mode on receive side (pausing frame transmission). Default is ‘0’. DisBackPres Setting this bit to '1' will disable flow control for half duplex mode (backpressure). Default value is its corresponding DisBkPr pin value. PortPriorityEn Setting this bit to '1' will force the corresponding port to the priority set within the PortPriority field, otherwise the pin configuration will be used. PortPriority This bit will set one of the four priority classes on the corresponding port. Confidential. Copyright © 2003, IC Plus Corp. 30/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.3 Port [X] IFG Configuration Register - Addresses: 19h – 1dh 7 6 5 4 3 2 1 0 IFGConfigP[x] IFGConfig RedGbBndw GbBndwSel not used Bit(s) Field Description 3-0 4 6-5 7 IFGConfig RedGbBndw GbBndwSel not used Interframe Gap Configuration Reduced gigabit bandwidth Gigabit bandwidth selection not used IFGConfig These bits are used to set the minimum IFG with 32 bit time resolution. The default matches the standard minimum IFG of 96 bit time: ‘0011’ (3). IFGConfig 0001 0010 0011 0100 … 1111 0000 IFG (bit time) 32 64 96 (default) 128 … 480 512 RedGbBndw Setting this bit to '1', will enable a 1000Mbps port to reduce its transmission bandwidth to the percentage indicated by the GbBndwSel field. Setting this bit to ‘0’, the GbBndwSel field will be meaningless and the port will make use of its full transmission bandwidth. This bit is in effect only when the port’s speed mode is 1000Mbps. Default is ‘0’. GbBndwSel Transmission bandwidth enforcement when in 1000 Mbps mode. GbBndwSel 00 01 10 11 Transmission bandwidth 50% 66% 80% 90% This feature can be used to avoid congestion in some LAN nodes without flow control capabilities or to avoid server overloads Confidential. Copyright © 2003, IC Plus Corp. 31/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.4 Flow Control Register - Address: 2Eh, 2Fh 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 FlowControlReg FullBP BPMaxCol BPSkip1 CarrBP DisFwPres DisBPBk FrcFdxFC FrcFdxFCGb DirFCAdr not used Bit(s) Field Description 0 6-1 7 8 9 10 11 12 13 15 - 14 FullBP BPMaxCol BPSkip1 CarrBp DisFwPres DisBPBk FrcFdxFC FrcFdxFCGb DirFCAdr not used Full backpressure Maximum number of collisions for backpressure Skip one packet for backpressure operation Carrier backpressure Disable forwardpresure Disable backoff during backpressure Force full duplex flow control in 10/100 Mbps Force full duplex flow control in 1000 Mbps Direct flow control addressing not used FullBP In normal operation the backpressure process is executed until flow control condition disappears or until the time limit for backpressure is reached. This limit is based on EEPROM’s BPTimeValue register. When this configuration is ‘0’ the backpressure process will be also limited from exceeding the value contained in BPMaxCol field. Default value is its corresponding FullBP pin value. BPMaxCol Specifies the number of consecutive collisions that will determine TC9205M to quit backpressure (see the setting above). Default is ‘011100’ (28). BPSkip1 If FullBP setting is configured to ‘0’ and a number of BPMaxCol collisions is reached, the MAC will ensure receiving the next packet without colliding it if this bit is set to ‘1’, after which will resume the backpressure. Otherwise it will completely quit backpressure waiting for a new XOFF command from internal flow control entity. Default is ‘0’. CarrBp Setting this bit to ‘1’ will enable carrier-based backpressure, otherwise only collision-based backpressure is executed. Default value is its corresponding CarrBp pin value. Confidential. Copyright © 2003, IC Plus Corp. 32/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet DisFwPres Whenever backpressure is enabled, in case of extreme congestion (memory overload) forward pressure is also executed unless deactivated by this bit. Forward pressure is never executed when backpressure is disabled. Setting this bit to ‘1’ will disable forward pressure for all half duplex ports. Default is ‘0’. DisBPBk Setting this bit to ‘1’ will cause no backoff to be executed when a half duplex port is in backpressure mode. This means a new collision can be forced immediately after the previous one if carrier sense is observed. Setting this bit to ‘0’ will enable a very aggressive backoff to be executed (recommended). Default value is its corresponding DisBPBk pin value. FrcFdxFC Setting this bit to ‘1’ will instruct TC9205M to disregard the auto-negotiation result for the full duplex flow control ability. Link partner will be considered full duplex flow control able. This setting is effective only for ports configured in 10/100 Mbps speed modes. Default is ‘0’. FrcFdxFCGb Setting this bit to ‘1’ will instruct TC9205M to disregard the auto-negotiation result for the full duplex flow control ability. Link partner will be considered able to execute symmetric and asymmetric towards link partner full duplex flow control. This setting is effective only for ports configured in 1000 Mbps speed mode. Default is ‘0’. DirFCAdr Setting this bit to ‘1’ will enable direct flow control addressing mechanism, otherwise direct flow control addressing is disabled. Default is ‘0’. Confidential. Copyright © 2003, IC Plus Corp. 33/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.5 Backpressure Time Value Register - Address: 31h, 30h 15 14 13 12 11 10 9 8 31h 7 6 5 4 3 2 1 0 BPTimeValue 30h BPTimeValue Bit(s) Field Description 15 – 0 BPTimeValue Backpressure time value A 16 bit value used to compute internal time value for backpressure operation. Default value is ‘0000100000000000’(2048). BPTimeValue 10.3.6 Flow Control Port Base Address Register - Address: 32h, 33h, 34h, 35h, 36h, 37h 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 FCBaseAddress FCBaseAddress Bit(s) Field Description 47 – 0 FCBaseAddress Source port base address for flow control packets FCBaseAddress 10.3.7 Contains a 48 bit MAC address used to generate the individual port address used in direct flow control addressing. The port addresses are obtained by incrementing this base address and assigning the result to the TC9205M’s ports starting with port 0. The least significant 5 bits of this address will be ignored and replaced with ‘0’, so these bits will encode the port number in the actual port address. Reserved - Address: 3Ch This register should be set to “0”. Confidential. Copyright © 2003, IC Plus Corp. 34/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.8 Broadcast Configuration Register - Address: 3Dh, 3Eh 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 BroadcastConfig SrcLoadTrsh FCBcstEn FCBcstMode not used ThrotTrsh BcstThrot Reserved not used Bit(s) Field Description 4-0 5 6 7 11 -8 12 14 - 13 15 SrcLoadTrsh FCBcstEn FCBcstMode not used ThrotTrsh BcstThrot Reserved not used Source port loading limit for broadcast Flow control broadcast enable Flow control broadcast mode not used Global buffer pool loading threshold for broadcast Broadcast throttling (bandwidth) not used SrcLoadTrsh The maximum number of frame buffers used on each receiving port for broadcast. Default is ‘11000’ (24). FCBcstEn Setting this bit to ‘1’ will enable flow control mechanism for broadcast frames. Setting this bit to ‘0’ will cause broadcast packets to be dropped on queue overflow condition. Default value is its corresponding FcBcstEn pin value. FCBcstMode This bit selects the source of flow control for broadcast operation: ‘0’ – broadcast flow control is issued on source port basis ‘1’ – broadcast flow control is issued by any of the two broadcast queues Default value is its corresponding FcBcstMode pin value. ThrotTrsh Setting this bit to ‘1’ will enable bandwidth based broadcast throttling. The value represents the maximum percentage of the full receiving bandwidth than can be used for broadcast. Default is ‘00101’(5%). BcstThrot Setting this bit to ‘1’ will enable throttling for broadcast frames. Default value is its corresponding BcstThrot pin value. Confidential. Copyright © 2003, IC Plus Corp. 35/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.9 IP Priority Mapping Register - Address: 3Fh, 40h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 IPTosMapping Tos0Class Tos1Class Tos2Class Tos3Class Tos4Class Tos5Class Tos6Class Tos7Class Bit(s) Field Description 1-0 3-2 5-4 7-6 9-8 11 - 10 13 - 12 15 - 14 Tos0Class Tos1Class Tos2Class Tos3Class Tos4Class Tos5Class Tos6Class Tos7Class priority mapping for IP precedence 0 priority mapping for IP precedence 1 priority mapping for IP precedence 2 priority mapping for IP precedence 3 priority mapping for IP precedence 4 priority mapping for IP precedence 5 priority mapping for IP precedence 6 priority mapping for IP precedence 7 Tos[x]Class This field maps the IP priority level x found in the incoming frame to one of the four priority classes. The table bellow shows the mapping. Tos[x]Class 00 01 10 11 CoS Class 0 priority Class 1 priority Class 2 priority Class 3 priority x ranges in the field 0 to 7. Confidential. Copyright © 2003, IC Plus Corp. 36/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.10 VLAN Priority Mapping Register - Address: 41h, 42h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 VLANPriMapping Pri0Class Pri1Class Pri2Class Pri3Class Pri4Class Pri5Class Pri6Class Pri7Class Bit(s) Field Description 1-0 3-2 5-4 7-6 9-8 11 - 10 13 - 12 15 - 14 Pri0Class Pri1Class Pri2Class Pri3Class Pri4Class Pri5Class Pri6Class Pri7Class priority mapping for VLAN user_priority 0 priority mapping for VLAN user_priority 1 priority mapping for VLAN user_priority 2 priority mapping for VLAN user_priority 3 priority mapping for VLAN user_priority 4 priority mapping for VLAN user_priority 5 priority mapping for VLAN user_priority 6 priority mapping for VLAN user_priority 7 Pri[x]Class This field maps the VLAN priority level x found in the incoming frame to one of the four priority classes. The table bellow shows the mapping. Pri[x]Class 00 01 10 11 CoS Class 0 priority Class 1 priority Class 2 priority Class 3 priority x ranges in the field 0 to 7. Confidential. Copyright © 2003, IC Plus Corp. 37/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.11 CoS Bandwidth Register - Address: 43h, 44h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CoSBandwidth Cos0Weight not used Cos1Weight not used Cos2Weight not used Cos3Weight not used Bit(s) Field Description 2-0 3 6-4 7 10 - 8 11 14 - 12 15 CoS0Weight not used CoS1Weight not used CoS2Weight not used CoS3Weight not used 000 not used The weight for priority class 1 queue not used The weight for priority class 2 queue not used The weight for priority class 3 queue not used CoS[y]Weight This field sets the weight for its associated priority queue. The transmission bandwidth percentage given to the associated queue is set by the formula below: 3 Queue y’s priority [%] = F(CoS[y]Weight) * 100 / Σ ( F(CoS[n]Weight) ) n=0 Note: y ranges in 0 to 3 and F is a tabled function described bellow: f(“000”) = 1 f(“001”) = 2 f(“010”) = 4 f(“011”) = 8 10.3.12 f(“100”) = 16 f(“101”) = 32 f(“110”) = not used f(“111”) = not used Reserved Register - Address: 45h, 46h Confidential. Copyright © 2003, IC Plus Corp. 38/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.13 CoS Configuration Register - Address: 47h 7 6 5 4 3 2 1 0 CosConfig EnIPPr EnVLANPr CosResolution VLANPrec DefCoS not used Bit(s) Field Description 0 1 2 3 5-4 7-6 EnIPPr EnVLANPr CoSResolution VLANPrec DefCoS not used Enable IP priority Enable VLAN priority CoS Resolution Mode VLAN Precedence Default Class of Service not used EnIPPr Setting this field to ‘1’ will enable IP prioritization. CoS resolution function will consider TOS Precedence bits from IP Header. Default value is its corresponding EnIPPr pin value. EnVLANPr Setting this field to ‘1’ will enable VLAN prioritization. CoS resolution function will consider user-priority bits (TCI field) from 802.1Q VLAN Tag Header. Default value is its corresponding EnVLANPr pin value. CoSResolution When this bit is set to ‘0’ the CoS resolution function will assign to each frame the highest CoS obtained from all enabled prioritization sources. Setting this field to ‘1’, the resolution function will perform a prioritized parsing of CoS sources, depending of VLANPrec bit. The CoS will be assigned considering the first source that has been found within the frame (VLAN or IP). If none of the VLAN or IP prioritization sources have been found then the port based prioritization is considered if enabled, otherwise the frame will be assigned the default CoS. Default is ‘1’. VLANPrec If CoSResolution field is set to ‘0’, this field is meaningless. When CoSResolution field is set to ‘1’, this field will set the prioritization sources precedence for the resolution function. A value of ‘1’ will set the following precedence (from highest to lowest): VLAN priority, IP priority, port priority. A value of ‘0’ will set the following precedence (from highest to lowest): IP priority, VLAN priority, port priority. Default is ‘0’. DefCoS This is the CoS a frame will receive when port based prioritization is disabled and both VLAN and IP headers are not found (or the corresponding VLAN / IP prioritizations are also disabled). This configuration can be used especially when CoSResolution setting is ‘0’. Default is “01” (CoS 1). Confidential. Copyright © 2003, IC Plus Corp. 39/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.14 Port Mirroring Register - Address: 48h, 49h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PortMirrorReg Source Port not used Destination port not used EnRxMirror EnTxMirror not used not used not used Bit(s) Field Description 2-0 3 6-4 7 8 9 10 11 15 - 12 SourcePort not used DestinationPort not used EnRxMirror EnTxMirror not used not used not used Source port(monitored port) not used Destination port(monitoring port) not used Enable mirroring on receiving packets Enable mirroring on transmitting packets not used not used not used SourcePort One of the eight ports of the switch that is intended for been monitored through port mirroring feature. If enabled, the traffic on this port can be additionally forwarded to the monitoring port. Only one port can be monitored at a time. DestinationPort One of the eight ports address’s of the switch that is intended to monitor one of the other ports through port mirroring feature. This port will receive all traffic on the mirror source port. EnRxMirror Setting this bit to ‘1’, the destination port will mirror all the source port’s incoming traffic. EnTxMirror Setting this bit to ‘1’, the destination port will mirror all the source port’s outgoing traffic. Confidential. Copyright © 2003, IC Plus Corp. 40/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.15 General Configuration Register - Address: 4ah 7 6 5 4 3 2 1 0 G en eralC o n fig AgeT imeR eg D isA ging F wdBadC R C F wdU ndersize R ejM C T R ejR D A not used Bit(s) Field Description 1–0 2 3 4 5 6 7 AgeTimeReg DisAging FwdBadCRC FwdUndersize RejMCT RejRDA not used Sets the aging time Disable aging Forward bad CRC packets Forward undersized packets Reject MAC Control Type frames Reject 802.1D Reserved Group Addresses DA frames not used AgeTimeReg Allows 4 values for the aging time to be chosen from. 00 – 300 seconds 01 – 600 seconds 10 – 900 seconds 11 – 1200 seconds Default is ‘01’(600 seconds). DisAging Setting this bit to '1' will cause TC9205M to disable its aging mechanism for the stored MAC addresses. Default is '0'. FwdBadCRC Setting this bit to ‘1’ will enable forwarding of bad CRC packets. Default is '0'. FwdUndersize Setting this bit to ‘1’ will enable forwarding of undersized packets. Default is '0' RejMCT Setting this bit to ‘1’ will configure the switch to filter all frames with MAC Control Type (type 8808). Default is ‘0’. RejRDA Setting this bit to ‘1’ will configure the switch to filter all frames with 802.1D Reserved Group Destination Address except for Bridge Group Address (01-80-C2-00-00-00). Default value is its corresponding RejRDA pin value. Confidential. Copyright © 2003, IC Plus Corp. 41/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.16 Port VLAN Enable Register - Address: 4fh 7 6 5 4 3 2 1 0 P o rt V L A N E n VLAN0 VLAN1 VLAN2 VLAN3 VLAN4 R e s e rv e d R e s e rv e d R e s e rv e d Bit(s) Field Description 0 1 2 3 4 5 6 7 VLAN0 VLAN1 VLAN2 VLAN3 VLAN4 Reserved Reserved Reserved VLAN 0 enable VLAN 1 enable VLAN 2 enable VLAN 3 enable VLAN 4 enable VLAN[y] Enables/disables VLAN y. (y is in range 0 to 4) Confidential. Copyright © 2003, IC Plus Corp. 42/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.3.17 VLAN [Y] Register - Address: 50h, 52h, 54h, 56h, 58h 7 6 5 4 3 2 1 0 V L A N [y ]R e g P o rt0 P o rt1 P o rt2 P o rt3 P o rt4 not used not used not used Bit(s) Field Description 0 1 2 3 4 5 6 7 Port0 Port1 Port2 Port3 Port4 not used not used not used Port 0 membership to VLAN y Port 1 membership to VLAN y Port 2 membership to VLAN y Port 3 membership to VLAN y Port 4 membership to VLAN y If used, it should be a member of all VLANgroups. Port[x] Port x membership to VLAN y. ‘0’ – Port x is not a member of VLAN y ‘1’ – Port x is a member of VLAN y Confidential. Copyright © 2003, IC Plus Corp. 43/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.4 Writing / Reading PHY management registers via EEPROM interface The following set of registers allows read/write operations through MDIO interface for direct managing of physical layer devices. This feature is available through virtual EEPROM mode. 10.4.1 Data Write Register - Address: 70h, 71h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DataWriteReg DataW riteReg Bit(s) Field Description 15 - 0 DataWriteReg MDIO Data Write Register DataWriteReg 10.4.2 – Contains a 16 bit data word used to write a PHY management register. Physical Layer Device Address Register - Address: 72h 7 6 5 4 3 2 1 0 PhyAddress DeviceAddress(4-0) not used Bit(s) Field Description 4–0 7–5 DeviceAddress not used Physical layer device address register not used DeviceAddress – Contains a 5-bit word used as device address in MDIO operations. Confidential. Copyright © 2003, IC Plus Corp. 44/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.4.3 Physical Layer’s Register Address Register - Address: 73h 7 6 5 4 3 2 1 0 RegAddress RegAddress(4-0) not used Bit(s) Field Description 4–0 7–5 RegAddress not used Physical layer device’s register address register not used RegAddress 10.4.4 – Contains a 5 bit word used as register address in MDIO operations. IO Status Control Register - Address: 74h 7 6 5 4 3 2 1 0 IOControl R/W ValidDataRead MDIOError not used Bit(s) Field Description 0 1 2 3–7 R/ W ValidDataRead MDIOError not used Operation code Valid Data Read MDIO Error not used R/ W – Operation Code. Setting this bit to ‘1’ will select read operation otherwise will select write operation. MDIO Read / Write operation is started by performing a virtual EEPROM write to IOControl register. ValidDataRead – Indicates if DataReadReg register contains valid data. ‘1’- data valid ‘0’- read not performed yet MDIOError – This bit signals errors on MDIO line. ‘1’- MDIO error. ‘0’- MDIO read successful. Confidential. Copyright © 2003, IC Plus Corp. 45/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 10.4.5 Data Read Register - Address: 76h, 75h 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 76h DataReadReg 75h DataReadReg Bit(s) Field Description 15 – 0 DataReadReg MDIO Data Read Register DataReadReg – Contains a 16 bit data word read from a PHY management register. Write Operation. Before starting a write operation the following registers need to be set : PhyAddress – written with MDIO device address RegAddress – written with MDIO register address DataWriteReg – data word to be write to selected register The write operation is then started by performing a write to IOControl register with bit 0 cleared. Read Operation. Before starting a read operation the following registers need to be set : PhyAddress – written with MDIO device address RegAddress – written with MDIO register address The write operation is then started by performing a write to IOControl register with bit 0 set. Subsequently, the IOControl register needs to be monitored in order to detect MDIO operation error reported via IOControl’s bit 2. The ValidDataRead bit is always read as ‘1’ unless the EEPROM line is driven at over 1MHz speed. If no error occurred then data can be read from DataReadReg. Confidential. Copyright © 2003, IC Plus Corp. 46/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 11 Timing Requirements 11.1 GMII / MII Receive Timing Requirements Symbol Rx_Clk Rx_Clk TsRx_Clk ThRx_Clk Description Receive clock period GMII Receive clock period MII RxDv, RxData to Rx_Clk rising setup time RxDv, RxData to Rx_Clk rising hold time Min. Typ. Max. Unit 2 0.5 8 40 - - ns ns ns ns Min. Typ. Max. Unit 1 8 40 - 4 ns ns ns T R x_C lk R x_C lk R xD v T hR x_C lk R xD a ta T sR x_C lk G M II / M II R eceive 11.2 GMII / MII Transmit Timing Symbol TTx_Clk TTx_Clk TdTx_Clk Description Transmit clock period GMII Transmit clock period MII Tx_En, TxData to Tx_Clk rising delay T Tx_Clk Tx_Clk Tx_En T dTx_Clk TxData GMII / MII Transmit Confidential. Copyright © 2003, IC Plus Corp. 47/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 11.3 PHY Management (MDIO) Timing Symbol Tch Tcl Tcm Tmd Tmh Description MDCK High Time MDCK Low Time MDCK period MDIO output delay MDIO hold time Min. Typ. Max. Unit 10 300 300 600 - 50 - ns ns ns ns ns M D C lk Tms T mh M D IO M D IO W r ite C ic le M D C lk T cl T ch T md T cm M D IO M D IO R e a d C ic le Confidential. Copyright © 2003, IC Plus Corp. 48/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 11.4 EEPROM Timing Symbol Description Min. Typ. Max. Unit fSCL tLOW tHIGH tBUF SCL frequency Clock Pulse Width Low Clock Pulse Width High Time the bus must be free before starting a new transmission Start Hold Time Start Setup Time Data Hold Time Data Setup Time Stop Set-up Time Clock Low to Data Out Valid Data Out Hold Time 10 10 5 66.6 - - KHz us us us 5 5 5 5 5 0 - 4.9 - us us us us us us us tHD.STA tSU.STA tHD.DAT tSU.DAT tSU.STO tAA tDH tLOW tHIGH SCL tSU.STA SDA (output) SDA (input) tHD.STA tHD.DAT tSU.DAT tSU.STO tBUF VALID VALID tDH tAA VALID VALID EEPROM Interface Timing Confidential. Copyright © 2003, IC Plus Corp. 49/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 12 Electrical Specifications 12.1 ABSOLUTE MAXIMUM RATINGS Permanent device damage may occur if Absolute Maximum Ratings are exceeded. Functional operation should be restricted to the conditions as specified in the Recommended Operating Conditions section. Exposure to the Absolute Maximum Conditions for extended periods may affect device reliability. PARAMETER Supply Voltage I/O Core Input Voltage Output Voltage Storage Temperature Operation Temperature Latch-up Current SYMBOL VDDI/O VDDCore VI VO TSTG TOPT ILATCH MIN. – 0.5 – 0.5 – 0.5 – 0.5 -65 0 MAX. 4.6 2.5 6 6 +150 70 UNIT V V V V °C °C mA >500 Note: The maximum ratings are the limit value that must never be exceeded even for short time. 12.2 RECOMMENDED OPERATING CONDITIONS The recommended operating conditions represents recommended values that assure normal logic operation. As long as the device is used within the recommended operating conditions, the electrical characteristics (DC and AC characteristics) are guaranteed. PARAMETER Supply Voltage I/O Core Junction Temperature Low-level input voltage High-level input voltage 12.3 SYMBOL VDDI/O VDDCore Tj VIL VIH MIN. 3.0 1.95 TYP. 3.3 2.0 MAX. 3.6 2.05 125 1.0 5.5 UNIT V V °C V V SYMBOL VOL VOH IOL IOH VT VT+ MIN. TYP. MAX. 0.4 2.4 8.8 12.8 1.46 1.66 14.1 25.7 1.60 1.75 17.0 40.0 1.76 1.79 UNIT V V mA mA V V VT- 0.93 1.01 1.06 V +/-10 +/-10 +/-1000 +/-1000 nA nA 77 69 122 127 KΩ KΩ -0.5 2.0 DC CHARACTERISTICS PARAMETER Output low voltage Output high voltage Low level output current @VOL=0.4V High level output current @VOH=2.4V Input Treshold point GMII Input (Schmitt trig.) Low to High treshold point *1 GMII Input (Schmitt trig.) High to Low treshold point *1 Input leakage current (High and Low) Tri-state output leakage current (High and Low) Pull-up resistor Pull-down resistor Note: *1 II IOZ RPU RPD 56 51 This refers to all inputs described as GMII in the Pin Listing section. Confidential. Copyright © 2003, IC Plus Corp. 50/51 July 30, 2003 TC9205M-DS-R03 TC9205M Preliminary Data Sheet 13 Package Detail 0.30 S C A B 0.10 S C b3 E3 E2 E DETAIL B D3 A D2 D V T B W U R P N M L K J H G F E D C B A A A1 A2 b c D D1 D2 D3 E E1 E2 E3 e ddd ddd C e E1 1 B Symbol C A1 e A Y 2 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 A' D1 Dimensions In mm Min. Nom. Max. 2.20 2.33 2.50 -----0.60 -----1.12 1.17 1.22 -----0.75 -----0.51 0.56 0.61 26.80 27.00 27.20 -----24.13 -----23.80 24.00 24.20 17.95 18.00 18.05 26.80 27.00 27.20 -----24.13 -----23.80 24.00 24.20 17.95 18.00 18.05 -----1.27 ---------------0.15 30° TYP A2 Dimensions In inch Min. Nom. Max. 0.087 0.092 0.098 -----0.024 -----0.044 0.046 0.048 -----0.030 -----0.020 0.022 0.024 1.055 1.063 1.071 -----0.950 -----0.937 0.945 0.953 0.707 0.709 0.711 1.055 1.063 1.071 -----0.950 -----0.937 0.945 0.953 0.707 0.709 0.711 -----0.050 ---------------0.006 30° TYP DETAIL A' Note: 1. CONTROLLING DIMENSION : MILLIMETER. 2. PRIMARY DATUM C AND SEATING PLANE ARE DEFINED BY THE SPHERICAL CROWNS OF THE SOLDER BALLS. 3. DIMENSION b IS MEASURED AT THE MAXIMUM SOLDER BALL DIAMETER, PARALLEL TO PRIMARY DATUM C. 4. THERE SHALL BE A MINIMUM CLEARANCE OF 0.25 mm BETWEEN THE EDGE OF THE SOLDER BALL AND THE BODY EDGE. IC Plus Corp. Headquarters 10F, No.47, Lane 2, Kwang-Fu Road, Sec. 2, Hsin-Chu City, Taiwan 300, R.O.C. TEL : 886-3-575-0275 FAX : 886-3-575-0475 Website: www.icplus.com.tw Confidential. Copyright © 2003, IC Plus Corp. Sales Office 4F, No. 106, Hsin-Tai-Wu Road, Sec.1, Hsi-Chih, Taipei Hsien, Taiwan 221, R.O.C. TEL : 886-2-2696-1669 FAX : 886-2-2696-2220 51/51 July 30, 2003 TC9205M-DS-R03