• Optional EEPROM Interface for advanced
switch configurations.
•
• Port VLAN/trunking.
• Link/Rx activity, packet buffer utilization LED
display.
• 83MHz for non-blocking 16 port switch.
•
• 208 pin PQFP package, 3.3V operation voltage.
(Preliminary)
IEEE802.3, 802.3u and 802.3x specifications and
is a non-blocking 16 port 10M/100M Ethernet
switch device.
Support 16 RMII ports for 10M/100M operation. 4MB memory interface provides maximum
2730 packet buffers for Ethernet packet buffering.
Up to 8192 address entrys are provided by the
MTD516, and the MTD516 use full Ethernet
address compare algorithm to minimize hashing
collision events.
to config port trunking, port VLAN, static entry,
802.3x flow control threshold, flooding port,
broadcast control threshold. Each MTD516 ports
support 10M/100M auto-negotiation by MII man-
The MTD516 also provides 2 pins for Link/
RX activity, packet buffer utilization LED display
function.
BL OCK DIAGRAM
SDRAM/
SGRAM
Interface
Memory
Controller
Memor y
Arbiter
Port
Switch
Logic
MAC0DMA0
MAC1DMA1
MAC2DMA2
MAC3DMA3
MAC4DMA4
MAC13DMA13
MAC14DMA14
MAC15DMA15
RMII0
RMII1
RMII2
RMII3
3~12
RMII12
RMII13
RMII14
RMII15
This datasheet contains new product information. Myson Technology reserves the rights to modify the product specification
the product.
1/27MTD516 Revision 1.2 19/06/2000
f
Page 2
without notice. No liability is assumed as a result of the use of this procuts. No rights under any patent accompany the sales o
MYSON
SYSTEM DIA GRAM
RMII11-15
Transfor mer
(**Pr ogra m mab le)
MII mana gement
MTD516
TECHNOLOGY
SGRAM
(512kx32x2)
SGRAM
(256kx32x2)
(**OPT I O N)
EEPROM
MTD516
(Preliminary)
LEDs
RMII 0-7
OCTAL
PHYsceiv er
OCTAL
Transfor mer
RJ45RJ45
OCTAL
PHYsceiver
OCTAL
This datasheet contains new product information. Myson Technology reserves the rights to modify the product specification
I/O After ResetB deassert to ? ms , this pin indicate EECLK,
I/O After ResetB deassert to ? ms , this pin be indicated EEDATA,
I/O LED Clock.
Using bursted clock for latching 32 display informations (one clock
latch one information) , per burst have 32 continuous clocks (clock
period = 320 ns); and the time between burst to burst is 655 us.
7/27
Page 8
MTD516 Revision 1.2 19/06/2000
MYSON
The serial output display informations using bursted styling ,per burst
external pull_low = 0, port15 operate in half_duplex mode.
0VLAN tag 1522 bytes acceptance function enable.
external pull_hgih =1, VLAN tag 1522 bytes acceptance enable.
0Flooding control function enable.
external pull_hgih =1, flooding control function enable.
external pull_low = 0, flooding control function disable.
0Flooding Port ID bit 3
external pull_hgih =1.
0Flooding Port ID bit 2
external pull_hgih =1.
Descriptio ns
TXEN1
TXEN0
FloodID[1]
FloodID[0]
0Flooding Port ID bit 1
external pull_hgih =1.
0Flooding Port ID bit 0
external pull_hgih =1.
10/27
Page 11
MTD516 Revision 1.2 19/06/2000
MYSON
4.0 FUNCTIONAL DESCRIPTIONS
4.1 Packet sto re and for w ardi n g
each good unicast packet is completely received. The static address learning is achieved by EEPROM
tured. If the DA can not get a hit result, the packet is going to switch broadcast or forward to the dedi-
The buffer queue manager is implemented to manage the external shared memory (use SDRAM/
4.5 Ful l Dupl ex 802.3x Flow Cont r o l
queue’s on_using value reach the initialization setting threshold value(recommended XON_TH = 40’h
to the initialization threshold value(recommended Xoff_TH = 1C’h when using 2Mbytes external mem-
MTD516
TECHNOLOGY
The MTD516 is an 16 ports 10/100 Mbps fast Ethernet switch controller. It is a low cost solution for sixteen ports fast Ethernet SOHO switch design. No CPU interface is required; After power on reset,
MTD516 provide an auto load configuration setting function through a 2 wire serial EEPROM interface
to acess external EEPROM device, and MTD516 can easily be configured to support port_trunking,
port_ VLAN, static entry, 802.3X flow control threshold setting , flooding port assignment ...etc functions. The following descriptions are MTD516’s major functional blocks overview.
The MTD516 use simple store and forward algorithm as packet switching method. Input packet from
ports will be stored to external memory first, while packet is good for forward (CRC chech ok, 64Bytes <
length < 1518Bytes, not local packets, in the same VLAN group ) , if this packet’s DA hits, than forward
this packet to the destination port, otherwise this packet will be broadcasted.
4.2 Learning and Routi ng
The MTD516 supports 1K or 8K MAC entries for switching. Dynamic address learning is performed by
configuration. On the other hand, the routing process is performed whenever the packet’s DA is capcated port according to the flooding control selction.
(Preliminary)
4.3 Aging
Only the dynamic address entries are scheduled in the aging machine. If one station does not transmit
any packet for a period of time, the belonging MAC address will be kicked out from the address table.
The aging out time can be program through the EEPROM auto load configuration. (Default value is 300
seconds)
4.4 Buffer Queue Management
SGRAM) for packet buffering. The main function of the buffer queue manager is to maintain the linked
list consists of buffer IDs, which is used to show the corresponding memory address for each incoming
packet. In addition, the buffer queue manager monitors the rested free spaces status of the external
memory, If the packet storage achieve the predefined threshold value, the buffer queue manager will
raise the alarm signal which is used to enable the flow control mechanism for avoi ding transmission ID
queue overflow happening. MTD516 provide 802.3x flow control in full duplex mode and back pressure
control in half duplex mode.
In full duplex mode, MTD516 supports the standard flow control defined in IEEE802.3x standard. It
enables the stopping of remote node t ransmissions via a PAUSE frame information interactoin. When
the “802.3x flow control enable” bit is setted during power on reset (MDC pin is external pull_high),
it enables MTD516 supporting 802.3x flow control function in full_duplex mode; When output port buffer
under total free ID less then 100’h), MTD516 will send out a PAUSE packet with pause time equal to
FFF to stop the remote node transmission; When the output port buffer queue’s on_using value reduce
ory), MTD516 will also send a PAUSE packet with pause time equal to zero to inform the remote node
to retransmit packet.
4.6 Half Duplex Back Pressu r e Contro l
In half duplex mode, MTD516 provide a back pressure control mechanism to avoid dropping packets
during network conjection situation. When the “back pressure control enable” bit is set during power on
11/27
Page 12
MTD516 Revision 1.2 19/06/2000
MYSON
4.7 MII Polling
4.8 MAC and DMA engi ne
Tx_engine will constantly monitor the line traffic using derfering precedure. Only if it has been idle for a
pleted by address learning/routing process and buffer queue management operation.
4.9 EEPROM inter face
to acess external EEPROM device(24C02) after power on reset . MTD516 can easily be configured to
assignment ...etc functions.
The MTD516 supports VLAN configuration by port based methodology. One port select the certain
is not forwarding to the destination port whose VLAN group is different from the source port.
4.11 Por t Trunk i n g
The port trunking function can also be implemented by VLAN registers. One trunk port isolates the
ancing and maintain the packet sequences.
4.12 Memory Interf ace
MTD516
TECHNOLOGY
reset (EECLK pin is external pull_high), it enables MTD516 supporting back pressure function in
half_duplex mode; When output port buffer queue’s on_using value reach the initialization setting
threshold value (same with the Xon_TH value), MTD516 will send a JAM pattern in the input port when
it senses an incoming packet , thus force a collision to inform the remote node transmission back
off and will effectively avoid dropping packets. If the “back pressure control enable” bit is not set, and
there is no free buffer queue available for the incoming packets, the incoming packets will be dropped.
The MTD516 supports PHY management through the serial MDIO/MDC interface. After powe r on
reset, the MTD516 write related abilities to the advertisement register 4 of connected PHY devices and
restart the auto_negotiation prcedure via MDIO/MDC interface using the predefined PHY addresses
increasingly from “01000”b to “1011 1”b. The MTD516 will periodically and continuously poll and update
the link status and link partner’s ability which include speed, duplex mode, and 802.3x flow control
capable status of the connected PHY devices through MDIO/MDC serial interface.
The MTD516’s MAC performs all the functions in IEEE802.3 protocol, such as frame formatting, frame
stripping, CRC checking, bad packet dropping, defering to line traffic, and collision handling. The MAC
Rx_engine checks incoming packets and drops the bad packet which include CRC error, alignment
error, short packet (less than 64 bytes), and long packet(more than 1518 bytes or 1522 bytes when the
“VLAN tag 1522 bytes receive enable” bit is set during power on reset). Before transmission, The MAC
(Preliminary)
96 bits time (a minimum interpacket gap time, IPG time), actual transmmission can be started. For the
half duplex mode, MAC engine will detect collision; if a collision is detected, the MAC Tx_engine will
transmit a JAM pattern and then delay the re_transmission for a random time period determined by the
back_off algorithm (MTD516 implements the truncated exponential back_off algorithm defined in IEEE
802.3 standard). For the full duplex mode, collision signal is ignored.
The MTD516’s DMA engine performs the packets non_blocking transportation between MAC engine
and external memory according to a high speed switching procedure. The switching procedure is com -
MTD516 provide an auto load configuration setting function through a 2 wire serial EEPROM interface
support port_trunking, port_ VLAN, static entry, 802.3X flow control threshold setting , flooding port
4.10 Por t B ased VLA N
ports to form its VLAN group by configuring the VLAN r egister. The packet (including broadcast packet)
packet transmitting and receiving from the other trunk ports, which performs a logical trunk topology.
The non-trunk port should choose only one trunk port for transmitting, which can achieve the load bal-
Two kinds of external memory interface can be selected by user -- 2M byte memory (256K32 x 2) and 4
M bytes ( 512K32 x 2). Maximum 4M byte external memory can be used for packet buffering. “-10 “
12/27
Page 13
MTD516 Revision 1.2 19/06/2000
MYSON
speed grade of SGRAM/SDRAM device is recommanded. The following table is the SGRAM applica-
4.13 Intern al MII Regi s t ers A c ess and Cont r ol
Using LEDCLK rising edge with 32 bits shift register to latch LEDDATA as DATA[31:0]. DATA[15:0]
matically), DATA[30] report the buffer almost full alarm signal .
MTD516
TECHNOLOGY
tion pin connection :
Memory Type
256K32x 2A8512K32x 2A9A8
The MTD516 support 2 serial pins (SDIO/SDC) for internal registers acess and control; The detailed
registers informations are presented in Section5.0 (Internal MII Registers).
4.14 LED Dis play
The MTD516 use 2 pins to output 2 kinds of LED display -- LEDDATA, LEDCLK,
report Port15~0 link/receive activity led status. DATA[29:16] report packet buffer utilization rating, and
DATA[31] report external memory test result(after power reset, MTD516 will test external SDRAM auto-
Memory
Chip No
A[8]GND
(Preliminary)
13/27
Page 14
MTD516 Revision 1.2 19/06/2000
MYSON
Port Reg Select
“0” means Reg addr1-4 as Global Registers described as follows.
bit[4:1] = 0, Reg1-4 switch to Port0 Registers
bit[4:1] = 1, Reg1-4 switch to Port1 Registers
bit[4:1] = 2, Reg1-4 switch to Port2 Registers
bit[4:1] = 3, Reg1-4 switch to Port3 Registers
bit[4:1] = 4, Reg1-4 switch to Port4 Registers
bit[4:1] = 5, Reg1-4 switch to Port5 Registers
bit[4:1] = 6, Reg1-4 switch to Port6 Registers
bit[4:1] = 7, Reg1-4 switch to Port7 Registers
bit[4:1] = 8, Reg1-4 switch to Port8 Registers
bit[4:1] = 9, Reg1-4 switch to Port9 Registers
bit[4:1] = a, Reg1-4 switch to Port10 Registers
bit[4:1] = b, Reg1-4 switch to Port11 Registers
bit[4:1] = c, Reg1-4 switch to Port12 Registers
bit[4:1] = d, Reg1-4 switch to Port13 Registers
bit[4:1] = e, Reg1-4 switch to Port14 Registers
bit[4:1] = f, Reg1-4 switch to Port15 Registers
bit[9:6]= 0 means group 0 , etc ...
P.S while EEPROM is enabled, this register’s content will be updated by
MTD516
TECHNOLOGY
5.0 Reg is ter Des cri pt io n
Glob al Regis t er : Cont r ol Regist er (addr = 5’h0)
BitNameR/WDes cript ions
0
enable
4-1
Port Reg Select
R/W“1” means Reg addr1-4 as Port Registers described as follows.
R/WIf bit0 = 0, bit[4:1] don’t care, and under bit[0] = 1,