Link, speed and duplex status are auto-detected via
MDIO
Optional EEPROM 24LC02 for Loop detect
configuration
128-pin PQFP, 0.35 um, 3.3V CMOS technology
2002/01/23 Rev. 2.0
2
RTL8308B
2. General Description
The RTL8308B is a 128-pin, low cost and ultra low power consumption 8-port 10/100M Ethernet switch controller.
It is integrated both with a 2M bit embedded DRAM, as a packet buffer, and an 8K entry address table. The
RTL8308B supports the reduced MII (RMII) interface. Only a single 50MHz oscillator is needed and the
EEPROM is optional, which can save BOM costs. In addition, the RTL8308B provides an LED display to indicate
a network loop existence.
The RTL8308B provides eight 10/100 Mbps RMII Ethernet ports. Each port can operate in 10 Mbps or 100 Mbps
data rate, and in full or half duplex mode. Speed, duplex, link status and flow control can be acquired by
periodically polling the status of the PHY devices via MDIO.
The address look-up table consists of an 8K entry hash table and a 128 entry CAM. The RTL8308B uses the
address hashing algorithm or direct mapping method to search destination MAC addresses from and record source
MAC addresses to the hash table. Data received from the MAC interface is stored in the external memory buffer.
The RTL8308B supports IEEE 802.3x full duplex flow control and half duplex back pressure control. The ability
of IEEE 802.3x flow control is auto-negotiated by writing the flow control ability via MDIO. The reversible
PHYAD order feature is provided to connect diverse external PHY devices for PCB layout.
The RTL8308B provides a loop detect LED for visual diagnostics when detecting the network loop. The Broadcast
storm filtering function is provided for unusual broadcast storm traffic.
The RTL8308B supports non-blocking 148800 packets/second wire speed forwarding rate and a special design to
resolve the head-of-line-blocking problem. The RTL8308B uses a 2-wire 24LC02 interface to access the external
serial EEPROM, which is not required. Only one 50MHz OSC is needed.
Transmit Enable: The RTL8308B asserts high to indicate
that valid di-bit data for transmission is presented on
TXD[1:0], and transitions synchronously with respect to
REFCLK.. TXEN will be asserted synchronously with the first
nibble of the preamble and will remain asserted while all
di-bits that are to be transmitted are presented. TXEN will be
negated prior to the first REFCLK rising edge following the
final di-bit of a frame.
Transmit Data [1:0]: TXD[1:0] will transition synchronously
with respect to REFCLK. When TXEN is asserted, TXD[1:0]
is accepted for transmission by the PHY. TXD[1:0] will be
‘00’ to indicate idle when TXEN is deasserted.
CRSDV Signals: This signal will be asserted high by the
PHY when the medium is active. It is asserted asynchronously
on detection of carrier due to criteria defined in the IEEE
802.3 specifications. Loss of carrier will result in the
deassertion of this pin, synchronous to the cycle of the
reference clock, REFCLK.
Receive Data [1:0]: The RTL8308B captures the receive data
on the rising edge of REFCLK when CRSDV is asserted high.
When CRSDV is asserted high, RXD[1:0] will transition
synchronously to REFCLK. For each clock period in which
CRSDV is asserted, RXD[1:0] transfers two bits of recovered
data from the PHY. Values other than ‘00’ on RXD[1:0] while
RXDV as recovered from CRSDV is deasserted will be
ignored by the controller. Upon assertion of CRSDV, the PHY
will ensure that RXD[1:0] = ‘00’ until proper receive
decoding takes place.
RMII Reference Clock Input: A continuous clock which
provides the timing reference for CRS_DV, RXD[1:0],
TX_EN, and TXD[1:0]. It is a 50 MHz OSC, 3.3V, +/-50ppm,
0˚ C ~70˚ C, symmetry 45%~55%, Rise/Fall time 5ns, supply
40mA.
It is assumed that the PHY uses REFCLK as the network clock so no
buffering is required on the transmit data path.
Management Data Clock: A clock source common to all
ports, generated by the controller with a frequency of 312.5
kHz, it is used to synchronize the MII data stream (MDIO) for
transferring MII management data between the controller and
transceivers.
RTL8308B
This pin is Tri-state at reset.
2002/01/23 Rev. 2.0
6
RTL8308B
MDIO I/O 44
Management Data Input/Output: This pin is used during the
MII setup process. The whole setup sequence will set Register
4h, address 16-20 of the PHY to 05E1h, REGISTER 0h to
value 1200h. It also advertises 100/10 full duplex with pause
capability & enables auto-negotiation. Sending after reset
signal release about 1.6ms.
This pin is Tri-state at reset.
5.2 Serial EEPROM 24LC02 Interface
Symbol Type Pin No Description
SCLK O 121 Serial Clock: Internally pulled high, this pin is used to enable
data transfers from the EEPROM to the controller.
This output is used to clock the serial EEPROM inputs and
outputs. It operates at 1.6us or 625KHz.
SDA I/O 122 Serial Data Input/Output: Internally pulled high, this pin is
used to obtain configuration data from the external serial
EEPROM after reset. The data is synchronized by MDC.
5.3 System Pins
Symbol Type Pin No Description
RST# I 53 Reset: Active low to a known reset state. After power-on reset
(low to high), the configuration modes from Mode Pins are
determined. Then, the contents of the serial EEPROM is
auto-loaded into and the RTL8308B, which begins to access
the management data of PHY devices.
SYSCLK I 119 System clock input: The same 50 MHz clock as REFCLK is
used.
5.4 Mode Pins (Reset-Read)
Symbol Type Pin No Description
ENBrdCtrl I 108 Enable Broadcast Storm Control detection: Pulled low
internally by default, Broadcast Storm Control is disabled. When
pulled high upon reset, Broadcast Storm Control is enabled.
ENCUTHR I 117 Enable Cut-through: Pulled low internally by default,
cut-through is disabled. When pulled high upon reset,
Cut-through is enabled.
ENBKPRS I 107 Enable Half duplex back pressure function: Pulled low
internally by default, back pressure is enabled. When pulled
low upon reset, back pressure is disabled.
ENFCTRL I 112 Enable Full Duplex Flow Control: Pulled low internally by
default, Flow Control is enabled. The flow control ability will
write to management register 4 of PHY device one and only
one time after power-on reset, for advertising. When pulled
low upon reset, the flow control function will be disabled.
2002/01/23 Rev. 2.0
7
RTL8308B
5.5 LED Pin
Symbol Type Pin No Description
LOOPLED# O 54 Loop Detected LED: Low active. This pin, asserted low
indicates that a network loop is detected.
DTESTOUT O 56 DRAM Test Output: For internal test use.
5.6 Test Pin
Symbol Type Pin No Description
CTEST I 106 Test pin: For internal use. Must be tied to ground for normal
operation.
5.7 Power & Ground Pins
Symbol Type Pin No Description
GND P 6,21,22,23,30,
34,35,36,48,
49,64,71,75,82,
83,101,105,111,
115,116,126
VCC P 16,17,25,39,40,
51,52,66,85,95,
103,109,113,
124,128
Please specify Analog/Digital Power & GND.
2002/01/23 Rev. 2.0
8
RTL8308B
6. Functional Description
6.1 Reset
The minimum required reset duration is 1us. After power on reset, the RTL8308B will determine some features
from the ENFCTRL, ENBKPRS and ENBrdCtrl pins, auto-load the content of 24LC02 serial EEPROM, and write
abilities to connected PHY management registers via MDC/MDIO. It is recommended that the RTL8308B and
connected PHYs use the same reset signal source. The PHY reset must be completed before the RTL8308B.
6.2 Network Interface
The RTL8308B has 8 10/100 Mbps Ethernet ports (port 0 to port 7) with Reduced MII (R-MII) interfaces. It has 1
MII port in addition to the 4 R-MII ports for 10/100Mbps Ethernet transceivers. Note that an MII interface operates
at 25MHz in 100Mbps transmission and 2.5MHz for 10Mbps transmission. Reduced MII interfaces use the same
50MHz clock rate for both 10Mbps and 100Mbps operation. All MII interfaces support auto-negotiation for
transmission speeds, duplex modes and flow control options.
6.2.1 Medium Access Control
The RTL8308B implements the IEEE Std 802.3 binary exponential back-off algorithm and conforms to IEEE
802.3 specifications.
Data received from the PHY is interpreted and assembled into the external buffer memory by the RTL8308B flow
controller. Interpretation involves detection and removal of the preamble, extraction of the address and FCS
verification. Also included is a jabber-detection timer to detect frames of greater than maximum length being
received on the network. In 10Mbps mode, the raw data received from the PHY as input is converted to 8-bit width
before further processing. Similarly, in 100Mbps mode, the data received from the external PHY is converted to
8-bit data width in the shifter. The data is then synchronized to the internal clock of the RTL8308B. Once the
100Mbps data has been deserialized it is handled no differently than the 10Mbps data. By default, the RTL8308B
detects collision signals by itself, which makes normal and reverse MII connection easy. Because signals from the
PHY are not synchronized with internal clocks of the RTL8308B, the Rx FIFO adjusts timing differences between
external & internal clocks. Data transmission requires more processing and data handling than data reception. This
is due to the overhead of implementing collision detection and recovery logic. Data entering from the FIFO is
serialized for transmission at the transmit clock rate (this also requires the data to be synchronized to the transmit
clock rate from the internal clock). Because the transmit clock is asynchronous with the internal clock of the
RTL8308B, the Tx FIFO is needed for timing adjustment. The Tx FIFO will also transmit JAM pattern and
PAUSE frames to work with the flow control mechanism in the Flow Control Unit.
The Tx FIFO handles the output of data to the PHY devices, and several error states are handled. If a collision is
detected in half duplex mode, the state machine jams the output. If the collision was late (after the first 64-bytes
have been transmitted), the frame is lost. If it is an early collision, the controller backs off before retrying. While
operating in full duplex mode, both carrier-sense (CRS) mode and collision-sensing modes are disabled. Internally,
frame data only is removed from buffer memory once it has been successfully transmitted without collision (for the
half-duplex ports). Transmission recovery also is handled in this state machine. If a collision is detected, frame
recovery and retransmission are initiated.
2002/01/23 Rev. 2.0
9
Loading...
+ 19 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.