RTL8380M VB CG - NP
RTL8380M VB CG - NP
RTL8382M-VB-CG
MULTI-LAYER MANAGED 28*10/100/1000M-PORT SWITCH CONTROLLER
DATASHEET
(CONFIDENTIAL: Development Partners Only)
Rev. 1.2
30 January 2016
Track ID:
COPYRIGHT
©2016 Realtek Semiconductor Corp. All rights reserved. No part of this document may be reproduced,
transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any
means without the written permission of Realtek Semiconductor Corp.
DISCLAIMER
Realtek provides this document ‘as is’, without warranty of any kind. Realtek may make improvements
and/or changes in this document or in the product described in this document at any time. This document
could include technical inaccuracies or typographical errors.
TRADEMARKS
Realtek is a trademark of Realtek Semiconductor Corporation. Other names mentioned in this document
are trademarks/registered trademarks of their respective owners.
REVISION HISTORY
Revision Release Date Summary
1.0 2014/01/20 First release.
1.1 2016/1/8 Remove the support for 10M-EEE and I2C master for EEPROM.
1.2 2016/6/30 Separate unmanaged series RTL8382L.
Table of Contents
1. GENERAL DESCRIPTION .............................................................................................................................................. 1
2. FEATURES ......................................................................................................................................................................... 3
3. SYSTEM APPLICATIONS ............................................................................................................................................... 4
3.1. RTL8380M-VB: MANAGED 8*1000M UTP+2*1000BASE-X SWITCH ....................................................................... 4
3.2. RTL8382M-VB: MANAGED 28*1000M SWITCH VIA RTL8218B PHY ...................................................................... 5
3.3. RTL8382M-VB: MANAGED 20*1000M UTP+4*1000M COMBO SWITCH ................................................................. 6
3.4. RTL8382M-VB: MANAGED 24*1000M UTP+2*1000BASE-X SWITCH ..................................................................... 7
4. BLOCK DIAGRAMS ......................................................................................................................................................... 8
4.1. RTL8380M-VB BLOCK DIAGRAM .............................................................................................................................. 8
4.2. RTL8382M-VB BLOCK DIAGRAM .............................................................................................................................. 9
5. PIN ASSIGNMENTS AND DESCRIPTION (RTL8380M-VB) ................................................................................... 10
5.1. PIN ASSIGNMENTS FIGURE (RTL8380M-VB) ........................................................................................................... 10
5.2. PACKAGE IDENTIFICATION ......................................................................................................................................... 10
5.3. PIN ASSIGNMENTS TABLE CODES (RTL8380M-VB) ................................................................................................. 11
5.4. PIN ASSIGNMENTS TABLE (RTL8380M-VB) ............................................................................................................. 11
5.5. PIN DESCRIPTIONS (RTL8380M-VB) ........................................................................................................................ 16
5.5.1. 1000M Ethernet PHY MDI Interface Pins ............................................................................................................ 16
5.5.2. SGMII Interface Pins............................................................................................................................................ 18
5.5.3. 1000Base-X/100Base-FX Interface Pins .............................................................................................................. 18
5.5.4. DDR1/2 SDRAM Interface Pins ........................................................................................................................... 19
5.5.5. DDR3 SDRAM Interface Pins .............................................................................................................................. 20
5.5.6. Master Mode SPI Flash Interface Pins ................................................................................................................ 20
5.5.7. UART Interface Pins............................................................................................................................................. 21
5.5.8. LED Interface Pins ............................................................................................................................................... 21
5.5.9. GPIO Interface Pins ............................................................................................................................................. 21
5.5.10. EJTAG Interface Pins ...................................................................................................................................... 21
5.5.11. Configuration Strapping Pins .......................................................................................................................... 22
5.5.12. Miscellaneous Interface Pins ........................................................................................................................... 23
5.5.13. Power and Ground Pins .................................................................................................................................. 24
6. PIN ASSIGNMENTS AND DESCRIPTION (RTL8382M-VB) ................................................................................... 25
6.1. PIN ASSIGNMENTS FIGURE (RTL8382M-VB) ........................................................................................................... 25
6.2. PACKAGE IDENTIFICATION ......................................................................................................................................... 25
6.3. PIN ASSIGNMENTS TABLE CODES (RTL8382M-VB) ................................................................................................. 26
6.4. PIN ASSIGNMENTS TABLE (RTL8382M-VB) ............................................................................................................. 26
6.5. PIN DESCRIPTIONS (RTL8382M-VB) ........................................................................................................................ 44
6.5.1. 1000M Ethernet PHY MDI Interface Pins ............................................................................................................ 44
6.5.2. SGMII Interface Pins ............................................................................................................................................ 46
6.5.3. QSGMII Interface Pins ......................................................................................................................................... 46
6.5.4. 1000Base-X/100Base-FX Interface Pins .............................................................................................................. 47
6.5.5. DDR1/2 SDRAM Interface Pins ........................................................................................................................... 47
6.5.6. DDR3 SDRAM Interface Pins .............................................................................................................................. 48
6.5.7. Master Mode SPI Flash Interface Pins ................................................................................................................ 48
6.5.8. UART Interface Pins............................................................................................................................................. 49
6.5.9. LED Interface Pins ............................................................................................................................................... 49
6.5.10. GPIO Interface Pins ........................................................................................................................................ 49
6.5.11. EJTAG Interface Pins ...................................................................................................................................... 49
6.5.12. Configuration Strapping Pins .......................................................................................................................... 50
6.5.13. Miscellaneous Interface Pins ........................................................................................................................... 51
10/100/1000M Switch Controllers iii Track ID: Rev. 1.2
RTL8380M-VB/RTL8382M-VB
Datasheet
6.5.14. Power and Ground Pins .................................................................................................................................. 52
7. SWITCH FUNCTION DESCRIPTION ......................................................................................................................... 52
7.1. HARDWARE RESET AND SOFTWARE RESET................................................................................................................ 52
7.1.1. Hardware Reset .................................................................................................................................................... 52
7.1.2. Software Reset ...................................................................................................................................................... 52
7.2. CRYSTAL.................................................................................................................................................................... 53
7.3. IEEE 802.3AZ ENERGY EFFICIENT ETHERNET (EEE) ................................................................................................ 53
7.4. LAYER 2 LEARNING AND FORWARDING ..................................................................................................................... 53
7.4.1. Forwarding ........................................................................................................................................................... 53
7.4.2. Learning ............................................................................................................................................................... 53
7.4.3. DA/SA Block ......................................................................................................................................................... 54
7.5. PORT ISOLATION ........................................................................................................................................................ 54
7.6. IEEE 802.3X FLOW CONTROL ................................................................................................................................... 56
7.7. HALF DUPLEX BACKPRESSURE .................................................................................................................................. 57
7.7.1. Collision-Based Backpressure (Jam Mode) ......................................................................................................... 57
7.7.2. Carrier-Based Backpressure (I.e., Defer Mode) .................................................................................................. 57
7.8. LAYER 2 MULTICAST AND IP MULTICAST ................................................................................................................. 57
7.9. IEEE 802.1D/1W/1S (STP/RSTP/MSTP) ................................................................................................................... 58
7.10. IEEE 802.1P AND IEEE 802.1Q (VLAN) .................................................................................................................. 59
7.11. IEEE 802.1X (NETWORK ACCESS CONTROL) ............................................................................................................ 60
7.12. RESERVED MULTICAST ADDRESS HANDLING ............................................................................................................ 61
7.13. LAYER 2 TRAFFIC SUPPRESSION (STORM CONTROL) ................................................................................................. 62
7.14. PIE (PACKET INSPECTION ENGINE) ............................................................................................................................ 62
7.14.1. Ingress ACL ..................................................................................................................................................... 62
7.15. INPUT BANDWIDTH CONTROL AND ACL TRAFFIC METER ......................................................................................... 63
7.15.1. Input Bandwidth Control ................................................................................................................................. 63
7.15.2. ACL Traffic Meter............................................................................................................................................ 63
7.16. IEEE 802.3AD LINK AGGREGATION PROTOCOL ........................................................................................................ 63
7.17. IEEE 802.1AD VLAN STACKING............................................................................................................................... 64
7.18. QUALITY OF SERVICE (QOS) ...................................................................................................................................... 65
7.19. PACKET SCHEDULING (WRR AND WFQ) .................................................................................................................. 66
7.20. PACKET DROP ALGORITHM (TD) ............................................................................................................................... 67
7.21. EGRESS PACKET REMARKING .................................................................................................................................... 67
7.22. INGRESS AND EGRESS PORT MIRROR ......................................................................................................................... 67
7.22.1. Remote Mirror (RSPAN) .................................................................................................................................. 68
7.23. MANAGEMENT INFORMATION BASE (MIB) ............................................................................................................... 69
7.24. NIC AND CPU TAG FORWARDING ............................................................................................................................. 69
7.25. INDIRECT TABLE ACCESS........................................................................................................................................... 70
7.26. EXTERNAL PHY REGISTER ACCESS ........................................................................................................................... 70
7.27. SWITCH INTERRUPT INDICATION ................................................................................................................................ 70
8. CPU FUNCTION DESCRIPTION ................................................................................................................................. 71
8.1. MIPS-4KEC............................................................................................................................................................... 71
8.2. SPI FLASH.................................................................................................................................................................. 71
8.3. SDRAM INTERFACE CONFIGURATION....................................................................................................................... 71
9. INTERFACE DESCRIPTIONS ...................................................................................................................................... 72
9.1. QSGMII .................................................................................................................................................................... 72
9.2. SGMII ....................................................................................................................................................................... 72
9.3. DDR1 SDRAM ......................................................................................................................................................... 73
9.4. DDR2 SDRAM ......................................................................................................................................................... 74
9.5. DDR3 SDRAM ......................................................................................................................................................... 75
9.6. SPI FLASH INTERFACE ............................................................................................................................................... 75
9.7. UART ........................................................................................................................................................................ 76
List of Tables
TABLE 1. PIN ASSIGNMENTS TABLE (RTL8380M-VB) ............................................................................................................... 11
TABLE 2. 1000M ETHERNET PHY MDI INTERFACE PINS ............................................................................................................ 16
TABLE 3. SGMII INTERFACE PINS ............................................................................................................................................... 18
TABLE 4. 1000BASE-X/100BASE-FX INTERFACE PINS ............................................................................................................... 18
TABLE 5. DDR1/2 SDRAM INTERFACE PINS .............................................................................................................................. 19
TABLE 6. DDR3 SDRAM INTERFACE PINS ................................................................................................................................. 20
TABLE 7. MASTER MODE SPI FLASH INTERFACE PINS ................................................................................................................ 20
TABLE 8. UART INTERFACE PINS ............................................................................................................................................... 21
TABLE 9. LED INTERFACE PINS .................................................................................................................................................. 21
TABLE 10. GPIO INTERFACE PINS ................................................................................................................................................ 21
TABLE 11. EJTAG INTERFACE PINS.............................................................................................................................................. 21
TABLE 12. CONFIGURATION STRAPPING PINS ............................................................................................................................... 22
TABLE 13. MISCELLANEOUS INTERFACE PINS............................................................................................................................... 23
TABLE 14. POWER AND GROUND PINS .......................................................................................................................................... 24
TABLE 15. PIN ASSIGNMENTS TABLE (RTL8382M-VB) .............................................................................................................. 26
TABLE 16. 1000M ETHERNET PHY MDI INTERFACE PINS ........................................................................................................... 44
TABLE 17. SGMII INTERFACE PINS .............................................................................................................................................. 46
TABLE 18. QSGMII INTERFACE PINS ............................................................................................................................................ 46
TABLE 19. 1000BASE-X/100BASE-FX INTERFACE PINS ............................................................................................................... 47
TABLE 20. DDR1/2 SDRAM INTERFACE PINS ............................................................................................................................. 47
TABLE 21. DDR3 SDRAM INTERFACE PINS ................................................................................................................................ 48
TABLE 22. MASTER MODE SPI FLASH INTERFACE PINS ............................................................................................................... 48
TABLE 23. UART INTERFACE PINS ............................................................................................................................................... 49
TABLE 24. LED INTERFACE PINS .................................................................................................................................................. 49
TABLE 25. GPIO INTERFACE PINS ................................................................................................................................................ 49
TABLE 26. EJTAG INTERFACE PINS.............................................................................................................................................. 49
TABLE 27. CONFIGURATION STRAPPING PINS ............................................................................................................................... 50
TABLE 28. MISCELLANEOUS INTERFACE PINS............................................................................................................................... 51
TABLE 29. POWER AND GROUND PINS .......................................................................................................................................... 52
TABLE 30. SPANNING TREE AND RAPID SPANNING TREE ACTION ................................................................................................ 59
TABLE 31. FORWARDING OF HOST N ............................................................................................................................................. 61
TABLE 32. RESERVED MULTICAST ADDRESS DEFAULT ACTIONS ................................................................................................. 61
TABLE 33. UART CONTROL INTERFACE PINS ............................................................................................................................... 76
TABLE 34. EJTAG INTERFACE PINS.............................................................................................................................................. 76
TABLE 35. SPI SLAVE INTERFACE ................................................................................................................................................. 78
TABLE 36. ABSOLUTE MAXIMUM RATINGS .................................................................................................................................. 81
TABLE 37. RECOMMENDED OPERATING RANGE ........................................................................................................................... 81
TABLE 38. DC CHARACTERISTICS (IO POWER =3.3V) .................................................................................................................. 81
TABLE 39. QSGMII DIFFERENTIAL TRANSMITTER CHARACTERISTICS ......................................................................................... 82
TABLE 40. QSGMII DIFFERENTIAL RECEIVER CHARACTERISTICS ............................................................................................... 82
TABLE 41. SGMII DIFFERENTIAL TRANSMITTER CHARACTERISTICS............................................................................................ 84
TABLE 42. SGMII DIFFERENTIAL RECEIVER CHARACTERISTICS .................................................................................................. 85
TABLE 43. 1000BASE-X/100BASE-FX DIFFERENTIAL TRANSMITTER CHARACTERISTICS ............................................................ 86
TABLE 44. 1000BASE-X/100BASE-FX DIFFERENTIAL RECEIVER CHARACTERISTICS ................................................................... 87
TABLE 45. DDR2 SDRAM TIMING CHARACTERISTICS ................................................................................................................ 88
TABLE 46. DDR3 SDRAM TIMING CHARACTERISTICS ................................................................................................................ 89
TABLE 47. SPI INTERFACE TIMING CHARACTERISTICS ................................................................................................................. 90
TABLE 48. SMI (MDC/MDIO) TIMING CHARACTERISTICS .......................................................................................................... 91
TABLE 49. SERIAL MODE LED AC TIMING .................................................................................................................................. 91
TABLE 50. ORDERING INFORMATION ............................................................................................................................................ 94
List of Figures
FIGURE 1. MANAGED 8*1000M UTP+2*1000BASE-X SWITCH .................................................................................................... 4
FIGURE 2. MANAGED 28*1000M SWITCH VIA RTL8218B PHY ................................................................................................... 5
FIGURE 3. MANAGED 20*1000M UTP+4*1000M COMBO SWITCH .............................................................................................. 6
FIGURE 4. MANAGED 24*1000M UTP+2*1000BASE-X SWITCH .................................................................................................. 7
FIGURE 5. RTL8380M-VB BLOCK DIAGRAM ............................................................................................................................... 8
FIGURE 6. RTL8382M-VB BLOCK DIAGRAM ............................................................................................................................... 9
FIGURE 7. PIN ASSIGNMENTS (RTL8380M-VB) ......................................................................................................................... 10
FIGURE 8. PIN ASSIGNMENTS (RTL8382M-VB) ......................................................................................................................... 25
FIGURE 9. DA/SA BLOCK ............................................................................................................................................................. 54
FIGURE 10. PORT ISOLATION EXAMPLE ........................................................................................................................................ 55
FIGURE 11. TX PAUSE FRAME FORMAT ........................................................................................................................................ 56
FIGURE 12. FLOW CONTROL STATE MACHINE .............................................................................................................................. 56
FIGURE 13. SIGNAL TIMING FOR COLLISION-BASED BACKPRESSURE ........................................................................................... 57
FIGURE 14. SPANNING TREE AND RAPID SPANNING TREE PORT STATES ...................................................................................... 58
FIGURE 15. IEEE 802.1AD FRAME FORMAT.................................................................................................................................. 64
FIGURE 16. PRIORITY SELECTION TABLE WEIGHT RULES EXAMPLE ............................................................................................ 65
FIGURE 17. PER-PORT QUEUE MANAGEMENT .............................................................................................................................. 66
FIGURE 18. RSPAN ENCAPSULATION ........................................................................................................................................... 68
FIGURE 19. RSPAN ILLUSTRATION .............................................................................................................................................. 68
FIGURE 20. NIC ARCHITECTURE ................................................................................................................................................... 69
FIGURE 21. QSGMII INTERCONNECTION ...................................................................................................................................... 72
FIGURE 22. SGMII SIGNAL ........................................................................................................................................................... 72
FIGURE 23. DDR1 SDRAM CONFIGURATION .............................................................................................................................. 73
FIGURE 24. DDR2 SDRAM CONFIGURATION .............................................................................................................................. 74
FIGURE 25. DDR3 SDRAM CONFIGURATION .............................................................................................................................. 75
FIGURE 26. SPI FLASH CONFIGURATION ....................................................................................................................................... 75
FIGURE 27. EJTAG USING A 5-PIN JTAG INTERFACE TO ACCESS DATA BLOCK.......................................................................... 76
FIGURE 28. I2C SLAVE INTERFACE ACCESS DATA SEQUENCE ...................................................................................................... 77
FIGURE 29. SERIAL LED CONNECTION ......................................................................................................................................... 79
FIGURE 30. QSGMII DIFFERENTIAL TRANSMITTER EYE DIAGRAM .............................................................................................. 82
FIGURE 31. QSGMII DIFFERENTIAL RECEIVER EYE DIAGRAM .................................................................................................... 83
FIGURE 32. SGMII DIFFERENTIAL TRANSMITTER EYE DIAGRAM ................................................................................................. 84
FIGURE 33. SGMII DIFFERENTIAL RECEIVER EYE DIAGRAM ....................................................................................................... 85
FIGURE 34. 1000BASE-X/100BASE-FX DIFFERENTIAL TRANSMITTER EYE DIAGRAM ................................................................. 86
FIGURE 35. 1000BASE-X/100BASE-FX DIFFERENTIAL RECEIVER EYE DIAGRAM ........................................................................ 87
FIGURE 36. DDR2 TIMING CHARACTERISTICS .............................................................................................................................. 88
FIGURE 37. DDR3 TIMING CHARACTERISTICS .............................................................................................................................. 89
FIGURE 38. SPI INTERFACE TIMING .............................................................................................................................................. 90
FIGURE 39. SMI (MDC/MDIO) TIMING ....................................................................................................................................... 91
FIGURE 40. SERIAL MODE LED AC TIMING PARAMETERS ........................................................................................................... 91
1. General Description
The RTL8380M-VB-CG and RTL8382M-VB-CG are new generation Gigabit switches supporting
Energy Efficient Ethernet (EEE). The RTL8380M-VB is an 10-port 10/100/1000M switch controller, and
the RTL8382M-VB is a 28-port 10/100/1000M switch controller. Both of them have an 8-port
10/100/1000M Ethernet PHY embedded.
The RTL8380M-VB/RTL8382M-VB are provided via a 55nm CMOS process in an LQFP-216 E-PAD
package. The Memory interface of the RTL8380M-VB/RTL8382M-VB supports DDR1/DDR2/DDR3
and SPI Flash. The following table lists the main differences between the RTL8380M-VB/RTL8382M-
VB:
Features RTL8380M-VB RTL8382M-VB
Port Capacity 8G*UTP + 2*1000Base-X 24G*UTP + 4GCombo
Management Mode Managed Mode Only Managed Mode Only
DDR1/2/3 Yes Yes
SPI Flash Yes Yes
EEPROM Config. Yes Yes
Internal CPU Yes Yes
2. Features
I2C and slave SPI interface for external
Hardware Interface
master interface to access internal
RTL8380M-VB registers
10-port Gigabit wire speed
forwarding capability L2 VLAN Function
Supports 8-port 10/100/1000M Supports IVL, SVL, and IVL/SVL
Ethernet PHY
Supports two pairs of Supports IEEE 802.1Q VLAN
SGMII/1000Base-X 4K-entry VLAN Table
Port-based VLAN
RTL8382M-VB Port-and-protocol-based VLAN
RTL8382M-VB provides 28-port ACL-based VLAN
Gigabit wire speed forwarding
Supports up to 64 spanning tree
capability instances for MSTP (IEEE 802.1s),
Supports 8-port 10/100/1000M RSTP, and STP
Ethernet PHY
Support 4-pairs of QSGMII to Supports flexible Q-in-Q and VLAN Tag
connect to external 8-port function
10/100/1000M Ethernet PHYs
RTL8382M-VB supports an extra 1 L2 MAC Function
pair of QSGMII or 2 pairs of 4.1 Mbit SRAM Packet Buffer
SGMII/1000Base-X
Packet length of 10000Bytes
DRAM and Flash Interface
8K-entry L2 MAC table with 4-way
Support one 8-bit 128MByte
DDR1/DDR2 or one 8-bit 256MByte hashing algorithm
DDR3 for internal CPU Independent 512-entry L2/IP Multicast
Support one 32MByte SPI flash table for multicast function
interface
2-hash algorithm selection for L2 table
Embedded MIPS-4KEc with MMU searching/learning
MIPS32 instruction set and 5-stage
Aging timer range from 0.2s to
pipeline
1600000s
500MHz CPU clock rate
16KByte I-Cache and 16KByte D- Supports IGMPv1/2/3 and MLDv1/2
Cache snooping
Built-in 128KByte SRAM Supports Reserved Multicast Addresses
32 Translation Look-aside Buffer processing
(TLB) entries
Two UART interfaces to control the Limited learned L2 MAC entry on each
internal CPU via a Command Line port and each VLAN
Interface (CLI)
Supports EJTAG interface
Access Control List (ACL) Function IEEE 802.3az Energy Efficient Ethernet
(EEE)
1.5K-entry ACL table
L2/L3/L4 format (e.g., DMAC, SMAC, MIB Functions
and Ether-Type) Ethernet-like MIB (RFC 3635)
IPv6 Parsing Interface Group MIB (RFC 2863)
Per-flow traffic policing RMON (RFC 2819)
16-entry VID range checking Bridge MIB (RFC 1493)
8-entry IPv4 or 2-entry IPv6 range Bridge MIB Extension (RFC 2674)
checking
Others
256 leaky-buckets for flow traffic
policing; in 16Kbps steps up to 1Gbps 55nm CMOS process
maximum 3.3V/1.1V dual power input
256 log counters to enhance MIB count LQFP216 E-PAD package
functionality
3. System Applications
3.1. RTL8380M-VB: Managed 8*1000M UTP+2*1000Base-X
Switch
1000Base-X
1000Base-X
LED
Interface
QSGMII
QSGMII
QSGMII
QSGMII
8*1000Base-T
8*1000Base-T
4*1000Base-T
4*1000Base-x
Copper
LED /fiber
Interface auto-det
QSGMII
QSGMII
QSGMII
8*1000Base-T
RTL8218B RTL8218FB
8*1000Base-T
4*1000Base-T
4*1000Base-T
4*1000Base-x
Copper
LED /fiber
Interface auto-det
QSGMII
QSGMII
QSGMII
8*1000Base-T
1000Base-X
1000Base-X
RTL8218B RTL8218B
8*1000Base-T
8*1000Base-T
LED Interface
4. Block Diagrams
4.1. RTL8380M-VB Block Diagram
SGMII/ SGMII/
Scan or UART0 UART1 EJTAG DDR1/DDR2/ SPI Flash/ 1000Base-X/ 1000Base-X/
GPIO
Serial LED DDR3 I2C EEPROM 100Base-FX 100Base-FX
PHY0~7 (Gigabit)
8*GE
QSGMII/ SGMII/
Scan or DDR1/DDR2/ SPI Flash/ SGMII/1000Base-X 1000Base-X/
GPIO UART0 UART1 EJTAG
Serial LED DDR3 I2C EEPROM /100Base-FX 100Base-FX
EEPROM
/I2C/SPI
GMAC24 GMAC26
Register GMAC25 GMAC27
Controller Interrupt GMAC28
Controller and NIC
Packet Buffer (4.1 Mbit SRAM)
DDR12_A8/DDR3_A1/SDS_PDOWN_EN
DDR12_A6/DDR3_A8/SEL_XTAL_CLK
DDR12_A11/DDR3_A10/LED_MODE[0]
DDR12_A13/DDR3_A11/LED_MODE[1]
DDR12_A4/DDR3_A6/PWRBLINK[1]
DDR12_A2/DDR3_A4/PWRBLINK[0]
DDR12_A0/DDR3_A12/DIS_EEE
SSPI_SO/DIS_PHYAUTO_UP
DDR3_A14/SPI_ADDR_SEL
DDR12_CLK#/DDR3_CLK#
DDR12_RAS#/DDR3_CAS#
DDR12_CAS#/DDR3_RAS#
UART0_TX/REG_IF_SEL
DDR12_WE#/DDR3_WE#
DDR12_ODT/DDR3_CKE
DDR12_CLK/DDR3_CLK
DDR12_DQS/DDR3_DM
DDR12_DM/DDR3_DQS
DDR12_CS#/DDR3_BA1
DDR12_D5/DDR3_D5
DDR12_D2/DDR3_D7
DDR12_D0/DDR3_D1
DDR12_D7/DDR3_D3
DDR12_D6/DDR3_D0
DDR12_D1/DDR3_D4
DDR12_D3/DDR3_D2
DDR12_D4/DDR3_D6
SSPI_CLK/I2C_CLK
SSPI_SI/I2C_DAT
SPI_SO/SIO1
DDR3_DQS#
SPI_SI/SIO0
UART0_RX
LED_CLK
LED_DAT
SSPI_CS#
SPI_CS#0
SPI_CLK
MVDDH
MVDDH
RESET#
DVDDH
DVDDH
DVDDL
DVDDL
DVDDL
DVDDL
GPIO0
GPIO1
GPIO2
GPIO3
MDIO
VREF
MDC
162
161
160
159
158
157
156
155
154
153
152
151
150
149
148
147
146
145
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
MVDDH 163 108 DVDDL
DDR3_BA2/DDR12_CKE 164 107 AVDDL_PLL
DDR3_A9/DDR12_BA1 165 106 XI
DDR3_A13/DDR12_A1/CPU_SLEEP 166 105 XO
DDR3_A2/DDR12_A12/DRAM_INI_EN 167 104 AVDDH_PLL
DDR3_RST# 168 103 SVDDL
DDR3_A7/DDR12_A9/MEM_TYPE[1] 169 102 S1RXP
DDRR3_A5/DDR12_A7/MEM_TYPE[0] 170 101 S1RXN
DDR3_A0/DDR12_A5/CLK_M_EE[1] 171 100 S1TXP
DDR3_A3/DDR12_A3/CLK_M_EE[0] 172 99 S1TXN
DDR3_BA0/DDR12_A10/EN_DECRYPT 173 98 SVDDL
DDR3_CS#/DDR2_BA2 174 97 S0RXN
DDR3_ODT/DDR12_BA0 175 96 S0RXP
DDR3_ZQ# 176 95 S0TXN
MVDDH 177 94 S0TXP
DVDDL 178 93 SVDDL
VX 179 92 CKOUT0
RTL8380M
RESERVED 180 91 SVDDH
SVDDL 181 90 TEST3
RESERVED 182 89 TEST2
RESERVED 183 88 RESERVED
TEST4 184 87 RESERVED
TEST5 185 86 SVDDL
LLLLLLL
SVDDH 186 85 TEST1
RESERVED 187 84 TEST0
RESERVED 188 83 RESERVED
TEST6 189 82 RESERVED
TEST7 190 81 SVDDL
SVDDL 191 80 RESERVED
GXXXV TAIWAN
DVDDL 192 79 DVDDL
AVDDH 193 78 AVDDH
P0MDIAP 194 77 P7MDIDN
P0MDIAN 195 76 P7MDIDP
P0MDIBP 196 75 P7MDICN
P0MDIBN 197 74 P7MDICP
AVDDL 198 73 AVDDL
P0MDICP 199 72 P7MDIBN
P0MDICN 200 71 P7MDIBP
P0MDIDP 201 70 P7MDIAN
P0MDIDN 202 69 P7MDIAP
AVDDH 203 68 AVDDH
P1MDIAP 204 67 P6MDIDN
P1MDIAN 205 66 P6MDIDP
P1MDIBP 206 65 P6MDICN
P1MDIBN 207 64 P6MDICP
AVDDL 208 63 AVDDL
P1MDICP 209 62 P6MDIBN
P1MDICN 210 61 P6MDIBP
P1MDIDP 211 60 P6MDIAN
P1MDIDN 212 59 P6MDIAP
PLLVDDL 213 58 ATESTCK1
ATESTCK0 214 57 PLLVDDL
P2MDIAP 215 56 P5MDIDN
P2MDIAN 216 55 P5MDIDP
54
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
1
2
3
4
5
6
7
8
9
P2MDIBP
P2MDIBN
AVDDL
P2MDICP
P2MDICN
P2MDIDP
P2MDIDN
AVDDH
P3MDIAP
P3MDIAN
P3MDIBP
P3MDIBN
AVDDL
AVDDH
P3MDICP
P3MDICN
P3MDIDP
P3MDIDN
AVDDH
AGND
MDIREF
AVDDL
RTT1
RTT2
AVDDH
DVDDL
DVDDH
JTAG_TCK
JTAG_TMS
JTAG_TDO/EEPROMTYPE
JTAG_TDI
JTAG_TRST#
DVDDL
DVDDL
DVDDH
AVDDH
P4MDIAP
P4MDIAN
P4MDIBP
P4MDIBN
AVDDH
AVDDL
P4MDICP
P4MDICN
P4MDIDP
P4MDIDN
AVDDH
P5MDIAP
P5MDIAN
P5MDIBP
P5MDIBN
AVDDL
P5MDICP
P5MDICN
IPU: Input Pin With Pull-Up Resistor; OPU: Output Pin With Pull-Up Resistor;
(Typical Value = 75KΩ) (Typical Value = 75KΩ)
IPD: Input Pin With Pull-Down Resistor; OPD: Output Pin With Pull-Down Resistor;
(Typical Value = 75KΩ) (Typical Value = 75KΩ)
DDR12_A8/DDR3_A1/SDS_PDOWN_EN
DDR12_A6/DDR3_A8/SEL_XTAL_CLK
DDR12_A11/DDR3_A10/LED_MODE[0]
DDR12_A13/DDR3_A11/LED_MODE[1]
DDR12_A2/DDR3_A4/PWRBLINK[0]
DDR12_A4/DDR3_A6/PWRBLINK[1]
DDR12_A0/DDR3_A12/DIS_EEE
SSPI_SO/DIS_PHYAUTO_UP
DDR3_A14/SPI_ADDR_SEL
DDR12_CLK#/DDR3_CLK#
DDR12_RAS#/DDR3_CAS#
DDR12_CAS#/DDR3_RAS#
DDR12_WE#/DDR3_WE#
DDR12_CLK/DDR3_CLK
UART0_TX/REG_IF_SEL
DDR2_ODT/DDR3_CKE
DDR12_CS#/DDR3_BA1
DDR12_DM/DDR3_DQS
DDR12_DQS/DDR3_DM
DDR12_D5/DDR3_D5
DDR12_D2/DDR3_D7
DDR12_D0/DDR3_D1
DDR12_D7/DDR3_D3
DDR12_D6/DDR3_D0
DDR12_D1/DDR3_D4
DDR12_D3/DDR3_D2
DDR12_D4/DDR3_D6
SSPI_CLK/I2C_CLK
SSPI_SI/I2C_DAT
SPI_SO/SIO1
DDR3_DQS#
SPI_SI/SIO0
UART0_RX
LED_CLK
LED_DAT
SSPI_CS#
SPI_CS#0
SPI_CLK
MVDDH
MVDDH
DVDDL
RESET#
DVDDL
DVDDH
DVDDH
DVDDL
DVDDL
GPIO0
GPIO1
GPIO3
GPIO2
MDIO
VREF
MDC
162
161
160
159
158
157
156
155
154
153
152
151
150
149
148
147
146
145
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
MVDDH 163 108 DVDDL
DDR12_CKE/DDR3_BA2 164 107 AVDDL_PLL
DDR12_BA1/DDR3_A9 165 106 XI
DDR12_A1/DDR3_A13/CPU_SLEEP 166 105 XO
DDR12_A12/DDR3_A2/DRAM_INI_EN 167 104 AVDDH_PLL
DDR3_RST# 168 103 SVDDL
DDR12_A9/DDR3_A7/MEM_TYPE[1] 169 102 S5RXP
DDR12_A7/DDR3_A5/MEM_TYPE[0] 170 101 S5RXN
DDR12_A5/DDR3_A0/CLK_M_EE[1] 171 100 S5TXP
DDR12_A3/DDR3_A3/CLK_M_EE[0] 172 99 S5TXN
DDR12_A10/DDR3_BA0/EN_DECRYPT 173 98 SVDDL
DDR2_BA2/DDR3_CS# 174 97 S4RXN
DDR12_BA0/DDR3_ODT 175 96 S4RXP
DDR3_ZQ# 176 95 S4TXN
MVDDH 177 94 S4TXP
DVDDL 178 93 SVDDL
VX 179 92 CKOUT4
RTL8382M
CKOUT0 180 91 SVDDH
SVDDL 181 90 S3RXP
S0TXP 182 89 S3RXN
S0TXN 183 88 S3TXP
S0RXP 184 87 S3TXN
S0RXN 185 86 SVDDL
LLLLLLL
SVDDH 186 85 S2RXN
S1TXN 187 84 S2RXP
S1TXP 188 83 S2TXN
S1RXN 189 82 S2TXP
S1RXP 190 81 SVDDL
SVDDL 191 80 CKOUT2
GXXXV TAIWAN
DVDDL 192 79 DVDDL
AVDDH 193 78 AVDDH
P0MDIAP 194 77 P7MDIDN
P0MDIAN 195 76 P7MDIDP
P0MDIBP 196 75 P7MDICN
P0MDIBN 197 74 P7MDICP
AVDDL 198 73 AVDDL
P0MDICP 199 72 P7MDIBN
P0MDICN 200 71 P7MDIBP
P0MDIDP 201 70 P7MDIAN
P0MDIDN 202 69 P7MDIAP
AVDDH 203 68 AVDDH
P1MDIAP 204 67 P6MDIDN
P1MDIAN 205 66 P6MDIDP
P1MDIBP 206 65 P6MDICN
P1MDIBN 207 64 P6MDICP
AVDDL 208 63 AVDDL
P1MDICP 209 62 P6MDIBN
P1MDICN 210 61 P6MDIBP
P1MDIDP 211 60 P6MDIAN
P1MDIDN 212 59 P6MDIAP
PLLVDDL 213 58 ATESTCK1
ATESTCK0 214 57 PLLVDDL
P2MDIAP 215 56 P5MDIDN
P2MDIAN 216 55 P5MDIDP
54
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
1
2
3
4
5
6
7
8
9
DVDDL
DVDDL
AVDDH
P4MDIAP
P4MDIAN
P4MDIBP
P4MDIBN
P4MDICP
P4MDICN
P4MDIDP
P4MDIDN
P5MDIAP
P5MDIAN
P5MDIBP
P5MDIBN
P3MDIAN
P5MDICP
P5MDICN
P2MDIDP
P2MDIDN
AVDDL
MDIREF
AVDDL
P3MDIAP
P3MDIBN
RTT1
RTT2
AVDDL
P2MDICP
P2MDICN
AVDDH
P3MDIDN
P3MDICP
P3MDICN
P3MDIDP
P3MDIBP
AVDDH
DVDDL
DVDDH
DVDDH
AVDDH
AVDDH
AVDDH
AVDDH
AVDDL
AVDDL
AGND
P2MDIBP
P2MDIBN
JTAG_TRST#
JTAG_TDO/EEPROMTYPE
JTAG_TMS
JTAG_TCK
JTAG_TDI
IPU: Input Pin With Pull-Up Resistor; OPU: Output Pin With Pull-Up Resistor;
(Typical Value = 75KΩ) (Typical Value = 75KΩ)
IPD: Input Pin With Pull-Down Resistor; OPD: Output Pin With Pull-Down Resistor;
(Typical Value = 75KΩ) (Typical Value = 75KΩ)
7.2. Crystal
The RTL8380M-VB/RTL8382M-VB clock input frequency is 25MHz. When using a crystal, connect a
loading capacitor from XI and XO to ground. The maximum Frequency Tolerance is +/-50ppm. Duty
cycle should range from 40%~60%.
7.4.1. Forwarding
IP multicast data packets involve multicast group table lookup and forwarding operations. If the table
lookup returns a hit, the data packet is forwarded to all member ports and router ports. If the multicast
address is not stored in the address table (i.e., lookup miss), the packet is broadcast to all ports of the
broadcast domain. The VLAN Frame Forwarding Rules are defined as follows:
The received broadcast/multicast frame will flood to VLAN member ports only, except for the source
port
The received unicast frame will be forwarded to its destination port only if the destination port is in
the same VLAN as the source port. If the destination port belongs to a different VLAN, the frame will
be discarded
7.4.2. Learning
The RTL8380M-VB/RTL8382M-VB features a Layer 2 table (8K entries) that uses a 4-way hash
structure to store L2 entries. Each entry can be recorded in three formats, L2 Unicast, L2 Multicast, and
IP Multicast.
First byte Second byte Third byte Fourth byte Fifth byte Sixth byte
First byte Second byte Third byte Fourth byte Fifth byte Sixth byte
0 3 7
Uplink port: 7
A B Downlink port: 0, 3
Figure 10. Port Isolation Example
Each port has its own port mask configuration (11 bits in total for the RTL8380M-VB, 29 bits for the
RTL8382M-VB). These bits and the TX port list will be mixed to a list. We call this mixed list the final
TX port list.
Port isolation port mask settings will affect received packets; however, the Mirroring function is not
affected by the port isolation port mask.
Reserved Frame
Destination
1 byte Preamble Source Address (SA) (Transmitted Check
Address (DA)
as Zero) Sequence
42 bytes
7 bytes 1 byte 6 bytes 6 bytes 2 bytes 2 bytes 2 bytes 4 bytes
When RTL8380M-VB/RTL8382M-VB flow control is enabled, the initial state is ‘Non_Congest’. The
state is monitored continuously. If a pause-on trigger condition occurs, it enters the ‘Congest’ state. When
in the ‘congest’ state, it is also continuously monitored. When a pause-off trigger condition occurs it re-
enters the ‘Non_Congest’ state. Figure 12 shows the flow control state machine.
Congestion State
0b’1: Congested
0b’0: Not Congested Jamming
4 bytes Backoff time
96 bit times
InterframeGap
RXD XX
RXDV
JAM
TXEN 12 bytes
TXD XX
Disable Learning
Listening
Discard
Blocking Learning
Forwarding
Forwarding
Figure 14. Spanning Tree and Rapid Spanning Tree Port States
When using IEEE 802.1D, the RTL8380M-VB/RTL8382M-VB supports four status’ for each port:
Disabled
Except for software forwarding, the port will not transmit/receive packets, and will not perform learning.
There are five Spanning Tree port states, and four Rapid Spanning Tree port states. Their mapping
relations are DiscardingBlocking, LearningLearning, and ForwardingForwarding (see Table 30).
Table 30. Spanning Tree and Rapid Spanning Tree Action
Spanning Tree Rapid Spanning Tree
Disable Blocking Listening Learning Forwarding Discard Learning Forwarding
Receive BPDUs No Yes Yes Yes Yes Yes Yes Yes
Transmit BPDUs No No Yes Yes Yes No Yes Yes
Learn Address No No No Yes Yes No Yes Yes
Forward Frame No No No No Yes No No Yes
VLAN VLAN
Protocol Protocol Length / Frame Check
1 byte Destination Address Source Address S- Tag C- Tag Payload
Info Info Type Sequence
0x 88a8 0x8100
Priority weight
Weighted Arbitor
Descriptor with Priority 4 Output Queue 4
TX
Descriptor with Priority 3 Output Queue 3
Layer2
DMAC SMAC PAYLOAD FCS
Header
Layer 2
DMAC SMAC RSPAN Tag PAYLOAD FCS
Header
6
Intermediate Destination
Source Switch A Switch B Switch C
0 1 2 3 4 5 7 8 9
Port 0: Mirrored (TX or RX or both) port Port 3 and Port 5 : Intermediate RSPAN port ; Port 9 : RSPAN mirroring port; TX
Port 2: RSPAN mirroring port; forwards forwards RSPAN mirrored packets without mirrored RSPAN packet without
mirrored traffic with RSPAN VLAN tag any modification RSPAN VLAN tag
DMA MAC Rx
CPU
NIC Switch
SDRAM NIC Port MAC
Driver Core
MAC
DMA MAC Tx
9. Interface Descriptions
9.1. QSGMII
QSGMII-plus (Quad Serial Gigabit Media Independent Interface) reduces PCB complexity and IC pin
count. This innovative 5Gbps serial interface provides an up to 10 inch MAC to PHY communication
path. QSGMII can carry the full duplex gigabit Ethernet data streams of four ports simultaneously, using
only 4 pins.
MAC PHY
Port0 TX+/- Port0
RX+/-
TX RX
Port1 Port1
QGMII 25MHz QSGMII
Port2 RX+/- TX+/- Port2
RX TX
Port3 Port3
9.2. SGMII
SGMII (Serial Gigabit Media Independent Interface) conveys PHY and MAC data with significantly less
pins than required for GMII. It operates in both half and full duplex, and at all port speeds. It includes 4
data signals and 2 CLK signals to convey frame data and link rate information between the PHY and
MAC. The data signals operate at 1.25Gbaud, and the CLK operates at 625MHz. Each of these signals is
carried as a differential pair, thus providing signal integrity while minimizing system noise.
TX +/-
MAC RX +/-
PHY
CKE
CLK
CLK#
WE#
RAS#
CAS#
DDR1 SDRAM
Controller DDR1_BA[1:0]
CS# 1Gbit
DM 128M*8bit
DQS
A[13:0]
D[7:0]
CKE
CLK
CLK#
WE#
RAS#
CAS#
DDR2 SDRAM
DDR2_BA[2:0]
Controller
CS# 1Gbit
DM 128M*8bit
ODT
DQS
A[13:0]
D[7:0]
CKE
CLK
CLK#
WE#
RAS#
CAS#
DDR3 SDRAM
DDR3_BA[2:0]
CS# 2Gbit
Controller RST#
256M*8bit
ODT
DM
DQS#
DQS
A[14:0]
D[7:0]
SPF_SCK
SPI_SIO0/SPI_SI
SPI Flash
Controller SPI_SIO1/SPI_SO
256Mbit
SPF_CS#
9.7. UART
The RTL8380M-VB/RTL8382M-VB provides two UARTs, and each contains a 16-byte FIFO buffer.
The baud rate can be up to 1Mbps and a programmable baud rate generator allows division of any input
reference clock by 1 to 65535, and generates an internal 16x clock. The RTL8380M-VB/RTL8382M-VB
provides a fully programmable serial interface.
In addition to the above functions, the RTL8380M-VB/RTL8382M-VB provides fully prioritized
interrupt control and loopback functionality for diagnostic capabilities.
The UART interface pins are shown in the following table.
Table 33. UART Control Interface Pins
Signal Name Type Description
TXD# Output Transmit Data.
RXD# Input Receive Data.
9.8. EJTAG
EJTAG is inexpensive, and easy to implement. EJTAG utilizes the 5-pin IEEE 1149.1 JTAG (Joint Test
Action Group) specification for off-chip communication. The interface pins are shown in Table 34.
Table 34. EJTAG Interface Pins
Signal Name Type Description
TDI Input Test Data In.
TDO Output Test Data Out.
TCK Output Test Clock.
TMS Output Test Mode Select.
TRST Output (Optional) Test Reset.
2 ADDRESS BYTES
1 CONTROL BYTE 1 CONTROL BYTE 4 DATA BYTES N
S W S O
T R A A A T R A A A A S
A I A E Data Data Data Data A T
R A6 A5 A4 A3 A2 A1 A0 T C Addr [7:0] C Addr [15:8] C R 1 0 1 0 A2 A1 A0 C C C C C O
A [7:0] [15:8] [23:16] [31:24]
T E K K K T D K K K K K P
MSB to LSB MSB to LSB
DUMMY WRITE
2 ADDRESS BYTES
1 CONTROL BYTE 4 DATA BYTES
S W
T R A A A A A A A S
A I Data Data Data Data T
R A6 A5 A4 A3 A2 A1 A0 T C Addr [7:0] C Addr [15:8] C C C C C O
[7:0] [15:8] [23:16] [31:24]
T E K K K K K K K P
MSB to LSB MSB to LSB
VCC
LED_ DATA A P17_LED[2]
QA
3.3V B P17_LED[1]
QB
LED_ CLK CLK
P17_LED[0]
QC
QD P16_LED[2]
74 HC 164 P16_LED[1]
QE
P16_LED[0]
QF
P15_LED[2]
QG
P15_LED[1]
QH
LED_ DATA A QA
3.3V B
QB
LED_ CLK CLK
QC
QD
74 HC 164
QE
QF
QG
QH
QD P0_LED[2]
74 HC 164 P0_LED[1]
QE
P0_LED[0]
QF
QG
QH
10.3. DC Characteristics
Table 38. DC Characteristics (IO Power =3.3V)
Symbol Parameter Min Typical Max Units
VIH TTL Input High Voltage 2.0 - - V
VIL TTL Input Low Voltage - - 0.8 V
VOH Output High Voltage 2.4 - - V
VOL Output Low Voltage - - 0.4 V
10.4. AC Characteristics
10.4.1. QSGMII Differential Transmitter Characteristics
Table 39. QSGMII Differential Transmitter Characteristics
Symbol Parameter Min Typical Max Units Notes
UI Unit Interval 199.94 200 200.06 ps 200ps±300ppm
T_X1 Eye Mask - - 0.2 UI -
T_X2 Eye Mask - - 0.4 UI -
T_Y1 Eye Mask 150 - - mV -
T_Y2 Eye Mask - - 650 mV -
VTX-DIFFp-p Output Differential Voltage 600 900 1300 mV -
TTX-EYE Minimum TX Eye Width 0.6 - - UI -
TTX-JITTER Output Jitter - - 0.4 UI -
TTX-RISE Output Rise Time 0.15 - - UI -
TTX-FALL Output Fall Time 0.15 - - UI -
RTX Differential Resistance 80 100 120 ohm -
CTX AC Coupling capacitor 75 100 200 nF -
LTX Transmit Length in PCB - - 10 inch -
TTX-EYE-MIN
T_Y2
T_Y1
-T_Y1
-T_Y2
Time UI
TRX-EYE-MIN
R_Y2
R_Y1
-R_Y1
-R_Y2
Time UI
Figure 31. QSGMII Differential Receiver Eye Diagram
TTX-EYE-MIN
T_Y2
T_Y1
-T_Y1
-T_Y2
Time UI
Figure 32. SGMII Differential Transmitter Eye Diagram
TRX-EYE-MIN
R_Y2
R_Y1
-R_Y1
-R_Y2
Time UI
Figure 33. SGMII Differential Receiver Eye Diagram
TTX-EYE-MIN
T_Y2
T_Y1
-T_Y1
-T_Y2
Time UI
Figure 34. 1000Base-X/100Base-FX Differential Transmitter Eye Diagram
TRX-EYE-MIN
R_Y2
R_Y1
-R_Y1
-R_Y2
Time UI
Figure 35. 1000Base-X/100Base-FX Differential Receiver Eye Diagram
CK# CK#
CK CK
DQS Command
tDS tDH
tDQSQ
tDQSQ
DQS
DQ
tQH
Data valid
window
CK# CK#
CK CK
DQS Command
tDS tDH
tDQSQ
tDQSQ
DQS
DQ
tQH
Data valid
window
tSLCH tCHSH
SPI_CS#
SPI_SCK
tsetup:O thold:O tsetup:I thold:I
SPI_SI(output)
MSB
High-Z
SPI_SO(input) Data In
t1 t2 t3
MDC
t4 t5 t6 t7
Data Data
MDIO Write Read
V ih(max)
LED_CK
V ih( min)
tsetup:O thold:O
Vih(max)
LED_DA Data Output
Vih(min)