8 port 10/100M Fast Ethernet Swit ching Control ler
The DM8108 is an 8 port 10/100Mbit/s nonblocking
Ethernet switch with on-chip address-lookup engine. The
DM8108 provides a low-cost, high-performance switch
solution with PHYs and single SGRAM.
The DM8108 provides eight 10/100Mbit/s Fast Ethernet
interface. In half-duplex mode, all ports support backpressure capability to reduce the risk of data loss for a long
burst of activity. In the full-duplex mode of operation, the
device uses IEEE std. 802.3 frame-based pause protocol
for flow control. With full-duplex capability, port 0 – 7 s upport
1.6Gbit/s aggregate bandwidth connections. The DM8108
also supports port trunking/load balancing on the
Block Diagram
Contro l &
Status
Address
earning
10/100Mbit ports. This can be used to group ports on interswitch links to increase the effective bandwidth between the
systems.
The internal address-lookup engine supports up to 16.25K
unicast and unlimited multica st and broadc ast addresses.
This engine performs destination and source addresses
book-keeping and comparison which also forwards
unknown destination address packets to all ports.
The DM8108 is fabricated with a .35um technology.
Working at 3.3V, the inputs are 5V to le ran t and the outputs
are capable of directly driving at TTL leve ls.
Expansion
MEM
ontroller
Switching
Engine
LED Control
nit
Preliminary1
Version: DM8108-DS-P02
November 25, 1999
Page 2
Features
T
Low cost Fast Ethernet Switching Controller.
O Provide packet switching functions between
eight
10/100Mbps, auto-negotiated on-chip Fast
Ethernet ports and a proprietary Full-duplex
Expansion port.
O Cascade max. 8 DM8108s without extra glue
logic for 64-port configuration.
T
Incorporates three 802.3 compliant 10/100Mbps
Media Access Controllers
O Direct interface to MII (Media Independent
Interface)
O Half/Full Duplex Support for individual port (upto
200Mbps/port)
O IEEE 802.3 100Base-TX, T4.FX compatible
T
Auto-negotiation supported through Serial MII
interface
T
High-performance Distributed Switching Engine
O Performs packet forwarding and filtering at full
wire-speed
O 148,800 packets/sec. on each Ethernet port
T
Direct support for packet buffering
O Glue-less interface with 1 or 2 Mbytes of SDRAM
(SGRAM)
O 32 bit memory bus configuration
O 66 Mhz – 90Mhz memory bus speed
O Up-to 1.1K buffers, 1536-byte each, allocated to
receive ports
T
Support Store and Forward switching approach
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
O Low last-bit to first-bit out del ay
O Allow mixed speed Ethernet packet switching
O Allow conversion between different protocols
T
Flow control
O Support partitioning function
O Support back-pressure while lack of internal
resources
O Support 802.3x PAUSE function in full duplex
mode
O Support up to 4-port trunking for 800Mbps
bandwidth
T
Advanced Address Learning and Searching
O Self learning mechanism
O Cache 128 address entries internally
O Record up-to 16K Uni-cast MAC addresses and
unlimited Multicast and Broadcast addresses
O Automatic aging scheme
O Broadcast filtering rate control
T
Expansion Bus
O Up-to 8 SW devices can be cascaded via
expansion bus without extra logic
O Full duplex mode transfer
O Less Bus overhead
O Automatic flow control
T
Complete status report to a simple LED interface
T
Suitabl e for low cost Switc h market to replace
Hub
T
0.35m process, 3. 3V wit h 5V tolerant I/O
T
208-pin PQFP package
2Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 3
8 port 10/100M Fast Ethernet Swit ching Control ler
8 port 10/100M Fast Ethernet Swit ching Control ler
Pin Description
Please refer to the “Strap pin default value after reset section” for the detail description of the
Strap pins.
DRAM Interfac e
Pin No.Pin NameI/ODescription
139 – 146,
148 – 155,
157 – 164,
166 – 173
183 – 184,
186 – 189,
191 – 195
177SRAS*ORow address strobe for SDRAM
178SDCAS*OColumn address strobe for SDRAM
180SDWE*OWrite cycle indication, internally pulled up
182SDQMOData Mask f or SDRAM
179SDCS*OChip select for SDRAM
Expansion B us
(continued)
MD(31:0)I/ODRAM data lines 31 – 0
MA(10:0)I/ODRAM address lines 10-0; strap pins during reset
MA9: 0= enable limit4, 1=disbale limit 4
MA8: DRAM size selection; 0= 1M, 1=2M
MA7-0: Auto-negotiation enable for port 7-0; 0= enabled
Pin No.Pin NameI/ODescription
204RXDVCLKI/OExpansion port’s receiving data valid
208 – 205RXD8[3:0]I/OExpansion port’s receive data input
202 – 199TXD8[3:0]I/OExpansion port’s transmit data output
Strap pins during reset:
TXD8[2:0] = device # setting
TXD8[3] = dram timi ng
LED Interface
Pin No.Pin NameI/ODescription
2LEDCLKOLED data clock
4LEDDOLED data: active low. Data stream that contains LED indicators per
port. The data is shifted out and should be qualified by LDSTB* to
clock into ext er nal regi st er s to driv e L EDs.
Strap pin during re set:
0: expansion port with fast speed
1: expansion port with lower apees
3LDSTBI/OLED data strobe: active high. Used to strobe the LD into an external
register
Strap pin during re set:
0: force link
1: link detection through serial MII
Preliminary 7
Version: DM8108-DS-P02
November 25, 1999
Page 8
8 port 10/100M Fast Ethernet Swit ching Control ler
MII Interfa ce
Pi n No.Pin NameI/ODescription
133,117,101,
85,66,50,34,18
132,116,100,84,
65,49,33,17
22 – 19TXD0(3:0)BTransmit data for port 0; synchronous to TXCLK0.
38 – 36TXD1(3:0)BTransmit data for port 1; synchronous to TXCLK1.
54 – 51TXD2(3:0)BTransmit data for port 2; synchronous to TXCLK2.
70 – 67TXD3(3:0)BTransmit data for port 3; synchronous to TXCLK3.
89 – 86TXD4(3:0)OTransmit data for port 4; synchronous to TXCLK4.
105 –102TXD5(3:0)OTransmit data for port 5; synchronous to TXCLK5.
121 –118TXD6(3:0)OTransmit data for port 6; synchronous to TXCLK6.
137 –134TXD7(3:0)OTransmit data for port 7; synchronous to TXCLK7.
16 – 13RXD0(3:0)IReceive data for port 0; synchronous to RXCLK0.
32 – 29RXD1(3:0)IReceive data for port 1; synchronous to RXCLK1.
48 – 45RXD2(3:0)IReceive data for port 2; synchronous to RXCLK2.
64 – 61RXD3(3:0)IReceive data for port 3; synchronous to RXCLK3.
83 – 80RXD4(3:0)IReceive data for port 4; synchronous to RXCLK4.
TXEN(7:0)BTransmi t Enabl e: Activ e high , synchronous to TXCLK; indicate that
the transmission data is valid.
Strap function during reset-TXEN(7:0): 0 = port 7-0 full duplex
TXCLK(7:0)ITransmit Clock: Provides the timing reference for the transfer of
TXEN, TXD signals. It is 25MHz for 100Mbps and 2.5MHz for
10Mbps.
Strap function during reset-TDX0[0]: 0=80Mhz, 1=66Mhz CLOCK operation
TXD0[1]: 0=enable partition mode, 1=disable partition mode
TXD0[2]: 0=enable expansion por t, 1=disa ble e xpansion port
TXD0[3]: 0=init only, 1= enable BIST
Strap function during reset -TXD1[2 :0]: te st mod e
TXD1[3]: 0=enable CRC, 1=disbale CRC
Strap function during reset -TXD2[2:0]: device # setting
TXD2 [3]: DRAM timing 0=fa st, 1= slo w
Strap function during reset -TXD3[0]: 0=max. packet size 1536, 1=max. packet size 1518(default)
TXD3[1]: 0=enable back_pressure, 1= disable (default)
TXD3[3:2]: age strap pins
00= 64 sec. 01= 128 sec.
10= 256 sec. 11= disbale
Strap function during reset –
TXD4[0]: 0= port 0 trunking enable 1= port 0 no trunking (default)
TXD4[1]: 0= port 1 trunking enable 1= port 1 no trunking (default)
TXD4[2]: 0= port 2 trunking enable 1= port 2 no trunking (default)
TXD4[3]: 0= port 3 trunking enable 1= port 3 no trunking (default)
Strap function during reset –
TXD5[1:0]: br oadcast f iltering rate selection
00 = 8k/sec 01 = 16k/sec
10 = 64k/sec 11= disable
DM8108
8Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 9
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
99 – 96RXD5(3:0)IReceive data for port 5; synchronous to RXCLK5.
115 - 112RXD6(3:0)IReceive data for port 6; synchronous to RXCLK6.
137 - 128RXD7(3:0)IReceive data for port 7; synchronous to RXCLK7.
127,111,95,79,
60,44,28,12
124,108,92,76,
57,41,25,9
123,107,91,75,
56,40,24,8
126,110,94,78,
59,43,27,11
125,109,93,77,
58,42,26,10
72MDCLKI/OSerial MII management interface clock signal: 1MHz clock for MDIO
73MDIOI/OSerial MII management interface data; this bi-direction line is used to
RXCLK(7:0)IReceive clock for port 7 – 0; synchronous to RXD, RXDV,RXER; has
same clock rate as TXCLK.
RXDV(7:0)IReceive data valid indication for port 7 – 0.
RXER(7:0)IReceive data error indication for port 7 – 0.
CRS(7:0)ICarri er sense; acti ve high. Ind icates that either the tra n smit or
receive medium is not Idle. CRS is not synchronous to any clock.
COL( 7:0 )IC ollis ion De tect ; active high. Indicates a collision has been detected
on the wire.
This input is ignored during full duplex operation and in the half duplex
mode while TXEN of the same port is low.
data reference. Connected to all PHY ports; It is an input pin if t he
device # is not 0 in SDRAM mode; else, it is an output pin.
transfer control Information and status between the PHY and the
DM8108. It conforms to the IEEE-802.3 specifications.
This signal may be connected to the PHY devices of all ports.
Pulled down if not used.
Preliminary 9
Version: DM8108-DS-P02
November 25, 1999
Page 10
o
Functional Description
M
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Fast Ethe rnet P orts Functiona l Overv iew
The DM8108 is a high-performance, low-cost Fast
Ethernet Switching Controller which provides packet
switching between eight on-chip, 10/100 Mbps ports
and one optional expansion port. It is suitable for the
auto-sensing 10/100Mbps switch application.
Switching Architecture
The switching architecture is based on the shared memory
and handshaking signals to swi tch pack ets between on-chip
ports hard-wired.
For an incoming packet, the receiving port’s MA C s to r es i t in
the receiv ing buff ers if it i s a good packet. At the same
time, the switching engine determines which port the packet
will forward to and update the address table which will be
used for future packet forwarding reference.
Fast Ethernet Ports
The DM8108 integrates eight Fast Ethernet ports, working
at 10/100Mbps (half-duplex) or 20/200Mbps (full-duplex)
with of f-the-shelf PHY chips. The inte rface is glu e-less
through Media Independent Interfaces (MII). The autonegotiation function determines the port’s operating mode.
With auto-negotiation disabled, the po r ts can be forced to
operate at a certain mode, if so desi red. Each port i n c ludes
the Media Access Control function (MAC), LED signals for
Link, Co llis io n, R e ce ive/Tra ns mit, Ha lf/Full duplex and
Rece ive Bu ffer Full indica tio ns .
Address Recognition
The DM8108 in a system can recognize up t o 1 6K Uni -c ast
MAC addresses and unlimited Multica s t/ Broadca st MAC
addresses. An intelligent address recognition mechanism
enables filtering and forwarding packets at full Ethernet wire
speed. The DM8108 provides an address self-learning
mechanism. As each DM8108 learns new address, it
updates the address table in the storage.
8 port 10/100M Fast Ethernet Swit ching Control ler
Packet Routing
As any port in the DM8108 receives a packet, the DM8108
will p ut th e re ce ived data in the receiving buffer and start the
address recognition at same time.
1. If the destination address is pointed to a local port
other than receiving port, the DM8108 will update the
Transmit Descriptor of the target port with the buffer
location and byte count information and wait for
transmission.
2. If the destination address is pointed to a port located in
other devices, the DM8108 will update the
Transmit Descriptor of the expansion port with the
receiving buffer location and byte count information
and wait for transmission.
3. I
f the destination address is not found in the Address
Table, the DM8108 will update all the Transmit
De s cr ip to r s , exc e pt th e one of t he r ec eivi ng port, for
transmission.
4. For the Multicast/Broadcast addresses, the DM8108
simply updates all the Transmit Descriptors, except
the one of th e re ceiv i ng p o rt or t h e ports that are
disabled, for Transmission.
5. For bad packet, the DM8108 simply discards it.
6. If the receiving buffer or the Transmit Descriptor for a
particular port is full, the packet will be lost.
The DM8108 is targeted for the non-managed Ethernet
Switching application. No management functions provided.
DRAM Interfac e
The DM8108 interfaces to 1M or 2M bytes of SGRAM or
SDRAM. The DRAM is used to store incoming packets as
well as he address table and Transmit Descriptors. The
DRAM can operate at up to
512kx16 SGRAM are required respectively for 1M or 2M
shared memory size.
Expansion B us
The expansion bus contains Receive Port and Transmit
Port. Each po rt is 4- bit wide.
The Receive Port takes the incoming packet into a FIFO
that has to be distributed to the Receiving Buffer
immediately. At the same time, the DM8108 will check th e
destination and source addresses to determine the target
port and update the Address Table if necessary.
The Transmit Port is dedicated for transferring packets out
to other switching members if the Transmit Descriptor for
this port saying the transmission is pending.
90MHz. One 256k x32 o r
Total of 8-DM8108 can be cascaded for a 64-port switching
Network Manage ment Fea tures
Preliminary 11
Version: DM8108-DS-P02
November 25, 1999
system.
Page 12
Operation Over view
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
The SW Architecture Family of switching devices has
been defined as low cost, high performance and
scalable architecture for a small switching s y stem of
packetized data. Various devices will be developed.
The OEMs will be able to design robus t switching
configurations based on the SW architecture.
The SW Architecture Family uses a “store-andforward’ switching approach. This approach has the
following advantages:
•Store-and-forward switches allow switching
between differing speed media (e.g. 10Mbps and
100Mbps).
•Store-and-forward switches improve overall
network performance by acting as a ‘network
cache’, effectively buffering packets during
tim es of heavy congestion.
•Store-and-forward switches prevent the
erroneous packets fr om forwarding by analyzing
the frame check sequence (FCS) before
forwarding to the destination port.
• Store-and-forward switches prevent illegal
frames (runt or oversized) from being for warded
and thereby reduce the congestion caused
by bad packets.
The basic operation of DM8108 is very simple. The
DM8108 receives the incoming packets from the
Ethernet port s, searches i n the Address Tabl e for the
destination MAC address, and forwards the packet to
the appropriate port, which could be either local (one
of the DM8108’s port) or in a different DM8108
device that resides on the expansion bus. If the
destination address is not found, the packet will be
trea t ed as a multicast packet and sent to every port
(other than the source port) and other devices on the
expansion bus.
The DM8108 automatically learns the port number of
attached network devices by examining the Source
MAC address of all incoming packets. If the Source
Address is not found in the Address Tabl e, the d ev i ce
adds it to the table (with source port and device
information). The Address Table is managed by
DM8108 individually.
Address Learning
The DM8108 can learn up to 16K unique MAC addresses.
Addresses are stored in the Address Table located in the
DRAM wh ich w ill be in itializ ed aft er RESET.
Packet Buffering
Incoming packets are buffered in the DRAM array. These
buffers provide elastic storage for transferring data between
low-speed and high speed segments. The packet buffers
are managed automatically by the DM8108.
Packet Forwarding Protocol
The DM8108 updates the Transmit Descriptor of the target
port, which is learned from Address Table, with the received
packet buffer location and packet length. The MAC of
targ et po rt will fetch th e packet for transmission once the
memory bus is available.
Expansion B us
The Expansion Bus is defined as a special case of a normal
Fast Ethernet MII port except running at much higher data
rate.
The designer can link several DM8108s within a switching
box or can link several switching boxes.
12Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 13
Theory of Operation
E
U
Block Diagram
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
MAC
MAC
MII
Manage ment
xpansion
Swit ch in g
Engine
Control
Registers
Status
Registers
DRAM
Controller
LED Control
nit
Preliminary 13
Version: DM8108-DS-P02
November 25, 1999
Page 14
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Media Access Control
The MAC Engine incorporates the essential protocol
requirement for an Ethernet IEEE-802.3 compliant
node, and provides the interface between the FIFO
subsystem and the MII. The MAC has two primary
attributes:
Transmit and receive message data
encapsulation
The M AC w ill discar d the illegally short (less than 64
bytes of frame data) or oversized (greater than 1536
bytes) messages to be transmitted or received.
T
Framing (frame boundary delimitation, frame
synchronization)
The MAC engine will automatically handle the
construction of the transmit frame. Once the
transmi t FIFO has been f illed to the predetermined
threshold and access of the channel is permitted, the
MAC will commen ce the following for tr ansmission:
The receiving section of the MAC will detect an
incoming preamble sequence when the RXDV signal
is activated by the external PHY. Th e MAC w ill
discard the preamble and begin searching for the SFD.
Once the SFD is detected, all the subsequent nibbles
are treated as part of the frame. The MAC will discard
the message if it is shorter than 64-bytes or longer
than 1518 (1536) bytes. The received frame will be
sent to Receiving Buffer for switching.
If the frame terminates or suffers a collision before
64-bytes (after SFD) have been received, the MAC
will au t omatica lly delete the frame from FIFO.
T
Addressing (source and destination address
handling)
The MAC intercepts the source and destination
address from the incoming frame and send them
to switching engine for the following purposes:
. To update the address table
. To learn the switching target
. To detect the DM8108 predefined addr es s fo r
the device control functions.
T
Error detection (physical medium transmission
errors)
During transmission, if the switching engine
failed to keep the transmit FIFO filled sufficiently,
cause an underflow, the MAC engine will
guarantee the message is either sent as runt
packet (which will be detected by the receiving
sta t ion) or as an invalid FC S (wh ich w ill cause
the receiver to reject the packet).
During reception, the FCS is generated on every
nibb le (including the dribbling bits) coming f ro m
the cable, although the internally saved FCS
value is only updated on the eighth bit (on each
byte boundary). The MAC engine will ignore up
to 7 additional bits at the end of a message
(dribbling bits), that can occur under normal
network operating conditions.
Preamble
1010…1010
7
Bytes
14Preliminary
SFD
10101011
1
Bytes
Destination
Address
6
Bytes
Source
Address
6
Bytes
Length DataFCS
2
Bytes
40 – 1500
Bytes
4
Bytes
Version: DM8108-DS-P02
November 25, 1999
Page 15
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Media access management
IEEE 802.3 protocols define a media access
mechanism that per mit s al l stati ons to access the
channel with equality. Any node can attempt to
connect for the channel by waiting a predefined period
of time (Inter Packet Gap) after the last activity before
transmitting on the media. If two nodes
simultaneously contend for the channel, their signal s
will interact cau sing loss of data, defined as collision.
It is the responsibility of the MAC to attempt to avoid
and recover from the end-to-end transmission to the
receiving station.
T
Medium allocation (collision avoidance, except
in full-duplex operation)
The M AC w ill monitor the mediu m for traffic by
watching for carrier activity. When the carrier is
detected, the media is considered as busy, and the
MAC should defer to the existing message.
The MAC implements the IEEE-802.3 defined two
part defer ral algor ithm , with Inter-Frame-S pac ngPart1 (IFS1) time for 64-bit time (6.4 us for10-BASE
and 640 ns for 100-BASE). The Inter-FrameSpacing-Part2 (IFS2) interval is, therefore, 32-bit time.
The Inter Packet Gap (IPG) timer will start timing the
96-bit time Inter-Frame-Spacing after the receiving
carrier is de-asserted. During the IFS1, the MAC will
defer any pending transmit frame and respond to the
receive message. The IPG counter will be c lea re d to
0 continuously until the carrier de-asserts, at which
point the IPG will resume the 96-bit time count again.
Once the IFS1 period has completed and the IFS2
has commenced, the MAC will not defer to the
receiving frame if a transmit frame pending. The MAC
will n o t attempt to receive the receiving frame, since it
will start transmit and generate a collisio n at 96-b it
time. The MAC will complete the preamble (64-bit)
and JAM (32-bit) sequence before ceasing
transmission and invoking the random back-off
algorithm.
T
Con t ention resolution (collision handling,
except in full-duplex mode)
If a collision is d etected thr ough COL pin before the
complete preamble/SFD sequence has been
transmitted, the MAC engine will complete the
preamble/SFD before appending the JAM sequence.
If a collision is d etected after the preamble/SFD has
been completed, but prior t o 512 bits being
transmitted, the MAC will abort the transmission and
append the JAM sequence immediately. The JAM
sequences is a 32-bit all “34” pattern.
The MAC will attempt to transmit a frame a total of 16
times (15-retries) due to normal collisions (those
within the slot time). Detection of collision will cause
the transmission to be re-scheduled to a time
determined by the random back-off algorithm. If 16
attempts experienced collisions, the transmitting
message will be flushed from FIFO.
If a collision is d etected after 512-bit times have been
tran smitted, the collision is termed “Late” collision .
The M AC w ill abort the transmission, append the JAM
sequence. No retry attempt will be scheduled on
detection of late collision, and transmit message will
be flushed from the FIFO.
The MAC implements the trun c ated exponential
back-off algorithm defined by the 802.3 standard.
In full-duplex mode, the MAC transmits
unconditionally.
Preliminary 15
Version: DM8108-DS-P02
November 25, 1999
Page 16
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
10/100 Mbps MII Half–duplex Transmiss ion
When the MAC has a frame ready for transmission, it
samples the link activity. If the CRS signal is inacive
(no activity on the link), and the IPG counter has
expired, frame transmission begins. The data is
transmitted through TxD(3:0) of the transmitting port,
clocke d on the rising edge of TxCLK. The TxEN is
asserted at same time. In case of collision, the PHY
asserts the COL signal on the MAC, which will then
stop the transmission and will perform contention
resolution. The retry policy is based on the:
Transmi t Except ion Conditi ons
T
Under normal operating conditions
The M AC w ill ensure that the collisions that
occurred with in 512 bit times from the start of
TxCLK
TxEN,
TxD(3:0)
transmission (including preamble) to be
automatically retried with no switching engine
intervention. The transm it FI FO ensures this by
guaranteeing that the data contained within the
FIFO will not be overwritten until at least 64
bytes (512 bits) of preamble plus address, length,
and data fields have been transmitted onto the
network without encountering a collision. In fullduplex mode, the data in the FIFO can be
overwritten as soon as it is transmitted.
T
Under abnormal operating conditions
. Late collision
The M AC w ill abandon the transmit process for
that f r ame, and process the next transm it fr am e
in the ring. Frame experiencing a late collision
will not be retried.
0ns – 25ns
10/100 Mbps MII Half-duplex Reception
Frame reception starts with the assertion of RxDV
(while the MAC is not transmitting) by the PHY.
Once RxDV is asserted, the MAC will begin sampling
the incoming data on pins RxD(3:0) on the rising edge
of RxCL K. Re ce pt ion ends when the RxDV is de-
10ns min.
RxCLK
RxDV, RxER, RxD(3:0)
10ns min.
16Preliminary
asserted by the PHY. The last nibble sampled by the
MAC is the nibble present on RxD(3:0) on the last
RxCLK rising edge in which RxDV is still asserted. If
MAC detected the assertion of RxER while RxDV is
asserted, it will designate this packet as corrupted.
The following figure shows the MII receive signals
timing.
Version: DM8108-DS-P02
November 25, 1999
Page 17
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Receive Exceptional Conditions
T
Abnormal network operating conditions
T
Normal network operating conditions
Abnormal net work conditions include:
During the reception, the MAC will ensu re tha t if
collision occurs during packet reception, the
packet will be automatically deleted from the
receive FIFO. The Rece ive FI F O a lso will delete
any frame that is composed of fewer than 64
bytes (Runt Packet).
32 26 23 22 16 12 11 10 8 7 5 4 2 1
X + X + X + X + X + X + X + X + X + X + X + X + X + X +
1
. FCS errors
Reception and checking of the received FCS is
performed automatically by the MAC. The
equation is:
If any FCS error occurred, the MAC will discard
the packet.
. Late Collision
Late Collision is the collisio n being detected
after 512-bit times while receiv ing.
. FIFO transfer error
The MAC also monit or s FIFO overflow status,
wh ich w ill force the most re cent re ceiving
packet (not finished) in the FIFO be d iscarded.
T
Back-pressure
The DM8108 will generate “jam pat tern” to force
collis ion on th e med ia a s far a s it finds ou t t ha t th e
internal resources can not meet it demands.
10/100 Mbps Full-Duplex Operation
When operating in the Full-duplex mode, the CRS
signal is associated with the received frames only and
has no effect on the transmitted frames. The COL
signal is ignored by the MAC while in Full-duplex
mode. Transmission starts when TxEN goes active;
regardless the state of RxDV. Reception starts when
the RxDV signal is asserted indicati n g traffic on the
receiving port. The DM8108 supports IEEE 802.3x
PAUSE function in the full duplex mode operation.
During receiving, the DM8108 will issues PAUSE
command with the largest timer value to stop the
transmitter if the receiving buffer pointer is above the
full threshold value (high water mark). When the
receiving buffer pointer is below the not-full threshold
value (low water mark), it will issue another PAUSE
command with zero timer value to start the transmitter.
The DM8108 is able to monitor the PAUSE command
and stop transmitting accordingly to the timer value
specified in the command packet.
Preliminary 17
Version: DM8108-DS-P02
November 25, 1999
Page 18
Functional Blocks of the MAC
L
R
L
L
L
I
C
L
X
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Collision,
Recov e ry &
PG Timing
Protocol
PLA
Address
Recognition
ogic
Recei v e
Contro l
ogic
CRC
Gene ra t o r
hecker
M
U
Tra n sm i t
Contro l
ogic
Command
& Status
egisters
M
U
X
Transfer
Contro l
ogic
RX
FIFO
Preamble/Synch
JAM Pattern Ge n.
TX
FIFO
Transfer
Counters
FIFO
Contro l
ogic
18Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 19
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
MII Management
MII Management Regist ers Seri al Access
The MII specification defines a set of 32 16bit status and control register s that are
addressable through the serial data interface
pins MDCLK and MD IO. Please refer to a
PHY device’s spec for the definition
of the registers.
The DM8108 will initialize MII management
registers acce ssing after RESET. In EDO
memory configuration mode, the DM8108
acts as Serial MII initiator. In SDRAM
memory configuration, only the DM8108
whose device # equals to 0 is the initiator.
Other devices cascaded will be the listener to
extract the auto-negotiation information from
MID stream.
MDCLK has a maximum clock rate of 2.5MHz.
The MDIO line is bi-directional and may be
shared by up to 32 devices. The protocol and
the access waveform are shown below:
Figure Typical MDIO Read Operation
MDCLK
MDIO z
(DM8108)
z 0 1 0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0
0 z
Figure Typical MDIO Write Operation
adle start op code PHY address Register address TR Register Data
idle start op code PHY address Register address TR Write Data
Preliminary 19
Version: DM8108-DS-P02
November 25, 1999
Page 20
Auto-Negotiation
Auto-negotiation disabled
When ANEG* (MA[7:0]) strap pin is high, autonegotiation is disabled, and the corresponding port
can be selected as half- or full- duplex mode
respectively. Following the RESET the port duplex
mode is set by the state sampled on the TXEN(7:0)
pins. The speed that each port operates in (10Mbps
or 100Mbps) is determined by the frequency of
TxCLK(7:0) and RxCLK(7:0) generated by PHY. The
PHY generates 25MHz clock for both TxCLK and
RxCLK in 100Mbps operation and 2.5MHz clock in
10Mbps operation.
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Enabling Partition Mode
Partitioned mode is enabled always.
Entering Partition State
A port will en ter the P art ition sta te w hen PAEN* strap pin
sampled low during reset and when either of the following
conditions occurs:
T
The port detects a collision on every one of 64
consecutive re-transmit attempts to the same packet.
T
The port detects a single collision which occurs for
more than 512 bit time s.
Auto-negotiation enabled
When ANEG* (MA[7:0]) pins are tied low, the MAC
decodes the duplex mode from the values of the
Auto-Negotiation Advertisement Register and the
Auto-Negotiation Link Partner Ability Register at the
end of Auto-negotiation process. Once the duplex
mode is resolved, the DM8108 updates the port
control registers. The DM8108 will continuous ly
perform the following operations for each port (PHY
address 0-7 alternat ive l y ), implemented as READ
commands issued via the MDCLK/MDIO interface:
Link Detection and Link Detection Bypass
(FLNK*)
The DM8108 will cont inuously query the PHY devices
for their link status associated with Auto-Negotiation
Process. The DM8108 will alternatively read
registers from PHY address 0 to 7 and update the
internal link bits according to the value of bit 2 of
register 1. In case of link down (bit 1.2=0), that port
will e n t e r “ link te st fail state”. In this state, all the port’s
logic go to a reset state. The port will enter the “link
up state” if the bit 1.2 is “1” or the FLNK* (force link,
LEDSTB* strobed low during reset) pin is sampled low
during reset.
Partition Mode
A port enters partition mode when more than 64
cons e cut ive collis ion s a re s een on the port. In partition
mode the port continuous to transmit but it will not receive.
A port returned to normal operation mode when a good
packet is seen on the wire.
While in Partition state:
T
The port will continue to tr an smit its pending packet,
regardless of the collision detection, and will not allow
the u s ual Ba ck- off Al gori thm. A dditional packets
pending for transmission, will be t ra n s mitte d , while
ignoring the internal collision in d ica tion . Th is fre es u p
the port’s transmit buffers which would otherwise be
filled up at the expense of other ports b uffe rs. The
ass u mpt ion is t ha t th e pa rtition is signifying a s ystem
failure situation (bad connection/cable/station), thus
dropping packets is a small price to pay vs. the cost of
halting the switch due to a buffer full condition. The
partition indication is available via the LED interface.
Exiting from Pa rtition S tate
The Port exits from Partition State, following the end of a
successful pac ket transmission. A successful pack et
transmission is defined as no collision s w er e detected on the
first 512 bits of the tran smission.
Expansion B us
The expansion bus operates at Full-Duplex mode that
provides up-to 7200Mbps bandwidth for device to
device connection. Several DM8108 can be
cascaded as a pipe to provide a robust Ethernet
Switching system.
The b u s itself is very simple. The transmit and receive ports
contain independent data, valid and handshake signals.
No bus arbitration is involved.
20Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 21
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
The receive port utilizes the RDVCLK to clock in the
received data into FIFO and uses RXTOG requests for a
Receiving Buffer block. The switching engine will execute
the similar process as for the Ethernet Ports.
TXENCLK
TD(3:0) Nib n-1 NIb nNib n+1
The transmit port appends the Sync. field to a normal
Ethernet packet and sends the packet out through TD(3:0)
at t he r is in g edge of TX ENCLK.
SwitchingEngine
All the packet s witching is processed by the Switching
Engine, which has following functions:
MAC Address Learning Process
The DM8108 has a self-learning mechanism for learning
the MAC addresses of attached Fast Ethernet devices in
real time. The DM8108 searches for the source address of
an incoming packet in the Address Table and acts as
follow s :
If the source address was not found in the Address Table,
the DM8108 waits until the end of th e pa ck et (no error) and
updates the Address Table.
If the source address was found in the Address Table, the
DM8108 waits for a good packet received indication.
Address Recognition
The DM8108 forwards the incoming packets to appropriate
port(s) according to the Destination Address as follows:
T
If the packet is from a local port--
the packet is a Multicast packet and forward s it to
the Expansion Transmit port and all the local
ports except the incoming port,
3) If it is a Multicast/Broadcast address, the packet is
forwarded to the Expansion Transmit port and all
local ports (except to the port on which the packet
was received).
T
If the packet is from Expansion Bus—
1) If it is a Unicast address specified in the
Destination Address in the Ethernet Packet, the
DM8108 will:
. If the recorded port pointed to a local port, the
pack et w ill be fo rw a rded to that port.
. If the destination address is not found (not
recorded by the Mac address learning process),
the packet will be forwarded to all the lo cal p or ts
and the Expansion Transmit port.
2) If it is a Multicast/Broadcast address (destination
device # should set invalid), the packet will be
forwarded to all the local ports and the Expansion
Transmit port.
1) If it is a Unicast address and the address is found
in the Address Table, the DM8108 will:
. If the port number recorded is matched to port
number on which the packet received, the packet
is discarded.
. If the port numbers are different, the packet is
forwarded to the appropriate port.
2) If it is a Unicast address and the address is not
found in the Address Table, the DM8108 acts as if
Preliminary 21
Version: DM8108-DS-P02
November 25, 1999
Address Aging
The DM8108 includes hardware to support for automatic
address aging.
Buffers and Queues
The DM8108 incorporates 3 transmit queues and one
common receive buffer area for the two Fa st Ethernet ports
and the Expansion Port, The queues and buffers are
located in the DRAM along with Address Table. The
Page 22
DM8108 data structure components are the following:
R
T
Receiving Buffer – a common receive buffer is
allocated for each Fast Ethernet Receiving Port and
Expansion Bus Receiving Port. The size of the
receiving buffer is defined as 642KB (448 blocks) or
1728KB (1152 blocks) (depending on the DRAM size)
of 1.5K Bytes each. The DM8108 allocates the buffers
to the 8 Ethernet ports and the Expansion port.
23 22 1211 0
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Transmit Descriptors (TxDR) – A set of 9 transmit
descriptor rings. Each ring contains 512 descriptors.
The Descriptor’s size is 32-bit and contains the
Receiving Buffer’s Block Number, the packet length
and the packet type (Multicast or U ni-ca st). The
Transmit Descriptors reside in the DRAM.
T
Read/Write Pointers – 9 pairs of pointers to the
Transmit Descriptors.
M/ -U
Byte Co untBlock Number
Empty List Tx Descriptors: 1K x 3 Receive Buffer
ead Pointer
Write Poin ter
Next Empty
Frame # n
Frame # 2
Frame # 1
Frame # 0
22Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 23
DM8108 DRAM Address Mapping
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
The Address Table structure occupies 128K bytes of
memory and is controlled and initialized by the
DM8108. Following RESET, the DM8108 initializes
FieldDescription
VValid – Indicates a valid entry; 0 – Not Valid, 1 – valid.
Address (47:0)Source MAC address. Unicast address only
Port #
Reserved
Device #
Time Stam p
Port Number – indicates which of the 3-port in a DM8108 is associated with this source address.
0h – 1h: Port 0 –Port 1 (2 Ethernet ports); 2h: Expansion Port.
Device number—indicate w hich device in the switching system is associated with this source address
4-bit Tag—used to identify the update sequence. If the entry-block(4-entry) pointed by a MAC address index are
all occupied, the entry that has oldest time stamp will be replaced.
Packet Forwarding
The following sections describe the procedures for
forwarding packets under different situations:
Forwarding a Uni-cast packet to a local Ethernet
port
the Address Table by invalidating the Valid bit of all
entries.
address entry. The DA will point to an entry that
specifies the local por t’s number.
At the end of reception of an error-free packet, the
packet inf orm ati on is writ ten to the appropri ate por t’s
transmit descriptor. This information includes the
Byte Count, Receive block address which points to
the Write Pointer, and the Priority indication.
The incoming packet is fed to the Rx FIFO and is
transferred to an empty block in the Receive Buffer
area of DRAM. The switching engine will claim the
block by setting the Empty List not empty. In case of
The Write Pointer of the outgoing port’s transmit
descriptor i s i nc r emented. The target por t prepare for
transmission whenever the Write Pointer and the
Read pointer are not equal.
collision or FIFO overflow, tr ansfer error etc. , the
engine has to reset the Empty List associated with the
block.
In parallel, an address recognition cycle will be
The engine resolves the priority issue and fills the Tx
FIFO before starting the transmission. If any Tx
FIFO under run situation happens, the MAC has to
force the packet “Bad” and inform the engine to retry.
performed for both the destination and source address.
The DM8108 will use SA to learn a new or changed
At the end of the good transmit process, the target
port increments the Read Pointer. The Engine clears
the appropriate bit in the Empty List.
Preliminary 23
Version: DM8108-DS-P02
November 25, 1999
Page 24
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
Forward a Mu lticast, Broadcast and “Unknown”
packet
If the received packet’s DA is not found in the Address
Table, or the packet is a Multicast or Broadcast packet,
it will be t reated as a Multica s t packet, the s witching
engine will perform most of the steps mentioned
above and forwards the packet to all ports.
DRAM Controller
The DM8108 includes dir ec t support for Sy nc hr onous
DRAM. The DRAM interfac e i s entirely glue-less. All
the accesses are performed as 32-bit. The memory
controller is designed targeting up to 90-MHz.
The DM8108 refreshes the DRAM automatically.
1us
LDCLK
Following the RESET, the DRAM controller will
perform DRAM testing by write/read several pattern s
and invalidate all the entries in the Address Table. The
DRAM test result is sent out through the LED status
outputs.
LED interface
The DM8108 provides LED data bus, address bus and
strobe signals to:
T
Display the chip or ports’ configuration and
transfer status,
T
Display the critical state signals for debug
purpose.
LED signals definition
The following timing diagram shows the interface of
LED bus while displaying LED signals.
LDSTB
LD
For the LED sig n a l s h a ving dyna mic cha r acte ristics, the
DM8108 will maintain the signal for a minimum of
Dynamic
signal
LD 4ms – 8 ms
4ms before sending to the LED bus if the state is triggered.
24Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 25
8 port 10/100M Fast Ethernet Swit ching Control ler
The fo llowin g table shows the mult iplexed LED signals.
Bit #SignalsBit #Signals
1Primary_port status 0 (link 0)41Transmit (4)
2Primary_port status 1 (link 1)42Receiving (4)
3Primary_port status 2 (link 2)43Collision (4)
4Primary_port status 3 (link 3)44Rx buffer full (4)
5Primary_port status 4 (link 4)45Reserved
6Primary_port status 5 (link 5)46Reserved
7Primary_port status 6 (link 6)47Full duplex (4)
8Primary_port status 7 (link 7)48Port Speed (4)
123Expansion Port RX buf. full
124Dynamic allocation buf. full
125-128Reserved
DM8108
26Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 27
Strap Pins during Reset
The following table shows the strap pins during RESET.
SymbolDescription
LEDSTBStrap pin during r eset:
0= force link, 1= link detection through serial MII (default)
LEDDStrap pin for TXENCLK frequency of expansion port:
0=fast, 1= slow (def ault)
TXD0[3:0]TXD0[0]: Strap pin for the operating frequency
0=88Mhz; 1= 66Mhz (def ault)
TXD0[1]: Strap pin to enable partition mode
0=enable; 1=disable (def ault)
TXD0[2]: Strap pin to enable expansion port
0=enable; 1=disable (def ault)
TXD0[3]: Strap pin to enable BIST
0=ini t onl y; 1=enable (def ault)
TXD1[3 :0]TXD1[2:0 ]: tes t function
TXD1[3]: disable CRC checking
0= di sable; 1=enable (def ault)
TXD2[3:0]Strap pins during reset:
TXD2[2:0] = device # setting
TXD2[3] strapped for DRAM timing: 0=fast, 1= normal (default)
TXD3[3:0]Strap pin during reset:
TXD3[0] Max packet size selection:
0 = 1536 by tes, 1=1518 bytes ( default )
TXD3[1] Back pressure and flow control enable:
0 = enabl e, 1 = disable (def ault)
TXD3[3:2] agi ng ti ming selection:
00 – 64sec. 01 –12 8 sec.
10 – 256 sec. 11 – disabl e (def ault)
TXD4[3:0]Strap pin during reset:
TXD4[0] port 0 trunking sel ection: 0 = enabl e, 1=disable (def ault)
TXD4[1] port 1 trunking sel ection: 0 = enabl e, 1=disable (def ault)
TXD4[2] port 2 trunking sel ection: 0 = enabl e, 1=disable (def ault)
TXD4[3] port 3 trunking sel ection: 0 = enabl e, 1=disable (def ault)
TXD5[1:0]Strap pin during reset:
TXD5[1:0] broadcast f iltering rat e select ion:
00 = 8k packets/sec. 01 = 16k packets/sec.
10 = 64k packets/sec. 11 = di sable (def ault)
TXEN(7:0)Strap pins during reset for ports’ operating mode:
0= full duplex, 1=half duplex (default)
MA9Strap pin during r eset:
0= limit4 enabled, 1= disabled (default)
MA8Strap pin during r eset for memory siz e selection:
Stresses above those listed under “Absolute
Maximum Ratings” may cause permanent damage to
the device. These are stress ratings only.
Functional operation of this device at these or any
other conditions above those indicated in the
28Preliminary
operational sections of this specification is not
implied. Exposure to absolute maximum rating
conditions for extended periods may affect device
reliability.
Version: DM8108-DS-P02
November 25, 1999
Page 29
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
DC Electrical Ch aracteristics
Symbol
VihInput high volt age2. 0V
VilInput low voltage0.8V
VohOutput high voltage2.4VccV
VolOutput l ow volt age00. 4V
IihInput high current
IilInput low current
IozOutput high impedence curr ent
IccOperating CurrentTBDmA
8 port 10/100M Fast Ethernet Swit ching Control ler
Preliminary 33
Version: DM8108-DS-P02
November 25, 1999
Page 34
DM8108
r
r
r
8 port 10/100M Fast Ethernet Swit ching Control ler
Appendix: Cascade Three DM8108s to a 24-port Switch Illustration
SGRAM
DM8108 DM8108 DM8108
DRAM
rxd2
txd2
xdvclk txenclk
SDRAM
DRAM
rxd2
txd2
xdvclk txenclk
SDRAM
DRAM
rxd2
txd2
xdvclk txenclk
PHY
PHY
PHY
34Preliminary
Version: DM8108-DS-P02
November 25, 1999
Page 35
Ordering Information
Part Num berPin CountPackage
DM8108208QFP
Disclaimer
The information appearing in this publication is believed to
be accurate. Integrated circuits sold by DAVICOM
Semiconductor are covered by the warranty and patent
indemnification provisions s tipulated in the terms of sale
only. DAVICOM makes no warranty, express, statutory,
implied or by description regarding the information in this
publication or regarding the information in this publication or
regarding the freedom of the described chip(s) from patent
infringement. FURTHER, DAVICOM MAKES NO
WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PURPOSE. DAVICOM deserves the right to halt
production or alter the specifications and prices at any time
without notice. Accordingly, the reader is cautioned to verify
that the data sheets and other information in this publication
are current before placing orders. Products descri bed herein
are intended for use in normal commercial applicati o n s.
Applications involving unusual environmental or reliability
requirements, e.g. military equipment or medical life support
equipment, are specifically not recommended without
additional processing by DAVICOM for such applica tions .
Please note that application circuits illustrated in this
document are for reference purposes only.
DM8108
8 port 10/100M Fast Ethernet Swit ching Control ler
DAVICOM’s terms and conditions printed on the order
acknowledgment govern all sales by DAVICOM.
DAVIC OM will not be bound by any terms inconsistent with
these unless DAVICOM agrees otherwise in writing.
Acceptance of the buyer’s orders shall be based on these
terms.
Company Ov erview
DAVICOM Semiconductor, Inc. develops and
manufactures integrated circuits for integration into data
communica tion pro ducts. O ur mission is to design and
produce IC products that re the industry’s best value for
Data, Audio, Video, and Internet/Intranet applications. To
achieve this goal, we have built an organization that is able
to develop chipsets in response to the evolving technology
requirements of our customers while still delivering p r oducts
that meet their cost requirements.
Products
We offer only products that satisfy high performance
requirements and which are compatible with major
hardware and software standards. Our currently available
and soon to be released products are b ased on our
proprietary designs and deliver high quality, high
performance chipsets that comply with modem
communication standards and Ethernet networking
standards.
Contact Windows
For additional information about DAVICOM products, contact the sale s department at:
Headquar ter s
Hsin-chu Office:
3F, No. 7-2, Industry E. Rd. IX,
Scienced-based Industrial Park,
Hsin-c hu City, Ta iwa n, R .O.C.
TEL: 886-3-579-8797
FAX: 886-3-579-8858
WARNING
Conditions beyond those listed for the absolute maximum may destroy or damage the products. In addition, conditions for sustained periods at near the limits
of the operating ra nges will stress and may tempo rarily (and perm anently) affect and damage structure, performa nce and/or function.
Preliminary 35
Version: DM8108-DS-P02
November 25, 1999
Taipei Sales & Marketing Office:
8F, No. 3, Lane 235, Bao-chiao Rd.,
Hsin-tie n C ity, Taipe i, Taiw an , R.O.C.
TEL: 886-2-2915-3030
FAX: 886-2-2915-7575
Email: sales@davicom.com.tw
Loading...
+ 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.