1
P/N:PM0729 REV. 1.1, MAY. 28, 2001
1.0 Features
Direct interface to 80188/186 up to 40Mhz.
Integrated 10/100 TP tranceiver on chip to reduce
overall cost
Optional MII interface f or e xternal tranceiv er .
Fully comply to IEEE 802.3u spec.
Best fit in network printer and hub/switch manage-
ment application
A local DMA channel between on-chip FIFOs and
packet memory
Shared memory architecture allow host and
MX98726EC to use only one single SRAM
Host DMA can share packet memory with local DMA
with simple hand shake protocol for x188/186 type of
processor
Supports proprietary local DMA channel to share
packet memory
MX98726EC
SINGLE CHIP 10/100 FAST ETHERNET
CONTROLLER WITH uP INTERFACE
Support bus size configuration:
- CPU : 8 bits, SRAM: 8 bits
- CPU : 16 bits, SRAM: 8/16 bits
Flexible packet buffer partition and addressing space
for 32k, 64k up to 512K bytes
NWAY autonegotiation function to automatically set
up network speed and protocol
3 loop back modes for system level diagnostics
Rich on-chip register set to support a wide variety of
network management functions
Support 64 bits hash table for multicast addressing
Support software EEPROM interface for easy up-
grade of EEPROM content
Support 1K bits and 4K bits EEPROM interface
5V CMOS in 128 PQFP package for minimum board
size application
1.1 Introduction
MX98726EC ( Generic MAC , or GMAC ) is a cost effec-
tive solution as a generic single chip 10/100 Fast Ethernet
controller. It is designed to directly interface 80188, 80186
( host ) without glue logic. Two types of memory sharing
schemes are supported, i.e. interleaved and shared mode
to support a variety of applications. Single chip solution
will help reduce system cost not only on the compo-
nents but also the board size. Full NWAY function with
10/100 tranceiver will ease the field installation, simply
plug the chip in and it will connect itself with the best
protocol available.
The interleaved mode allow uP to access SRAM (
packet/host buffer ) through MX98726EC's local DMA
channel. This way, no extra SRAM interface logic is
needed on the host side. If high performance is desired,
then shared memory mode is another alternative which
allow host to access SRAM on its own by denying SRAM
bus grant to MX98726EC using simple hand shake pro-
tocol. Without SRAM bus grant, MX98726EC will float
its interface connected to the SRAM, therefore host can
utilize its own memory subsystem to conduct its own
SRAM access.
A intelligent built-in SRAM bus arbitor will manage all
the SRAM access requests from host, on-chip transmit
channel and on-chip receive channel. The throughput
of these network channels and MX98726EC's DMA burst
length can be easily adjusted by option bits on the chip.
These options can help system developers to "fine tune"
a best cost/performance ratio.
MX98726EC is also equipped with fast back-to-back
transmit capability which allow software to "fire" as many
transmit packets as needed in a single command. Re-
ceiv e FIFO also allow back-to-bac k reception. Optional
EEPROM can be used to stored networ k network ad-
dress and other information. In case cost is really a con-
cern, most configuration options including network ad-
dress can be programmed through uP.
2
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
1.2 Internal Block Diagram
Packet Buffer
(SRAM)
SRAMIU
RX
FIFO
RX
SM
Host BIU
TX
FIFO
TX
SM
PCS
Architecture and Interface overview
100 TX PHY
100TX PMD
interface
NWAY
CTRL & REGS
10Mbps
MCC+TP interface
EPROM
MII Interface
Serial ROM port
1.3 T ypical Applications
uP with dedicate bus
MX98726EC
Packet
buffer
Customer Application
Interleaved memory Architecture
TP cable
RJ45
Xformer
decode
EPROM
C46/C66
local DMA
Host side
CSB
3
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
1.4 Combo Application
uP with
shared bus MX98726EC
Packet
buffer
Host Memory
Subsystem
Customer Application
Shared memory Architecture
TP cable
RJ45
Xformer
Decode
EPROM
C46/C66
SRAM Bus
CSB
HOLD
HLDA
Host
MX98726EC
Packet
buffer
Host Memory
Subsystem
Customer Application
COMBO APPLICATION
RJ11
Xformer
1M 8PHY
or
10M 8PHY
Decode
EPROM
C46/C66
Local DMA
TP Cable
Phone Line
CSB
or
RJ45
Xformer
4
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
2.0 Pin Configuration and Description
1
2
3
4
5
6
7
8
9
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
GND
VDD
AD12
AD13
AD14
AD15
VDD
AD0
AD1
GND
AD2
AD3
AD4
AD5
AD6
AD7
MIO
CSB
HLDA
HOLD
C46/C66
UPTYPE1(MDC)
UPTYPE0(MDIO)
GNDA
VDDA
GNDA
MD10
MD11
GND
MD12
MD13
MD14
MD15
EECS
MA0(EECK)
GND
MA1(EEDI)
MA2(EEDO)
MA3
MA4
MA5
MA6
MA7
VDD
MA8
MA9
MA10
MA11
MA12
MA13
MA14
GND
MA15
GND
VDD
(RXD3)MA16
(RXD2)MA17
(RXD1)MA18
(RXD0)MA19
TXD3
TXD2
TXD1
TXD0
VDDA
GNDA
RDA
VDDA
X2
CKREF(X1)
GNDA
GNDA
VDDA
GNDR
VDDR
RXIN
RXIP
VDDR
GNDR
GNDR
VDDA
TXON
TXOP
GNDA
CPK
RXT2EQ
RTX
VDDA
GNDA
GNDA
VDDA
MD9
MD8
MD7
MD6
MD5
VDD
MD4
MD3
MD2
GND
VDD
MD1
MD0
MWE1B
MWE0B
MOEB
MCSB
GND
LED0(TXC)
LED1(TXEN)
CLKIN
INTB
SRDY
RDB
WRB
PSENB
ALE
BHEB
RSTB
A16(COL)
A17(CRS)
A18(RXDV)
A19(RXC)
AD8
AD9
AD10
AD11
GND
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
MX98726EC
5
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
2.1 Pin Description :
PIN# Pin Name Type Description
82 CLKIN I, TTL Host Clock Input : 8M to 40 Mhz.
49-54, AD[7:0] I/O, 4ma Multiplexed Address/Data Bit [7:0] : Internal pull-down
56,57
59-62, AD[15:8] I/O, 4ma Multiplexed Address/Data Bit [15:8] : Internal pull-down
66-69
76 A LE I,TTL Address Latch Enable : Active high
70 A19(RXC) I, TTL Host Bus Address Bit19, when on-chip tranceiver is used,it is used in
A[19:16], when in MII mode, it is defined as receive clock RXC (25MHz or
2.5MHz) When this pin is used as address bit, it is internally grounded until
Reg50.6 (A19A16EN bit) is set to enable decoding of this pin as address
bit. Internal pull-up
71 A18(RXDV) I,TTL Host Bus Address Bit18, when on-chip tranceiver is used,it is used in
A[19:16], when in MII mode, it is defined as receiv e data v alid RXDV
signal. When this pin is used as address bit, it is internally grounded until
Reg50.6 (A19A16EN bit) is set to enable decoding of this pin as address
bit. Internal pull-up.
72 A17(CRS) I,TTL Host Bus Address Bit17, when on-chip tranceiver is used, it is used in
A[19:16], when in MII mode, it is defined as carrier same CRS signal.
When this pin isused as address bit, it is internally grounded until Reg50.6
(A19A16EN bit) is set to enable decoding of this pin as address bit. Inter-
nal pull-up.
73 A16(COL) I,TTL Host Bus Address Bit16, when on-chip tranceiver is used, it is used in
A[19:16], when in MII mode, it is defined as collision COL signal. When
this pin is used as address bit, it is internally grounded until Reg50.6
(A19A16EN bit) is set to enable decoding of this pin as address bit. Inter-
nal pull-up.
7 9 RDB I, TTL Host Read Strobe: Active low . Internal pull-up
7 8 W R B I, TTL Host Write Strobe : Active low . Internal pull-up
8 1 INTB O/D , 4ma Host Interrupt Output : P olarity can be programmed, def ault is activ e low.
For active Low interrupt application, external pull-up is reguired. For active
high interrupt application, external pull-down is required.
7 5 BHEB I,TTL Host Byte High Enable : Internal pull-up.
BHEB A0 Function
0 0 Word T ransfer
0 1 Upper Byte Transfer
1 0 Lower Byte T ransfer
1 1 Lower Byte T ransfer
80 SRDY O, 4ma Synchronous Host Ready Output : Active high synchronized to CLKIN to
indicate data is ready to be transferred. Initially low at the beginning of a
host cycle.
47 CSB I, TTL Chip Select : Active low, used to enable GMAC to decode host address.
When high, no host cycle is recognized by MAC.
4 8 M IO I, TTL Host Memory/IO cycle indicator : Set for memory access and reset for IO
access. Internal pull-up. Decode of MIO can be disable by DISMIO regis-
ter bit. Default is enabled.
6
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Packet Buffer Interface :
PIN# Pin Name Type Description
1, MA[19:3] O,4ma Memory Address Bit 19-0: If HLDA = 0 then all these address lines are tri-
115-119 stated.
7 MA19(RXD0) I/O , 4ma Memory Address Bit19, when on-chip tranceiver is used, it is defined as
MA19, while in MII mode, it is used as receive data bit RXD0 pin.
6 MA18(RXD1) I/O , 4ma Memory Address Bit18, when on-chip tranceiver is used, it is defined as
MA18, while in MII mode, it is used as receive data bit RXD1 pin.
5 MA17(RXD2) I/O , 4ma Memory Address Bit17, when on-chip tranceiver is used, it is defined as
MA17, while in MII mode, it is used as receive data bit RXD2 pin.
4 MA16(RXD3) I/O , 4ma Memory Address Bit16, when on-chip tranceiver is used, it is defined as
MA16, while in MII mode, it is used as receive data bit RXD3 pin.
90-96, MD[15:0] I/O,4ma Memory Data Bit 15-0 : Internal pull-down.
98-104,
106-109
114 MA2(EEDO) 1/O,4ma Memory Address Bit 2 or EEPROM Data Out bit: Right after host reset,
GMAC automatically load configuration information from external EEPROM.
During this period, MA2 pin acts as a EEDO pin that read in output data
stream from EEPROM. After EEPROM auto load sequence is done, this
pin becomes MA2 together with MA[19:3] forms packet buffer address
line 19 - 0. Internally pull-down.
113 MA1(EEDI) 1/O,4ma Memory Address Bit 1 or EEPROM Data In bit: During EEPROM auto load
sequence, MA1 pin acts as EEDI pin that write data stream into EEPROM.
After EEPROM auto load sequence is done, this pin becomes MA1, to-
gether with MA[19:2] forms packet buffer address lines.
111 MA0(EECK) 1/O,4ma Memory Address Bit 0 or EEPROM Clock Input : During EEPROM auto
load sequence, MA0 pin acts as EECK pin that provides clock to EEPROM.
After EEPROM auto load sequence is done, this pin becomes MA0, to-
gether with MA[19:1] forms packet buffer address lines.
87 MOEB O,4ma Memory Output Enable: Active low during packet buffer read access.
86 MCSB O,4ma Memory Chip Select: Active low during packet buffer accesses.
88, 89 MWEB[1:0] O ,4ma Byte Write Enable: Activ e low during packet buffer write cycle. MWEB1 f or
high byte and MWEB0 for low byte.
45 HOLD O, 4ma Packet Memory Bus Hold Request : Activ e high to request Host to "float"
its interface of the packet memory. Host grants the packet buffer bus to
MX98726EC by asserting HLDA = 1.
46 HLDA I, TTL Packet Memory Bus Hold Acknowledge: Packet buffer bus is granted to
MX98726EC. If HLDA=0 then MX98726EC will float its interface on the
packet buffer. Internal pull-up.
77 PSENB I, TTL Host Program Strobe Enable : Active low to indicate current cycle is a
ROM access and MX98726EC will not decode this ROM cycle. PSENB
must high for packet memory access. Internal pull-up.
74 RSTB I,TTL Host Reset Input : Active low, Schmitt trigger input, Internal pull-up.
7
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
10/100 Tranceiver interface :
PIN# Pin Name Type Description
14 RD A O RD A e xternal resistor to ground: 10K ohm, 5%
17 CKREF(X1) I, TTL 25Mhz , 30 PPM e xternal osc./crystal input :
16 X2 O 25Mhz , 30 PPM e xternal crystal output :
23 RXIN I Twisted pair receive diff erential input: support both 10/100 Mbps speed
24 RXIP I Twisted pair receive diff erential input: support both 10/100 Mbps speed
29 TXON O Twisted pair transmit differential output: support both 10/100 Mbps speed,
meet 802.3/802.3u spec.
30 TXOP O Twisted pair transmit differential output: support both 10/100 Mbps speed,
meet 802.3/802.3u spec.
32 CPK O NC pin : used in test mode only
33 R TX2EQ O R TX2EQ external resistor to ground: 1.4K ohm, 5%
34 R TX O RTX e xternal resistor to ground: 560 ohm, 5%
Miscellaneous :
PIN# Pin Name Type Description
110 EECS O,2ma EEPROM Chip Select Signal : Active high
44 C46/C66 I,TTL EEPROM Size Select : Set for C46, reset for C66. Internal pull-up.
84 LED0(TXC) I/O,16ma LED0 (TXC in MII mode) : When on-chip tranceiver is used, it is defined as
SPEED LED . When the light is on, it indicates the 100 Mbps speed. When
off, it indicates the 10 Mbps speed. When both LED0 and LED1 are flash-
ing identically, it means the bus integrity error . (Internal pull-up). When in
MII mode, this pin is defined as transmit clock TXC (25 MHz or 2.5 MHz)
input.
83 LED1(TXEN) O,16ma LED1 (TXEN in MII mode) :When on-chip tranceiver is used, it is defined
as Link/Activity LED. When the light is stable and on, it indicates a good
link. When flashing, it indicates TX and RX activities. When off , it means
a bad link. (Internal pull-up). When in MII mode, this pin is defined as trans-
mit enable TXEN pin.
42,43 UPTYPE0, I,TTL uP type select control bit 1-0: UPTYPE1 and UPTYPE0 must be exter-
nally pull-up or down through < 4.7K ohm resistors to configure the bus
interface f or diff erent uP.
UPTYPE1 UPTYPE0 uP selected
0 0 reserved 0
0 1 80x1
1 0 80188
1 1 80186
42 UPTYPE0( MDIO) I/O,TTL uP type select control bit 0 ( MDIO in MII mode ): UPTYPE0 is
internally pull-down and used as uP type selection during host reset (
RSTB=0 ). After host reset sequence is completed, this pin become MDIO
pin if MII mode is selected.
43 UPTYPE1(MDC) I/O, TTL uP type select control bit 1 ( MDC in MII mode ) : UPTYPE1 is internally
pull-down, after host reset sequence is completed , this pin become MDC
clock output pin if MII mode is selected.
8
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Vdd/Gnd Pins :
PIN# Pin Name Description
12,15,20,28,35,38,40 VDDA Analog Vdd Pins : Must be carefully isolated in a separted
vdd plane.
13,18,19,31,36,37,39,41 GNDA Analog Ground Pins : Must be carefully isolated in a
separted ground plane.
22,25 VDDR RX Vdd Pins : Must be carefully isolated in a separted
Vdd plane.
21,26,27 GNDR RX Ground Pins : Must be carefully isolated in a separted
ground plane.
3,58,63,92,97,120 VDD Digital Vdd Pins : Must be carefully isolated in a separted
Vdd plane.
2,55,64,65,85,93,105,112,128 GND Digital Ground Pins : Must be carefully isolated in a
separted ground plane.
9
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
3.0 Register (Default value is defined after hardware/power-up reset)
Reset logic : All register bits are cleared by hardware reset, while register bit with an "*" in its symbol
name is also cleared b y software reset.
Network Control Register A : NCRA (Reg00h),R/W, default=00h
Bit Symbol Description
0.0 RESET Software reset.
0.1 ST0* Start Transmit Command/Status : Write to issue commands. When done , both bits are
0.2 ST1* cleared automatically .
Transmit command : ST1 ST0
IDLE state 0 0 Read to indicate TX DMA idle state, write has no effect.
TX DMA Poll 0 1 Start TX DMA, send packets stored in packet memory.
TX FIFO Send 1 0 Immediately send the pac k et stored in the TX FIFO .
TX DMA Poll 1 1 Start TX DMA, send packets stored in packet memory.
All transmit commands are cleared to 00 when the operation is done to indicate idle
state. When the TX DMA poll and the TX FIFO Send can not be used at the same time.
New packet can be written to the FIFO directly only when ST1, ST0=IDLE and
TXDMA[3:0]=1h. The TX DMA poll and the TX FIFO Send commands can be issued only
when ST1, ST0=IDLE and TXDMA[3:0]=1h, regardless of any error status in pre vious
transmission.
0.3 SR* Start Receive: Enable the MAC receive packets. Default is disab led.
0.4, 0.5 LB0*,LB1* Loopback Mode: LB1 LB0
Mode0 0 0 Normal mode
Mode1 0 1 Internal FIFO Loopback
Mode2 1 0 Internal NW AY Loopbac k
Mode3 1 1 Internal PMD Loopback
Mode 2 and 3 are reserved for IC test purpose. Only mode 1 can be used on bench.
External loopback for bench can be done by full duplex nor mal mode with real cable
hooked up from TX port to RX port.
0.6 INTMODE Interrupt Mode: Set for active high interrupt, reset f or activ e lo w interrupt case.
0.7 CLKSEL Clock Select : Set to use internal 40MHz clock for all internal DMA, default is reset to use
internal 50MHz clock for all internal DMA.
10
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Network Contr ol Register : NCRB (Reg01h),R/W , default=01h
Bit Symbol Description
1.0 PR* Promiscuous mode: Set to receive any incoming valid frames received, regardless of
its destination address. Default is set.
1.1 CA* Capture Eff ect Mode: Set to enab le an enhanced back off algorithm to av oid network
capture eff ect.
1.2 PM* P ass Multicast: Set to accept all multicast pack ets including broadcast address ( 1st
bit in destination address is 1 ), default is reset
1.3 PB* P ass Bad Frame: Enable GMA C to accept Runt frame . Default is reset.
1.4 AB* Accept Broadcast: Default is reset. Set to accept all broadcast packets.
1.5 HBD* Reserved for test purpose. Default is 0.
Reserved Must be 00.
11
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
GMAC T est Register A : TRA (Reg02h),R/W, default=00h
Bit Symbol Description
2. 0 TEST Test mode enable: Set to enable test modes defined b y TMODE[2:0], default is reset
for normal operation.
2.1-2.3 TMODE[2:0] T est Mode Select bits[2:0]: Reserved f or GMAC's internal tests, only meaningful when
the TEST bit is set, e xcept when TMODE [2:0] = "110" which is also used as normal
mode with EEPROM interf ace disab led. When TMODE [2:0] = "110" & Test =0, then
MA19~MA16 are still SRAM address bit19~16, while Test = 1, MA19~MA16 are de-
fined as test pins reserved for debug purpose.
2.4 R W R Receive Watchdog Release : When set, the receive watchdog is released 40 to 48 bit
times from the last carrier deassertion. When reset, the receive watchdog is released
16 to 24 bits times from the last carrier deassertion.
2.5 R W D Receive Watchdog Disable : When set, the receive watchdog is disabled. When reset,
receive carriers longer than 2560 bytes are guaranteed to cause the watchdog timeout.
P ack ets shorted than 2048 bytes are guaranteed to pass .
2. 6 F C Forced Collision : Set to force collision at every transmit packet, this bit works only in
internal FIFO loopback mode, i.e. LB0=1, LB1=0, to test excessive collision. Default
is reset.
2.7 SB Start/Stop Backoff counter: When set, indicates internal backoff counter stops count-
ing when any carrier is detected. Counter resumed when carrier drops. When reset,
the internal back off counter is not affected by carrier activity. Default is reset.
GMAC T est Register : TRB (Reg03h),R/W , default=00h
Bit Symbol Description
3.0 FKD* Flaky Oscillator Disable: When set, indicates that the internal flaky
oscillator is disabled. Pseudo random numbers are chosen instead of
fully random numbers, used for the internal diagnostic purpose. Set to
disable the normal clocking scheme in the timer's test. Reset to enable
the timer test. Default is reset.
3.1 RDNCNTCB* Reserved for test
3.2 RDNCNTSB* Reserved for test
3.3 COLCNTCB* Reserved for test
3.4 BFS0*(MDC) Normally used as BFS0 pin for test purpose, while in MII mode, it is
defined as MII management clock signal (MDC) to be used as a timing
reference of MDIO pin.
3.5 BKCNTLB*(MDIOEN) Normally used as BKCNTLB pin for test purpose, while in MII mode, it is
used to control the direction of MDIO pin. Set MDIOEN = 1 will make
MDIO pin as input pin, the value can be read from MDI bit.
Set MDIOEN = 0 will make MDIO pin as output pin, the value of MDO bit
is driven out to MDIO pin.
3.6 BFS1*(MDO) Normally used as BFS1 pin for test purpose, while in MII mode, it is
used as MII management write data (MDO) for MDIO pin's output data.
3.7 BFSTATUS*(MDI) Normally used as BFSTATUS pin for test purpose, while in MII mode, it is
used as MII management read data (MDI) for MDIO pin's input data.
12
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Last Transmitted Packet Status: LTPS ( Reg04h), RO, default=00h
Bit Symbol Description
4.0 CC0* Collision Count Bit 0 :
4.1 CC1* Collision Count Bit 1 :
4.2 CC2* Collision Count Bit 2 :
4.3 CC3* Collision Count Bit 3 : when CC[3:0] = 1111 and a new collision is detected, then it is
called excessive collision error which will abort the current packet, TEI interr upt bit
will be set.
4.4 CRSLOST* Carrier Sense Lost : Set to indicate CRS was lost during the transmission, def ault is
reset for normal pack et tr ansmission.
4.5 UF* TX FIFO underflow : Set to indicate a underflow problem in TX FIFO an FIFOEI
interrupt is generated for driv er to resolv e this prob lem.
4.6 O W C* Out of Window Collision : Set to indicate an collision occured after 64 bytes of data
has been transmitted, no retransmission will be issued
4.7 TERR* Transmit Error: Set to indicate pack et transmitted with error , reset f or normal pack et
transmission.
Last Received P ac ket Status: LRPS ( Reg05h), R O, default=00h
Bit Symbol Description
5.0 BF* RX P ac k et Buffer Full Error : 1 indicates RX pac k et b uffer is full.
5.1 CRC* CRC error : Calculation is based on integer multiple of b ytes, set to indicate CRC error
f or received pac k et.
5.2 FAE* Frame Alignment Error : Set to indicate extra nibble is received which is not at octet
boundary. This error is independent of CRC detection.
5.3 FO* FIFO o v errun : When set, an interrupt is generated, driver must resolve this error.
5.4 RW* Receive Watchdog : Set to indicate the frame length exceeds 2048 bytes. An interrupt
will be generated to driver.
5.5 MF* Multicast address : Set to indicate current frame has multicast address.
5.6 RF* Runt Frame : Set to indicate a frame length less than 64 bytes, only meaningful when
Reg01h.3 PB bit =1 is set.
5.7 RERR* Receive Error : Set to indicate a packet received with errors including CRC, FAE, FO,
R W, ( RF and PB=1 ).
Missed P ac ket Counter: MPC (Reg07/06h), R/W, default=0000h
Bit Symbol Description
6.7-0 MISSCNT[7:0]* Miss P ac k et Counter Bit [7:0]: Lower b yte of Miss pack et counter
7.7-0 MISSCNT[15:8]* Miss Pac k et Counter Bit [15:8]: Upper byte of Miss pack et counter
Notes : This LRPS register contains the same status b yte as in the description field of the last received pac k et
in the pack et memory.
13
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Interrupt Mask Register: IMR (Reg08h), R/W, default=00h
Bit Symbol Description
8.0 CNT OFIM Miss Counter Ov er Flow Interrupt Mask : Set to enab le Miss counter ov erflow interrupt,
default is reset. When Ov erflow condition of the miss packet counter occures, counter is
halt and driver need to resolve this condition in order to reset the counter if counter is
e v er used.
8.1 RIM Received Interrupt Mask: Set to enable Packet Received Interrupt, default is reset which
disable RI interrupt.
8.2 TIM Transmit Interrupt Mask: Set to enable Packet transmit OK interrupt, default is reset
which disable TI interrupt.
8.3 RXEIM Receive Error Mask: Set to enable Receive Error interrupt, default is reset which disable
RXEI interrupt.
8.4 TXEIM Transmit Error Mask: Set to enable transmit error interrupt, default is reset which disable
TXEI interrupt.
8.5 FIFOEIM FIFO Error Interrupt Mask: Set to enable FIFO Error interr upt, default is reset which
disable FIFOEI interrupt.
8.6 BUSEIM Bus Error Interrupt Mask: Set to enable Bus Error interrupt, default is reset which dis-
able B USEI interrupt.
8.7 RBFIM RX Buffer Full Interrupt Mask: Set to enable RX Buffer full interrupt, default is reset
which disable BFI interrupt.
Interrupt Register: IR (Reg09h), R/W, default=00h
Bit Symbol Description
9.0 CNTOFI* Miss Counter Ov er Flow Interrupt : Set to assert interrupt when Miss pack et counter is
overflow, write 1 to this bit will clear the bit and interrupt, write 0 has no effect.
9.1 RI* Receive OK interrupt : Set to asser t interrupt, write 1 to this bit will clear the bit and
interrupt, write 0 has no eff ect
9.2 TI* Transmit OK interrupt: Set to asser t interrupt, write 1 to this bit will clear the bit and
interrupt, write 0 has no eff ect
9.3 REI* Receive Error Interrupt: Set to assert interrupt when packet is received with error , write
1 to this bit will clear the bit and interrupt, write 0 has no effect
9.4 TEI* Transmit Error Interrupt : Set to assert interr upt when packet is transmitted with error,
write 1 to this bit will clear the bit and interrupt, write 0 has no effect
9.5 FIFOEI* FIFO Error Interrupt: Set to assert interrupt when either TX FIFO is overrun or RX FIFO
is overrun, write 1 to this bit will clear the bit and interrupt, write 0 has no eff ect
9.6 BUSEI* Bus Error Interrupt: Set to assert interrupt when Bus integrity check is enabled and
f ailed. Write 1 to this bit will clear the bit and interrupt, write 0 has no effect
9.7 RBFI* RX Buff er Full Interrupt: Set to assert interrupt when RX buff er area is being overwritten
by new received pac kets, write 1 to this bit will clear the bit and interrupt, write 0 has no
effect
Note : All page pointer bit [11:0] are mapped to MA[19:8] in the same bit ordering.
14
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Boundary Pa ge P ointer Register: BP (Reg0Bh/0Ah), R/W, default=x000h
Bit Symbol Description
0A.7-0, BP[11:0] Boundary P age Pointer between tx/rx buff er: page TLBP[11:0] to page BP[11:0]
0B.3-0 is tx buffer . page BP[11:0] to RHBP[11:0] is rx buff er. BP[11:0] is mapped to
MA[19:8]. MSB bit is Reg0BH.3 bit. LSB is Reg0AH.0 bit.
TX Low Boundary P a ge P ointer Register: TLBP (Reg0Dh/0Ch), R/W, default=x000h
Bit Symbol Description
0C .7-0, TLBP[11:0] TX Low Boundary P age Pointer : Points to the first page of transmit buff er ring.
0D.3-0 It's a static pointer that is used by GmAC to link to the last page pointed by
boundary pointer . TLBP[11:0] MSB bit is Reg0Fh.3 bit. LSB is Reg0Ch.0 bit.
IO Base P age Register: IOB (Reg11h/10h), R/W, default=x000h
Bit Symbol Description
10.7-0, IOB[11:0] IO Base Address Register: On-chip register IO base address register. This
11.3-0 page address register defines the base page address of all on-chip registers
in a IO address space.(00h-FFh). MIO=0 and CSB=0 will force GMAC to
decode IO address for on chip register access. if MIO=1 and CSB=0, then all
on chip registers are localed in memory page 0. IOB register is mapped to
physical address [19:8] during decoding. IOB is 0000h after Reset, software
can assign new base address b y writing ne w page number to this register .
Transmit Buffer Read P a ge P ointer Register: TRP (Reg13h/12h), R/W, default=x000h
Bit Symbol Description
12.7-0, TRP[11:0] The Page Index of transmit buffer read pointer: Current transmit read page pointer .
13.0-3 MSB bit is Reg13h.3 bit. LSB is Reg12h.0 bit. TRP is controlled by GMA C only.
An internal Byte Counter (TRPBC) is associated with this page register.
T ransmit Buffer Write P age Pointer : TWP (Reg.0Fh/0Eh), R/W , default=x000h
Bit Symbol Description
0E.7-0, TWP[11:0] Transmit Buffer Write P age Pointer: TWP[11:0] are mapped to MA[19:8] with
0F.3-0 the same bit ordering. The MSB is the Reg0Fh.3 bit. The LSB is the
Reg0Eh.0 bit. TWP is normally controlled by the de vice driver. An internal Byte
Counter (TWPBC) is associated with this page register .
15
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Receive Buffer Write Page P ointer Register: RWP (Reg17h/16h), R/W, default=x000h
Bit Symbol Description
16.7-0, RWP[11:0] Receive Buffer Write Page Pointer: Current receive write page pointer. MSB
17.0-3 bit is Reg17h.3 bit. LSB is Reg16h.0 bit. This register is controlled by GMAC only.
An internal Byte Counter (RWPBC) is associated with this page register.
Receive Buffer Read Page Pointer Register: RRP ( Reg19h/18h), R/W, default=000h
Bit Symbol Description
18.7-0, RRP[11:0] Receive Buff er Read P age Pointer: MA C current receive read page pointer.
19.0-3 RRP[11:0] is mapped to MA[19:8]. MSB bit is Reg19h.3 bit. LSB is Reg18h.0 bit.
This register is normally controlled by de vice driv er. An internal byte Counter
(RRPBC) is associated with this page register.
64K Memory Bank Address : Reg19h (R/W), default=0h
Bit Symbol Description
19.7-4 BANK[3:0] Reserved : Default is 0000
RX High Boundary Pa ge P ointer Register: RHBP ( Reg1Bh/1Ah), R/W, default=x000h
Bit Symbol Description
1A.7-0. RHBP[11:0] Receive High Boundary Page Pointer : RX packet buffer is defined as between
1B.0-3 RHBP [11:0] and BP[11:0]. MSB bit is Reg1Bh.3 bit. LSB is Reg1Ah.0 bit.
Receive Interrupt Timer: RXINTT (Reg15h/14h), R/W
Bit Symbol Description
14.7-0, RXINTT[7:0], Receive Interrupt Timer: Default is 0000h "not used".
15.7-0, RXINTT[15:8]
16
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
EEPROM Interface Register: Reg1Ch, R/W, default=00h
Bit Symbol Description
1C .0 EECS* Chip select output to external EEPROM clock device
1C .1 EECK* Serial clock output to external EEPROM cloc k de vice , <1MHz
1C .2 EEDI* Serial data input to external EEPROM cloc k de vice
1C .3 EEDO* Serial data output from e xternal EEPROM clock de vice
1C .4 EESEL* Set to enab le e xternal EEPR OM write operation, default 0 is read.
1C.5 EELD* Set to enable reloading the entire content of EEPROM just like power-on reset or
hardware reset. When loading is done, this bit will be set by GMAC automatically.
1C.6 HOLDREQ Reserved, default = 0, set to hold host access to SRAM in order to access
EEPROM by software.
1C.7 HLDAACK Reserved, Read only, set to indicate that request to hold host is granted, GMA C
can access EEPROM through Reg. IC by software.
Reserved ( Reg 1Dh ), default=00h
Bit Symbol Description
Reserved Must be 00h
Reserved (Reg1Fh/1Eh), R/W , default=0000h
Bit Symbol Description
1E.7-0,
1F.7-0 reserved
17
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Network Ad dress Registers : Reg20h~25h (R/W), 26h~2Dh (R/W), default=00h
Bit Symbol Description
20.[7:0] PAR0 Ph ysical Address Byte 0: PAR[7:0]
21.[7:0] PAR1 Ph ysical Address Byte 1: PAR[15:8]
22.[7:0] PAR2 Ph ysical Address Byte 2 : PAR[23:16]
23.[7:0] PAR3 Ph ysical Address Byte 3 : PAR[31:24]
24.[7:0] PAR4 Ph ysical Address Byte 4 : PAR[39:32]
25.[7:0] PAR5 Ph ysical Address Byte 5 : PAR[47:40]
26.[7:0] MAR0 Hash Table Register Byte 0 : MAR[7:0]
27.[7:0] MAR1 Hash Table Register Byte 1 : MAR[15:8]
28.[7:0] MAR2 Hash Table Register Byte 2 : MAR[23:16]
29.[7:0] MAR3 Hash Table Register Byte 3 : MAR[31:24]
2A.[7:0] MAR4 Hash Table Register Byte 4 : MAR[39:32]
2B.[7:0] MAR5 Hash Table Register Byte 5 : MAR[47:40]
2C .[7:0] MAR6 Hash Table Register Byte 6 : MAR[56:48]
2D.[7:0] MAR7 Hash Table Register Byte 7 : MAR[63:57]
Reserved, default=00h
Bit Symbol Description
2F.7-0 Reserved
T ransceiver Control Register : ANALOG (Reg 2Eh), R/W , default=07h
Bit Symbol Description
2E.0 DS120 Must be 1 for NORMAL mode with auto-compensation.
2E.1 DS130 Must be 1 for NORMAL mode with auto-compensation
2E.2 PWD10B Set for NORMAL mode, write 0 followed by write 1 will power down 10 Base-T
analog circuit.
2E.3 PWD100 Reset for NORMAL mode, write 1 followed by write 0 will power down 100 Base-
T analog circuit.
2E.4 RSQ Reduced SQuelch Enable : Set to enable the reduced squelch circuit in the 10
Base-T mode for the receive channel. This can help the reception in a long cable
application. Def ault is reset, meaning the normal CAT-5 cab le is used.
2E.5 RST100 Reset for NORMAL mode, write 1 followed by write 0 will reset 100 Bare-T analog
circuit.
2E.6-7 Reserved must be zero .
18
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
NWAY Status Register : NWAYS (Reg 31h), R O, default=00h
Bit Symbol Description
31.0 LS10 Ph ysical Link Status of 10 Mbps TP : Set for good link in 10 Base-T.
31.1 LS100 Physical Link Status of 100 Mbps TP : Set for good link in 100 Base-TX.
31.2 LPNW AY Link P artner Status : 1 to indicate link partner is capable of NW AY support, reset
f or non-NW AY link partner .
31.3 ANCLPT Autonegotiation Completion : Set to indicate that a normal NW AY state machine
completion. Reset for incomplete.
31.4 100TXF NWA Y 100 TX Full_duplex Mode : Set to indicate NWA Y is settle down in 100 TX
full duple x mode.
31.5 100TXH NWAY 100 TX Half_dulpex Mode : Set to indicate NWAY is settle down in 100
Base-T half duplex mode .
31.6 10TXF NW A Y 10 TX Full_duplex Mode : Set to indicate NWA Y is settle down in 10 Base-
T full duplex mode .
31.7 10TXH NWAY 10 TX Half_duplex Mode : Set to indicate NWAY is settle down in 10
Base-T half duplex mode .
NW AY Configuration Register : NW AYC (Reg 30h), R/W , default=84h
Bit Symbol Description
30.0 FD Full Duple x Mode: Set 1 to f orce the full duple x mode. The def ault is 0, meaning
the half duplex mode. This bit is meaningful only if ANE = 0
30.1 PS100/10 P ort Select 100/10 bit : Default is 0, meaning the 10 Base-T mode.
30.2 ANE Autonegotiation Enable: Set to enable the NWA Y function. Default is set. ANS[2:0]
should be written 001 to restart the autonegotiation sequence after ANE is set.
30.[5:3] ANS[2:0] Autonegotiation status bits: Read only for the NWAY status, except when write
001 will restart the autonegotiation sequence. The MSB is the Reg30h.5 bit when
Nway settles down in one network mode, one bit of Reg31.4~Reg 31.7 will be set
to indicate the chosen network mode.
Autonegotiation Arbitration State, arbitration states are defined
000 = Autonegotiation disable
001 = Transmit disable
010 = ability detect
011 = Acknowledge detect
100 = Complete acknowledge detect
101 = FLP link good; autonegotiation complete
110 = Link check
30.6 NTTEST Reserved
30.7 LTE Link Test Enable : Default is high, meaning the link check is always enabled.
Reset forces a good link in the 10 Base-T mode for the testing purpose.
19
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
GMAC Configuration A Register: GCA (Reg32h), R/W , default=00h
Bit Symbol Description
32.0 BPSCRM Bypass 100TX Scrambler: Default is 0, meaning enable scrambler during 100TX
mode, set to disab le scr ambler.
32.1 PBW Packet Buffer Data Width : Default is 0. Meaning packet buffer data width is b yte
wide. Set f or w ord (16 bit) wide packet buffer . For 8 bit system b us, the pack et
buffer bus width must be byte wide.
32.2 SLOWSRAM Slow SRAM select bit: Default is 0 meaning fast SRAM must be used ( Taa <= 20ns
), if set , then Taa<= 70ns can be used. Slow SRAM will reduce pack et through put,
therefore, if high speed host is intended, then SRAM should be fast otherwise, FIFO
underrun or overrun can happen.
32.3 ARXERRB Accept RX pac k et with error : Default is reset to receiv e packets with error, set to
reject pack ets with error, packet memory will not contain packet with R W , FO , CRC
errors.
32.4 MIISEL Default = 0 after reset, on-chip tranceiver is used. Set by software to enable MII
interface.
32.5 AUTOPUB Auto Page Update option :
Set to disable the automatic host page update during the host DMAs. Reset to
enable the host page update f or the RRP, TWP registers . Def ault is reset.
32.6 TXFIFOCNTEN Default=0, after rest which means Reg 3E & 3F (TXFIFOCNT) are not used. This
option is only good f or a byte-base host transf er . F or host which do word/double
word tr ansfer , this bit must be set to 1 to force TXFIFO use actual packet length
for transmission.
32.7 reserved
20
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
GMAC Configuration B Register: GCB (Reg33h), R/W
Bit Symbol Description
33.1-0 TTHD[1:0] Transmit FIFO Threshold : Default is 00
TTHD1 TTHD0 FIFO depth aggressiveness
0 0 1/2 medium
0 1 1/4 least
1 0 3/4 most
1 1 reserved reserved
33.3-2 R THD[1:0] Receive FIFO Threshold : Def ault is 00
R THD1 R THD0 FIFO depth aggressiveness
0 0 1/2 medium
0 1 1/4 most
1 0 3/4 least
1 1 reserved reserved
33.4 SRAMELEN SRAM Early Latch Enable : Default = 0. Set to enable.
33.5 X4ELEN X4 FIFO Early Latch Enable : Defautl = 0. Set to enable.
33.6 DREQB2EN DREQB NEW Timing Enab le : Def ault = 0. Set to enable .
33.7 reserved
Reserved (Reg34h/35h/36h/37h), R/W
Bit Symbol Description
34.7-0 Reserved
35,7-0
36.7-0
38.8-0
34.7-0 Reserved
35,7-0
36.7-0
37.7-0
21
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Reserved (Reg3Ah), default=00h
Bit Symbol Description
3A.7-0 Reserved
TX/RX DMA Status Register: Reg3Ch, R/W, default=00h
Bit Symbol Description
3C.7-4 TXDMA[3:0]* TX DMA State Indicators : For internal diagnostic pur pose indicating TX DMA's
current status.
TXDMA3 is TX status error bit, set to indicate error during transmission.
TXDMA2 is TX FIFO underflow error .
3C.3-0 RXDMA[3:0]* RX DMA State Indicators : For internal diagnostic purpose indicating RX DMA's
current status.
RXDMA3 is RX status error bit, set to indicate error during receive.
RXDMA2 is RX FIFO ov erflow error .
TXDMA[1:0] State Description
00 Idle
01 Read TX Description
1 0 Transmit Current Packet
11 Write TX Description
RXDMA[1:0] State Description
00 Idle
0 1 Receive Current Packet
10 Write TX Description
1 1 Run F rame/Reset RX FIFO
Reserved (Reg39h/38h), R/W, default=0000h
Bit Symbol Description
38.7-0 Reserved
39.7-0 Reserved
Link P artner Link Code Register : LPC, Reg3Bh, R O
Bit Symbol Description
3B .0 LPC[0] Link Partner Link Code A0 : 10 Base-T half duple x ability
3B .1 LPC[1] Link Partner Link Code A1 : 10 Base-T full duple x ability
3B .2 LPC[2] Link Partner Link Code A2 : 100 Base-TX half duple x ability
3B .3 LPC[3] Link Partner Link Code A3 : 100 Base-TX full duple x ability
3B .4 LPC[4] Link Partner Link Code A4 : 100 Base-T4 ability
3B .5 LPC[5] Link Partner Link Code RF bit : Remote Fault bit
3B .6 LPC[6] Link Partner Link Code Ac k bit : Ac kno wledge bit
3B .7 LPC[7] Link Partner Link Code NP bit : Ne xt P age bit
22
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
TX FIFO Byte Counter (Direct FIFO Mode) : TXFIFOCNT, Reg3F/3Eh, R/W
Bit Symbol Description
3E.7-0 TXFIFOCNT[7:0] TX FIFO Send Byte Count bit [7:0]: Together with TXFIFOCNT[11:8] for ms a 12
bits TX FIFO byte count for direct FIFO mode.
3F.3-0 TXFIFOCNT[11:8] TX FIFO Send Byte Count bit [11:8]: Together with TXFIFOCNT[7:0] for ms a 12
bits TX FIFO byte count for direct FIFO mode.
MISC Control Register : MISC1, Reg3Dh, R/W, default=3Ch
Bit Symbol Description
3D.0 BURSTDMA reserved for internal DMA burst control, default = 0 after reset.
3D.1 DISLDMA* Disable Local DMA arbitration : Default is 0 after reset, meaning local DMAs are
enabled in the SRAM bus arbitration. Set to disable the local DMA arbitration only
when the Reg02h.0 TEST bit is also set. It is used to force the overrun or the
underrun error for the test purpose.
3D.2 TPF 10 Base-T Por t Full Duplex capability bit in the linkcode word : Default is set to
enable adv ertising the 10 Base-T Full duple x capability. Reset to disable adv ertis-
ing this capability in the outgoing NW AY's linkcode word.
3D.3 TPH 10 Base-T Por t Half Duplex capability bit in the linkcode word : Default is set to
enable adv ertising the 10 Base-T Half duplex capability . Reset to disable advertis-
ing this capability in the outgoing NW AY's linkcode word.
3D.4 TXF 100 Base-TX Full Duplex capability bit in the linkcode word : Default is set to enable
adver tising the 100 Base-TX Full duplex capability. Reset to disable advertising
this capability in the outgoing NW AY's linkcode word.
3D.5 TXH 100 Base-TX Half Duplex capability bit in the linkcode word ; Default is set to
enable advertising the 100 Base-TX Half duplex capability. Reset to disable adver-
tising this capability in the outgoing NW AY's linkcode word.
3D.6 TXFIFORST TX FIFO Reset control : Writing a 1 to this bit will clear the TX FIFO, reset all the
current TX FIFO's internal pointers and related byte counters and bring the TX DMA
back to the idle state. After reset this bit to 0, GMAC starts nor mal operation. If
current transmission takes too long due to collisions, the software can use this bit
to abort "current transmission" and bring GMAC's TX DMA back to idle state f or a
fresh new transmission.
3D .7 RXFIFORST RX FIFO Reset control : Writing a 1 to this bit will clear the RX FIFO, reset all the
current RX FIFO's internal pointers and related byte counters and bring the RX
DMA back to the idle state . After reset this bit to 0, GMAC starts normal operation.
23
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
ID2 (Reg46h/47h), R O , default="0001"
Bit Symbol Description
46.7-0, ID2[15:0] ID2 16 bit code : Reg47h is MSB byte is set to 00h, Reg46h is LSB byte is
47.7-0 set to 01h.
Write TX FIFO Data P ort: WRTXFIFOD (Reg48h), WO
Bit Symbol Description
48.7-0, WRTXFIFOD[7:0] Write TX FIFO Data P ort: Data written to this port is directly f orward to T X
FIFO , GMAC will k eep trac k of total bytes written to FIFO . ST1,ST0 should
be in IDLE state when a packet is star ted to be wr itten through this por t.
Don't mix the write to this port with TX DMA start command, this may inter-
mix data coming from this port and TX local DMA from pac k et memory.
49.7-0, Reserved
4A.7-0 Reserved
4B.7-0 Reserved
IO Read Data Port: Register : Reserved, RO
Bit Symbol
4C.7-0, Reserved
4D.7-0 Reserved
4E.7-0 Reserved
4F.7-0 Reserved
Reser ved ( Reg 40h-43h ), RO
Bit Symbol Description
Reserv ed Register 40h[7:0] to register43h[7:0] are all reserved.
ID1 (Reg45h/44h), RO, default="MX"
Bit Symbol Description
44.7-0,
45.7-0 ID1[15:0] ID1 16 bit code : Reg45h is MSB b yte is set to "M", Reg44h is LSB byte is
set to "X".
24
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Host Receive Packet Counter : Reserved, RO
Bit Symbol
52.7-0 Reserved
53.7-0 Reserved
Host DMA Fragment Counter : Reserved, RW
Bit Symbol
54.7-0 Reserved
55.7-0 Reserved
56.7-0 Reserved
MISC Control Register 2 : MISC2, Reg50h, R/W, default=00h.
Bit Symbol Description
50.0 Reserved
50.1 Reserved
50.2 RUNTSIZE Runt F rame Size Select bit : Default is 0, meaning the runt frame is defined
as less than 64 bytes. Set to define the runt frame as less than 60 bytes.
50.3 Reserved
50.4 Reserved
50.5 ITPSEL reserved for internal test probing select.
50.6 A19A16EN Default=0, A19 to A16 are internally grounded. Set this bit to enable A19 to
A16 decoding. This bit is ignored if MIISEL = 1 in MII mode .
50.7 AUTORCVR Auto RX Full Recovery: Default is reset meaning when RX buffer full and
RX FIFO overflow happen at the same time, GMAC will stop receiving until
host clear up RX FIFO and RX full condition. Set to enable GMAC to re-
cover from such error automatically , the last packet with such error will be
discarded in the packet memory and RX FIFO will be cleared at the end of
current receiving, and then receiving is resumed for next packet.
25
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
4.0 Host Communication
GMAC and the device driver communicate through three
data structures :
* On chip registers described in Chapter 3.
* Descriptor and data buff er resides in pac ket memory.
* Direct IO port to on chip TX FIFO for direct packet
transmission.
ON CHIP REGISTERS ADDRESSING SCHEME
MIO=1 and CSB=0, memory space page0 (from
00000h00 to 000ffh) is used for GMAC's on chip regis-
ter . Therefore, page0 of memory mapped scheme is al-
ways recerved for GMAC's on chip registers and can
not be used as part of pack et buffer . So that usable free
packet buffer of a 64K SRAM is actually 64K bytes -
256 bytes if GMAC's on chip registers occupied memory
page0.
if MIO=0 and CSB=0, then I/O space is used to decode
GMAC's on chip register access. IOB page register is
initially 0 force GMAC to use page 0 of I/O space as
GMAC's on chip register's page.
After changing IOB to a desirable page address, GMAC's
on chip registers address can be relocated to other page
for system integration. Such IO addressing scheme for
GMAC on chip register can avoid the waste of SRAM's
page 0 issue described above.
TX RING BUFFER AND RX RING BUFFER
GMAC moves received data frames to the receive buffer
in the local pack et memory and transmits data from the
transmit buffers in the local packet memory . All the page
pointers in the registers together with the descriptors
acts as pointers to these buff ers in the pac ket memory.
Figure 4.0 depict the general data structure of packet
memory and page pointers.
There are two data buffers inside the packet memor y,
i.e. transmit buffer and receive buffer. Packet memory
is partitioned into pages, each page contains exactly
256 bytes. A page pointer defined by registers acts as
the base address of the corresponding page. By pro-
gramming these page pointers, size and area of trans-
mit buffer and receive buffer can be individually set to
desirable size and area.
The transmit and receive buffers must be contiguous
and separated by the BP ( Boundary Page pointer ) de-
fined in registers 0Ah and 0Bh. TLBP ( Transmit Low
Boundary P ointer ) defines the start page of the transmit
buffer. BP- 1 defines the end page of the transmit buffer.
If the current transmit process exceeds the end of BP- 1
page then it will be set to the start page pointed by TLBP,
thus forms a "ring buffer" that logically links the end
page bac k to the start page of transmit b uff er.
Receive buffer has a similar structure as transmit buffer .
The start page of receive buffer is pointed to by BP
while the end page is pointed to by RHBP ( Receive
High Boundary Page Pointer ). If current receive pro-
cess exceeds the end of the end page pointed by RHBP,
then it will be set to the start page pointed by BP, thus
forms a "ring buffer" that logically links the end page
and the start page of receive b uff er.
MORE RECEIVE BANDWIDTH WITHOUT USING TX
RING BUFFER
A 1.6K bytes TX FIFO can also be used to send out a
packet directly from FIFO. Register port 48h can be used
by host to write packet data directly into TX FIFO . After
moving the last b yte into the TX FIFO of a packet, host
can issue a command (called TX FIFO send command)
to send out the packet stored in the TX FIFO. This func-
tion can be used alternately with the other transmission
that uses TX b uff er ring.
All incoming and outgoing packets are stored in these
buffers. Long packet may occupy multiple pages that
are logically contiguous. The descriptor is located at the
beginning of the first page of this multiple-page packet.
Normally there might be some free space left in the last
page of this multiple-page packet which is called frag-
ment. These fragment will not affect network packet's
data integrity.
26
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Descriptor structure
Next Packet Pointer
Host Useable Area
(Header) Page 0
Page 1
Tx ring
Rx Buffer
Packet Length
740
Status
Byte 0
Byte 1
Byte 2
Byte 3
Page 0 (Data)
Figure 4.0 Packet Buffer Data Structures
Page 1 (Data)
Page N (Data)
RWP
RRP
RHBP
uP usable area
TLBP
TWP
TRP
BP
Descriptor
One packet
Next packet
27
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
4.1 P acket Transmission
GMAC supports two ways to prepare packet(s) for trans-
mission, one wa y is the host can write a pack et directly
into TX FIFO through an IO por t and send the packet
directly from FIFO , this wa y is called direct FIFO mode.
The other wa y is to write pack et(s) into TX b uffer ring in
the pack et memory and activate TX local DMA to send
out packet(s). Using direct FIFO mode can eliminate
TX local DMA completely which will leave packet
memory's total bandwidth to RX local DMA and host.
Therefore, receiving at the full line speed is more achiev-
able in this way. The disadvantage is that only one packet
is prepared and sent out at a time, next packet must
wait until current packet is sent out and FIFO is empty
bef ore it can be moved into TX FIFO . In another word,
you can not issue multiple packet transmission with a
single command. But you still can prepare new packet(s)
in TX buffer ring while a packet in direct FIFO mode is
still active, so once the packet in direct FIFO mode is
finished, you can active TX DMA right aw a y.
The TX local DMA mode is used between GMAC and
packet memory during transmission of packet. TRP (
Transmit Read Page pointer ) is used by local DMA to
fetch the first page of the desired packet in the packet
memory. When GMAC receive a TX DMA send com-
mand ( register 00h.ST1=0, ST0=1 ), data in the packet
memory will be moved into GMAC's transmit FIFO.
GMAC will append preamble, sync and CRC field dur-
ing the actual tranmission. The adv antage of this mode
is multiple packets can be processed with a single
comannd, also new packet(s) can be prepared while
TX local DMA is active. Therefore, potential higher
through-put of TX channel can be achie ved. The disad-
v antage is packet memory bandwidth is now shared by
host, TX channel and RX channel. This means band-
width might not be enough for all three to run at their full
speed which may result in TX FIFO underrun, or RX
FIFO overrun and slow host accesses, especially in a
system where you only hav e a 8 bit packet memory.
It may be desireable to mix both direct FIFO mode anf
TX local DMA mode so that bandwidth of packet memory
and convenience of concurrent processing of mutiple
pack ets can be compromised for the best interest of the
system's perf ormance. Some cautions should be taken
when you using mixed mode. Do not write to FIFO while
TX local DMA is activ e, because such write will corrupt
whatever packet being transmitted in the FIFO. Do not
activate TX local DMA while direct FIFO send has not
been finished f or current packet's transmission. Regis-
ter 00h.ST1 and ST0 bits are both command and sta-
tus, before host issues any packet send command. Al-
wa ys read these two bits and make sure they are both 0
which indicate a transmit cnahhel IDLE ( FIFO is also
empty ). The rule of the mixed modes is always activate
one mode at a time, ST1 and ST0 must be both 0 be-
f ore the other mode is used.
Prior to transmission in direct FIFO mode
When ST1 and ST0 bits are both 0, host can write a
packet no longer than 1518 bytes through IO port regis-
ter 48h. GMAC will record the byte count. Since register
48h is write only port, it can not be read. Before the
entire packet is completely inside FIFO, host can do
other operations except activating TX local DMA. Issu-
ing TX local DMA before current direct FIFO wr ite op-
erations or TX FIFO send completion will "corrupt" cur-
rent packet inside TX FIFO. When the entire packet is in
the FIFO , host can issue ST1=1 and ST0=0 ( TX FIFO
send command ). When this packet is sent out com-
pletely, transmit status will be recorded in register 04h
and both ST1 and ST0 are cleared to 0 to indicate IDLE
state.
Prior to transmission in TX local DMA mode
The transmit descriptor located at the beginning of the
first page of the desired packet in the packet memor y
must be properly set by device driver prior to a transmit
command. By using TWP ( Transmit Write Page Pointer
), device driver can fill up pack et(s) in the transmit buffer
ring. For single packet transmission, the Next Packet
P age P ointer field should be equal to TRP page pointer
which links to the current pack et itself. If multiple pac k-
ets are to be transmitted, then Next Packet P age Pointer
field of transmit descriptor should be set to the start
page of next packet. Current Packet Length ( in b yte ) is
set to indicate the size of current pac ket. Transmit Sta-
tus bit 7 ( O WN bit ) of the descriptor needed to be set
to 1 to indicate that device driver has finished preparing
the current packet. Then the packet can be transferred
to GMAC for transmission. At this point, transmit com-
mand can be issued by setting Reg00h.ST1=0, ST0=1
( TX DMA poll command ) to activate transmit opera-
tion. ST1 and ST0 bits will be cleared to 0 when trans-
mission is done.
28
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
During the process of filling up packet(s) in the transmit
buffer ring, current write address to TX buffer ring is
mapped directly from uP's address lines during uP write
to packet buff er . TWP is updated by driver only and TWP
is used to be checked against TRP,BP,TLBP by both
GMA C and driver to maintain TX buff er ring's integrity.
Packets between TRP and TWP will be transmitted by
GMA C if TX DMA poll command is issued. TWP serves
as the star t page of non-ready packet(s) which is still
being prepared by driv er.
Condition required to begin transmission
1. Register 00h.ST1=0 and Reg00h.ST0=1 f or TX local
DMA mode or register 00h.ST1=1 and ST0=0 in di-
rect FIFO mode
2. The interframe gap timer has timed out.
3. TX FIFO is filled with a complete pac k et or is full.
4. If a collision has been detected and backoff timer
has e xpired.
After packet is started to go out to network, TTHD[1:0]
will begin to affect packet memory's arbitration if FIFO
needs more data from packet memor y. ( TTHD is not
used in duirect FIFO mode ) In the TX local DMA mode,
the adv antage of smaller threshold is to reduce the risk
of a potential transmit FIFO underrun error. Such
underrun error occurres when data in FIFO is exhausted
by transmit while local DMA still has not filled in more
data to be transmitted. Since TX FIFO is large enough
for the largest normal packet ( 1518 bytes ), therefore,
the TTHD and FIFO underrun applied to pack ets larger
than 1518 bytes in the TX local DMA mode. The larger
the TTHD, the less aggressive the TX DMA in packet
memory arbitration, therefore host and RX DMA may
ha v e more bandwidth in pack et memory.
When this underrun occurres, packet will be aborted
and interrupt will be asserted to get host's attention.
FIFOEI ( register 09h bit 5 ) interrupt bit will be set when
underrun occures and interrupt to host is asser ted if
FIFOEIM bit (register 08h bit 5 ) is also set.
So TTHD can be tuned to improve the target system for
best through put in TX local DMA mode .
Collision recovery
During transmission, if a collision is detected before the
first 64 bytes of packet has been transmitted, the FIFO
will restore the necessar y FIFO pointers to retransmit
the same packet without fetching the transmitted data
from packet memory. An out-of-window collision is a
collision occured after 64 bytes of data transmitted. If
out-of-window collision occurred, packet will be aborted
with interrupt asserted. O WC bit of transmit descriptor
is set and de vice driver needs to resolv e such situation
and reissue a transmit command so that GMAC can
fetch the entire packet from packet memory again for
retransmission.
Collision count will be recorded for the current packet in
register 04h.CC[3:0] bits. If 15 retransmission each re-
sult in a collision, the transmission is aborted and colli-
sion count CC[3:0]=1111 and an interrupt will be as-
serted and TEI interrupt bit is set to indicate such a e x-
cessive collision error. If TI interrupt bit is set, then packet
is successfully transmitted with collision count=CC[3:0].
After single packet transmission
When a packet(s) transmission is completed, register
00h.ST1 and ST0 are both cleared to 0 automatically
by GMAC. Whenever the first packet is sent out, inter-
rupt is asser ted for host's attention. Device driver can
process this packet's status. In TX local DMA mode,
first thing to check is making sure the OWN in the sta-
tus field bit 7 is 0 which indicates that GMA C has com-
pleted the transmission of this pac k et and the status is
valid. Or in direct FIFO mode, check ST1 and ST0 for
both 0 which indicates completion of previous transmis-
sion. At this point, device driver can proceed with trans-
mit status and other book keeping tasks .
For successful transmission, interr upt is caused by in-
terrupt register bit TI ( bit 2 of register 09h ) of interrupt
register IR, provided that the corresponding enab le bit
TIM ( bit 2 of register 08h ) of interrupt enable register
IMR is set. In case that an error occured during the trans-
mission, Interrupt register bit TEI will be set instead of
TI. Register 09h bit 4 ( TEIM ) is the interrupt enable bit
for TEI. Set TEIM will enable TEI interrupt.Transmission
error can be read from register 04h ( LTPS register )
which records the transmit status of the last packet trans-
mitted. If bit 7 ( TERR ) of register 04h is set then TEI
will be set as well. TERR is a logical OR of underr un
error( UF bit ). out-of-window collision error ( OWC bit ),
carrier lost error ( CRSLOST bit ) and excessive colli-
sion error ( CC[3:0]=1111 and TEI = 1).
29
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Multiple packets transmission ( TX local DMA
mode only )
If more pack ets are prepared in the packet memory and
all transmit descriptors are set properly ( i.e. next packet
page pointer , pac ket length, O WN bit = 1) then a trans-
mit command can send out all these packets in a row.
As soon as the first packet transmission is done, inter-
rupt will be asserted to get host's attention. Device driver
can serve this interrupt call by processing all the pac k-
ets that have OWN bit equals to zero in this multiple
pack ets list in packet memory. Device driver can "peek"
the OWN bit of next packet's descr iptor to see if there
are more packet(s) transmitted completely at that point.
If OWN bit of next packet's descriptor is zero, then de-
vice driver can proceed to next packet after finishing
the current packet. When all packets are transmitted
successfully or aborted, register 00h. ST1 and ST0 bits
are internally reset. This w ay, packets can be send out
in a b urst with single transmit command.
Transmit packet assemb ly f ormat in packet
memory
For 16 bit SRAM interface :
D15 D8 D7 D0
Descriptor Byte 1 Descriptor Byte 0
Descriptor Byte 3 Descriptor Byte 2
Destination Address Byte 1 Destination Address Byte 0
Destination Address Byte 3 Destination Address Byte 2
Destination Address Byte 5 Destination Address Byte 4
Source Address Byte 1 Source Address Byte 0
Source Address Byte 3 Source Address Byte 2
Source Address Byte 5 Source Address Byte 4
Type/Length byte 1 Type/Length byte 0
Data byte 1 Data byte 0
For 8 bit SRAM interface :
D7 D0
Descriptor Byte 0
Descriptor Byte 1
Descriptor Byte 2
Descriptor Byte 3
Destination Address Byte 0
Destination Address Byte 1
Destination Address Byte 2
Destination Address Byte 3
Destination Address Byte 4
Destination Address Byte 5
Source Address Byte 0
Source Address Byte 1
Source Address Byte 2
Source Address Byte 3
Source Address Byte 4
Source Address Byte 5
Type/Length byte 0
Type/Length byte 1
Data byte 0
30
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Transmit descriptor format
Bit Symbol Description
0 CC0 Collision Count Bit 0 :
1 CC1 Collision Count Bit 1 :
2 CC2 Collision Count Bit 2 :
3 CC3 Collision Count Bit 3 : when CC[3:0] = 1111 and TEI interrupt bit is set, , then it is called
excessive collision error which will abort the current pack et. If TI interrupt bit is set, then
CC[3:0] is the collision count and pack et is tr ansmitted successfully.
4 CRSLOST Carrier Sense Lost : Netw ork carrier signal was lost at some point during the transmis-
sion or lost during entire duration or transmission.
5 UF TX FIFO underflow : TX FIFO is exhausted before TX DMA fill in more data for transmis-
sion.
6 OW C Out of Windo w Collision : A collision occured after 64 bytes of data had been tr ansmit-
ted. This pac k et will be aborted.
7 OW N P ac k et Buffer o wnership indicator:
1: indicate GMAC has access right to current pac k et's b uffer
0: indicate host has access right to current pack et's b uffer
There are 4 bytes in a descriptor structure for both transmit and receive pack et. Transmit descriptor is prepared by
de vice driver before transmitting the pac ket. The transmit descriptor fo rmat is defined as f ollo ws :
bit 7 bit 0
Ne xt Pac k et Page Pointer ( bit 7-4 ) Next P ac ket P age Pointer ( bit 3-0 )
P ac k et Length ( bit 3-0 ) Ne xt Pack et Page P ointer( bit 11-8 )
P ac k et Length ( bit 11-8 ) P acket Length ( bit 7-4 )
Transmit Status ( bit 7-4 ) Transmit Status ( bit 3-0 )
31
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
4.2 Packet Reception
The local DMA receive channel uses a receive buffer
ring structure comprised of a series of contiguous fixed
length 256-byte ( 128 word ) buffers for storage of re-
ceived pac kets. The location of this receive buffer ring is
programmed in two page pointers, a Boundary Page
pointer and a Receive High Boundary Page pointer.
Ethernet packets consist of a distribution of shorter link
control pack ets and longer data packets , the 256-bytes
buffer length provides a good compromise between dif-
ferent packet sizes to best utilizing the memory . Receive
buffer ring provides storage f or back-to-back packets in
a loaded networks. The assignment of buffers for stor-
ing packets in managed by GMAC's receive DMA logic.
Three basic functions are provided b y the receive DMA
logic : linking receive b uffers f or long pac kets , recov ery
of buff ers when a packet is rejected and recirculation of
b uff er pages that has been read b y the host.
BUFFER 1
BUFFER 2
BUFFER 3
PAGE
RHBP
BP
Packet Memory
256 BYTES
Figure 4.2.1 GMAC Receive Buffer Ring
4
3
2
1
n
n-1
n-2
32
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Receive Write
Page Pointer
Boundary
Page Pointer
Receive High
Boundary
Page Pointer
256 BYTES
Figure 4.2.2 GMAC Receive Buffer Ring at Initialization
4
3
2
1
n
n-1
n-2
Receive Read
Page Pointer
Initialization of receive buffer ring
Two static page pointer and two working page pointers
control the operation of the receive buffer ring . These
are Boundary Page ( BP ) pointer, Receive High Bound-
ary Page ( RHBP ) pointer, the Receive Read Page (
RRP ) pointer and Receive Write P age ( RWP ) pointer .
BP register points to the first buffer ( page ) of the re-
ceive buffer ring. RHBP points to the last page of re-
ceive buffer ring. RWP register points to the page in
which receive DMA logic is storing incoming network
data. RRP register points to the page from which host
will read ne xt network data. A receiv e descriptor struc-
ture is located at the beginning of the start page of a
received packet. If GMAC ever reach the page pointed
by RHBP register, it will link the page pointed by BP
register as next page, thus forms a “ring” buffer struc-
ture.
The size of receive buffer ring is the total buffer space
between BP and RHBP register. An inter nal 8 bit byte
counter accounts for MA[7:0] will be used with RWP
register to form a physical memory address during re-
ceive DMA wr ite operation. This inter nal 8 bit counter
will tracks the actual location within a page. After GMAC
is initialized, BP, RWP and RRP should all points to the
same page. These registers must be properly initialized
bef ore setting NCRA's ( register 00h ) SR ( bit 3 ) bit to
one which enables the receive channel for DMA func-
tion.
Beginning of reception
After all four page pointers are properly set by device
driver ( host ), register bit NCRA.SR bit can be set to
enable reception of packets. When the first packet be-
gins arriving the GMAC begins storing pac ket at the lo-
cation pointed to by the RWP register. An offset of 4
bytes ( descriptor ) is saved in this first page to store
receive status corresponding to this packet. Whenever
internal byte counter reaches FFh indicating end of a
page, RWP will be incremented by 1 automatically if
more data is arriving for this pac k et.
The incoming network address is examined by GMAC
to determine whether to accept or reject. If GMAC de-
cided to reject the pack et, then receiv e FIFO will be re-
stored and so is the buffer used. If packet should be
accepted and FIFO contains data up to a threshold level
which can be programmed b y RTHD[1:0] ( register 33h
bit [3:2] ). The smaller the threshold, the earlier the re-
ceive DMA logic removing data from FIFO, thus may
has lower risk in running into a FIFO ov erflow situation.
The disadvantage of a smaller threshold is that host
and transmit channel may be less efficient. So thresh-
old should be chosen to tune f or best network through-
put. Default v alue of receive FIFO threshold is 00 mean-
ing 50% of the FIFO is filled up bef ore any receive local
DMA can start removing data out of FIFO .
Linking receive buffer pages
If packet length exhausts the first 256-bytes buffer, re-
ceiv e DMA logic will perf orms a f orward link to the ne xt
buffer to store the remainder of the packet. A maxim um
length packet , up to 6 buffers can be linked together.
Buffers can not be skipped when linking, therefore a
packet will always be stored in contiguous buffers. Be-
fore the next page can be linked, receive DMA logic
does two comparisons.
The first comparison tests the equality between content
of RWP register + 1 and content of RRP register. If equal,
the reception is aborted. This is called receive buffer full
error. Second comparison tests the equality between
RWP register and RHBP register. If equal, the receive
DMA will restore RWP to the first buffer in the receive
buffer ring pointed by BP register if receiv e buffer ring is
not full.
33
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Begin Storing
Packet
Receive Write
Page Pointer
4 Byte Offset For
Packet Descriptor
Begin Data
Reception
Figure 4.2.3 Received Packet Enters the Receive Buffer Pages
4
3
2
1
n
n-1
n-2
Receive buffer ring full
In a heavily loaded network which may cause overflow
of the receive buffer ring, when the last available page
is exhausted and more data needs to be stored for the
current packet then the receive buffer ring is full but
GMAC will continue receiving until RX FIFO is also over-
flow. At this point, GMA C will do the f ollowing actions :
1. Close current received packet with the FO bit ( bit 3 )
and the BF bit ( bit 0 ) of the receive descriptor being
set if a minimum of one page is used by this packet.
2. An interrupt may be asser ted if the RBFI ( register
09h bit 7 ) interrupt bit is set and the RBFIM bit (
register 08h bit 7 ) is also set.
3. If AUTORCVR is reset, then GMAC can not receive
any more packet. All following packets will be lost
and MPC ( Missed Packet Counter ), registers 07h
and 06h, will be increment automatically. MPC can
be reset by the de vice driver .
The f ollowing procedure is required f or device driver to
recov er from such error situation.
1. Issue the SR=0 ( NCRA register bit 3 ) which will stop
RX channel to prevent new data from coming into RX
FIFO.
2. Issue RX FIFORST to clean RX FIFO .
3. Remove all the received packets in the packet memory .
When buff er ring is empty, RRP=RWP.
4. Clear all receive related interrupt flags and then set
the SR bit=1 to resume the receive operation.
Successful reception
Based on the network address filtering modes set up by
the device dr iver, GMAC will deter mine whether to re-
ceive a packet or to reject it. It either branches to a
routine to store the packet or to another routine to re-
claim the buffers used to store packet. If a packet is
successfully received, GMA C will store the receive sta-
tus, packet length and next packet pointer in the receive
descriptor located at the beginning of the first page of
the pack et and status in LRPS ( register 05h ) register.
Note that the remaining bytes in the last page are dis-
carded and reception of the next packet begins on the
ne xt empty 256-byte page boundary. The RWP is then
set by GMAC to the next available page in the buffer
ring.
Rejected packets
If the packet is a runt packet and PB bit ( Pass Bad
option, register 01h, bit 3 ) is reset then it is rejected.
The buffer previously used by this rejected packet is
reclaimed by resetting the internal byte counter to zero
automatically by GMAC. Packet with at least 64 bytes
are always received and stored regardless of CRC error
status.
34
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Receive Write
Page Pointer Packet
Ends
Receive Read
Page Pointer
Packet Status
Figure 4.2.4 Termination Of Received Packet-Packet Accepted
Next Package Page Pointer
Packet Length
Receive Status
4
3
2
1
n
n-1
n-2
,,
,,
Removing packets from the buffer ring
P ackets are removed from the ring by the host using the
direct host DMA. The actual packet memory address
during host DMA is mapped directly from uP address
lines. i.e. Host has to control all the addresses dur ing
the packet buffer accesses directly. By reading the de-
scriptor device driver will know the size of packet and it
can move data up to the last page without updating RRP
register . The RRP register will be updated by driver only
whenever a packet has been removed. Driver must prop-
erly update RRP to next available page, especially if
RHBP page is exhausted. in this case, next page should
be wrapped around to the beginning ( pointed by BP reg-
ister ) of RX buffer ring.
Host page registers RRP and TWP are maintained by
driver only. It is recommended that only when a pack et
has been removed from RX buffer ring, RRP is then
incremented by driver so that GMAC will not overwrite a
page which belongs to an unprocessed pack et. The fol-
lowing is a suggested method for maintaining the re-
ceiv e b uff er ring pointer :
1. At initialization, set up BP= RRP=RWP and RHBP to
a higher memory page. At the point, receiv e buff er is
empty.
2. Set a software address counter and byte counter , byte
counter's LSB byte is reset. The MSB bits [19:8] of
the address counter will start from current RRP reg-
ister, and keeping track of current page, once a packet
is removed, then RRP register is updated to next page
location.
3. After a packet is stored in the receive buffer ring,
GMAC issue interrupt. Device driver will start moving
data beginning from the page pointed by RRP regis-
ter. Reads the packet length and advanced the ad-
dress counter as the host DMA goes along. Care
should be taken if manual page pointer update is used
when RHBP page is exhausted or buff er is full.
35
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Receive packet assemb ly f ormat in pac ket
memory
F or 16 bit SRAM interface :
D15 D8 D7 D0
Descriptor Byte 1 Descriptor Byte 0
Descriptor Byte 3 Descriptor Byte 2
Destination Address Byte 1 Destination Address Byte 0
Destination Address Byte 3 Destination Address Byte 2
Destination Address Byte 5 Destination Address Byte 4
Source Address Byte 1 Source Address Byte 0
Source Address Byte 3 Source Address Byte 2
Source Address Byte 5 Source Address Byte 4
Type/Length byte 1 Type/Length byte 0
Data byte 1 Data byte 0
F or 8 bit SRAM interface :
D7 D0
Descriptor Byte 0
Descriptor Byte 1
Descriptor Byte 2
Descriptor Byte 3
Destination Address Byte 0
Destination Address Byte 1
Destination Address Byte 2
Destination Address Byte 3
Destination Address Byte 4
Destination Address Byte 5
Source Address Byte 0
Source Address Byte 1
Source Address Byte 2
Source Address Byte 3
Source Address Byte 4
Source Address Byte 5
Type/Length byte 0
Type/Length byte 1
Data byte 0
There are 4 bytes in a descriptor structure for both transmit and receive pack et. Transmit descriptor is prepared by
de vice driver before transmitting the pac k et. The transmit descriptor f ormat is defined as f ollo ws :
bit 7 bit 0
Ne xt Pac k et Page Pointer ( bit 7-4 ) Next P ac ket P age Pointer ( bit 3-0 )
P ac k et Length ( bit 3-0 ) Ne xt Pack et Page P ointer( bit 11-8 )
P ac k et Length ( bit 11-8 ) P acket Length ( bit 7-4 )
Transmit Status ( bit 7-4 ) Transmit Status ( bit 3-0 )
Receive status in descriptior
PIN# Symbol Description
0 BF RX Pac k et Buffer Full Error : 1 indicates RX pack et b uffer is full.
1 CRC CRC error : caused by corrupted data or dribble b yte (s).
2 FAE Frame Alignment Error : Dribble nibble (s), FAE error might not cause CRC error (e.g.
only a dribb le nibb le is detected by GMAC). FAE error will not set RERR bit.
3 FO FIFO ov errun
4 RW Receive W atchdog : Set to indicate the frame length e xceeds 2048 b ytes .
5 MF Multicast address : Set to indicate current frame has m ulticast address.
6 RF Runt Frame : Set to indicate a frame length less than 64 bytes, only meaningful when
Reg00h.4 (PB bit)=1 is set.
7 RERR Receiv e Error : a logical OR of CRC, FO, BF, RW, RF bit.
36
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
4.3 P ac ket Structure and 802.3 conformance
Network speed may be 10 MBPS or 100 MBPS mode. Further more, GMAC supports full duplex mode where
transmit and receiv e process are running independently. A typical Ethernet frame structure is shown belo w.
Ethernet and IEEE 802.3 Frames
An Ethernet frame format consists of the follo wing:
Field Description
Preamb le A 7-byte field of 56 alternating 1s and 0s, beginning with a 0.
SFD A 1-byte field that contains the v alue 10101011; the MSB is transmitted and received first.
Destination A 6-byte field that contains the specific station address, the broadcast
address. or a multicast address where this frame is directed.
Source A 6-byte field that contains the specific station address where this frame w as sent.
Type/Length A 2-byte field that indicates whether the frame is in IEEE 802.3 format or Ethernet format. A
field greater than 1500 is interpreted as a type field, which defines the type of protocol of
the frame . A field smaller than or equal to 1500 isinterpreted as a length field, which indi
-cates the No . of data bytes in the fr ame .
Data A data field consists of 46 to 1500 b ytes that is fully transparent. A data field
shorter than 46 bytes is allo w ed, unless padding is disabled (TDES1<23>).
CRC A frame check sequence is a 32-bit cyclic redundancy chec k (CRC) value that is computed
as a function of the destination address field, source address field, type field and data field.
The FCS is appended to each transmitted frame , and used at reception to determine if the
receive fr ame is v alid.The figure shows the Ethernet frame f ormat.
*Numbers in parentheses indicate field length in bytes .
CRC
Type/
Length Data
Source
Address
Destination
Address
SFD
Preamble
(7) (1) (6) (2) (46...1500) (4)
(6)
Ethernet F rame Format
37
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
The CRC polynomial, as specified in the Ethernet specification, is as follo ws:
FCS(X) = X31 + X26 + X23 + X22 + X16 + X12 + X11 + X10 + X8 + X7 + X5 + X4 + X2 + X1 + 1
The 32 bits of the CRC value are placed in the FCS field so that the X 31 term is the right-most bit of the first octet, and
the X0 term is the left-most bit of the last octet. The bits of the CRC are thus transmitted in the order X 31,X30,....X1,X0.
4.4 Network Ad dress Filtering
The first bit of the destination address signifies whether it is a ph ysical address or a multicast address. The receiv e
MAC filters the frame based on the address filter ing option descr ibed below. Register 01h ( NCRB ) bit 0 is PR (
Promiscuous mode ) and bit 2 is PM ( Pass Multicast ) are used to control the desired address filtering options.
Possib le Address Filtering Options ( all independent of each other options )
option Description
1 One ph ysical address perf ect filtering , always enabled
2 Unlimited multicast addresses imperf ect filtering using hash table.
3 P ass all multicast address
4 Promiscuous Ethernet reception, when set, all valid frames are reeciv ed
If the frame address passes the network address filter, the receive MAC removes the preamble and delivers the
frame to the host processor memory . Howe ver , if the address does not pass the filter when mismatch is recognized,
the receiv e MA C terminates this reception.
GMA C Netw ork Address Filtering
(NOTE1) Broadcast packet Is not filtered by hash table array.
(NOTE1)
Address
Match
Logic
Selected Bit
"0"=reject,"1"=accept
NCRB.AB
NCRB.PB
NCRB.PM
NCRB.PR
RX address match
ID Compare
incoming
MAC ID
Index
32 Bit CRC
31 26 0
Destination Address
47 0
0
1
PAR0-PAR5
MAC ID
Hash Table Array
MAR0-MAR7
38
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
GMAC's Network Address Filtering Flow Char t
LLC input
Packet Accept
Packet Drop
Unicast
Compare DA and
PAR(0x20-0x25) Accept Broadcast
Reg0x1[4]=0
Pass Multicast
0x1[2]=1
Hash Filter
MART(0x26-0x2D)
Broadcast
YES
YES
YES
YES
YES
YES
NO
NO
NO
NO
A
NO
NO (Multicast Packet)
A
B
B
39
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
5.0 Host/Local DMAs and packet memory bus arbitration
Packet Memory Bus Arbitration State Diagram
Host Access
(1st priority)
Host is critical
TX is critical & No one else is critical
Host is critical
TX is critical & No one else is critical
TX is critical & No one else is critical
RX is critical & Host is not critical
RX is critical & Host is not critical
RX is critical & Host is not critical RX DMA
(2nd priority)
TX DMA
(3rd priority)
Host is critical
If no one is critical, then round-robin
scheme is used in prioritization.
Rules of packet memory access prioritization
rule 1: TX local DMA is said to be "critical" if TX FIFO counter f all belo w TTHD lev el.
If TX pack et is in "stored and forward" mode (TTHD[1:0]=11), then TX local
DMA is ne v er critical.
rule 2 : RX local DMA is said to be "critical" if RX FIFO counter rise abov e RTHD level.
rule 3 : Host access is said to be "critical" if DINTVAL timer is time out.
rule 4 : If all three accesses are critical, then Host has 1st priority, RX local DMA has 2nd priority and TX local DMA
has last priority. If no one is critical, then round-robin is used.
40
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
5.1 Host DMA
The Host DMA channel is used to both assemble pack-
ets for transmission, and to remove received packets
from the receive buffer ring . Two registers RRP and
TWP are used to control host DMA. The physical ad-
dress of these DMA are f ormed by the f ollo wing rules
F or 188/186 modes, HLD A must be 0 during host DMA
cycles ( HLDA=0 will disable local DMA temporarily ).
Two Page pointers ( RRP, TWP ) are to be maintained by
host for all host DMA ( packets accesses ).
Host write
Host write to packet memory is used to prepare a packet
for transmission. TWP register is used for addressing
the page address of the physical buffer. Update of TWP
can only be done by driver. HLDA must be low when-
ever the host DMA is running. SRDY is used to inser t
wait states so that local DMA will finish at least one on-
chip FIFO burst transfer before host can complete cur-
rent access cycle to packet buffer.
Host Read
Host read to packet memory is used to remove a packet
for receive buffer ring. RRP register is used for address-
ing the page address of the physical buffer. Update of
RRP can only be done by driv er . Again, HLD A must be
low whenever the host DMA is running. SRD Y is used to
inser t wait states so that local DMA will finish at least
one on-chip FIFO burst transfer before host can com-
plete current access cycle to packet buffer .
5.2 Local DMA
Receive FIFO threshold of Receive DMA
Receive FIFO threshold is defined by register 33h bit
[3:2] (RTHD[1:0]) is used to control the aggressiveness
of receiv e DMA request in pac ket memory bus arbitr a-
tion operation. e.g. default v alue of RTHD=1/2 the depth
of receive FIFO which means whenever the content of
FIFO is over 1/2 of FIFO space (it is "critical" since FIFO
may soon be full or overrun), when receive FIFO is "criti-
cal" then receive DMA will have higher priority over trans-
mit DMA (regardless of whether transmit FIFO is criti-
cal or not). If FIFO is not over RTHD level, it is not
critical, then transmit DMA may have equal priority as
receive DMA or higher priority over receive DMA if trans-
mit FIFO is critical. The larger the receive threshold,
the less aggressive the receive DMA because it takes
more time for receive DMA to become critical but it also
presents a higher risk to become FIFO full or overr un
the FIFO space. The smaller the RTHD, the more ag-
gressive the receive DMA is and less risk in running
into a FIFO full condition, but it also blocks other access
from host and transmit DMA. Since packet memory
bandwidth is shared by host, transmit DmA and receive
DMA, "tuning" R THD threshold may be necessary for a
best network/system throughput.
Receive FIFO bu rst length of Receive DMA
Receive FIFO b urst length is defined by register 33h bit
[7:6] (RBLEN [1:0]) which control the number of data
transfers within each and every receive DMA cycle. e.g.
duf ault receiv e burst length is 4 which means there will
be exactly 4 bytes (or 4 words) transferred in each re-
ceiv e DMA cycle. The larger the RBLEN, the more effi-
cient the receive DMA transfer but it also cause trans-
mit DMA and host DMA to wait more time for packet
memory bus release for new access. Tuning receive
FIFO burst length ma y be necessary for a best network/
system throughput.
Receive DMA
Receive DMA normally has higher priority over host and
transmit DMA. This is due to the receive data can not be
reproduced locally, therefore it is more urgent than oth-
ers. Once receive DMA is granted an access to packet
memory, receive DMA conducts a burst write whose
length is defined by register 33h bit [7:6] (PBLEN [1:0]).
Only when current receive burst transfer is done, arbi-
trator will release the packet memory bus to next re-
quester.
41
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
The physical address of receive DMA is f ormed by cas-
cading a page address RWP register and an internal
byte counter for receive DMA. RWP [11:0] is mapped to
MA[19:8] while the internal byte counter is mapped to
MA[7:0]. Thus a 20 bit MA is derived. RWP will be auto-
matically updated by GMAC whenever a page is ex-
hausted. If RHBP is exhausted, GMAC will link BP as
the next available page into R WP if the BP page is free,
otherwise a receiv e buff er full error occures.
Transmit FIFO threshold of transmit DMA
Transmit FIFO threshold is defined by Register 33h bit
[1:0] (TTHD [1:0]). TTHD is used to control the aggres-
siveness of transmit DMA request in packet memory
bus arbitration. e.g. default value of TTHD=1/2 the depth
of transmit FIFO which means whene ver the content of
FIFO falls below 1/2 of FIFO space, the transmit DMA
will have higher prority over receive DMA (if receive FIFO
is not critical). If transmit FIFO is over TTHD le vel, then
transmit may have equal priority as receive DMA or lower
priority to receive DMA (if receiv e FIFO is critical). The
larger the TTHD threshold, the less aggressive the trans-
mit DMA because it takes more time for transmit DMA
to become critical of running empty. The small TTHD
will result in more aggressiv e transmit DMA but then it it
also more critical, i.e. it takes less time to run transmit
FIFO to empty ("underrun error). Since packet memory
bandwidth is shared by host, transmit DMA and receive
DMA, "tuning" TTHD ma y be necessary for a best net-
work/system throughput.
Transmit FIFO b ur st length of transmit DMA
Transmit FIFO burst length is defined by register 33h bit
[5:4] (TBLEN [1:0]) which control the number of data
transfers within each transmit DMA cycle. e.g. default
transmit burst length is 4 which means there will be e x-
actly 4 bytes (or 4 words) transferred in each transmit
DMA cycle. The larger the TBLEN, the more efficient
the transmit DMA cycle but it also cause tr ansmit DMA
and host DMA to wait more time for a packet memor y
bus release for new access. "Tuning" TBLEN may be
necessary for a best network/system throughput.
T ransmit DMA
Transmit DMA normally has higher priority over host but
lower than receive DMA. Once a transmit DMA is granted
the access to packet memory, transmit DMA conducts
a burst read which is defined by TBLEN [1:0]. Only when
current burst transfer is done, arbitrator will release the
pack et memory b us to next requester.
The physical address of transmit DMA is formed by cas-
cading a page address TRP register and an internal
byte counter for receive DMA. RWP [11:0] is mapped
to MA[19:8] while the internal byte counter is mapped
to MA[7:0]. Thus a 20 bit MA bus is derived. TRP will be
automatically updated by GMAC whenever a page is
e xhausted. If RHBP page is exhausted, GMA C will link
BP page as the next available page into TRP if the BP
page is free.
42
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
EEDI - Serial ROM (EEPROM) Data In = register 1Ch, bit2
EECK - Serial ROM (EEPROM) Serial Clock = register 1Ch,
bit 1
EECS - Serial ROM (EEPROM) Chip Select = register 1Ch,
bit 0
EESEL - must be set to enable EEPROM access by register
1Ch, bit 4
6.0 Serial ROM ( EEPROM ) Interface
Serial ROM Connection
GMAC
EESC
EECK
EEDI
EEDO
Serial ROM
(Micro Wire)
SK
CS
DIN
DOUT
43
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Register 1Ch
Serial ROM Interface Block Diagram
(from eeprom)
EEDO
MUX
EECS
EEDI
EECK
EEDI
(to eeprom)
Auto Load
EEPROM Logic
A5/A7 A0
D0D150
EECS
EECK
EEDI
EEDO
EEPROM Read Cycle
A5/A7
Busy Ready
D0
D14
D15
A0
EECS
EECK
EEDI
EEDO
EEPROM Write Cycle
twp
44
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
A utoload Function
The Autoload Function is executed only once after hard-
ware reset (pin RSTB from low to high). At that time the
Serial ROM interf ace is controller by GMA C to load the
data from Serial ROM into GMA C .
EEPROM Content ( suggested )
Location Content
00H Physical Address Byte 0 : PAR[7:0] ( MSB )
01H Physical Address Byte 1: PAR[15:8]
02H Physical Address Byte 2 : PAR[23:16]
03H Physical Address Byte 3 : PAR[31:24]
04H Physical Address Byte 4 : PAR[39:32]
05H Physical Address Byte 5 : PAR[47:40]
0 6H GMAC Configuration A Register : GCA[7:0]
bit 0 : BPSCRM
bit 1 : PBW
bit 2 : SLOWSRAM
bit 3 : ARXERRB
bit 4 : MIISEL
bit 5 : A UT OPUB
bit 6 : TXFIFOCNTEN
bit 7 : reserved
07H reserved
08H-END Reserved for Software application
6.1 On-Chip Transceiver vs MII Interface
After system reset, GMAC enter its normal mode in which on chip 10/100 fast Ethernet tranceiver is used and
immediately Nwa y auto negotiation will start setting up link in the network. The option of using a 3rd party
tranceiv er , such as 10/100 fast Ethernet tranceiv er or HomePNA tranceiver is possib le through the MII (Media
Independent Interface) interface. Even if both fast Ethernet connection and HomePNA connection are desired,
GMAC can allow user to switch between these two connection through register setup.
When MII mode is chosen, both Nway and on chip tranceiver are isolated from the internal MAC logic, so all data
are from and to through the MII interface.
45
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
7.0 Timing Diagram and AC specification
SYMBOL PARAMETER 12MHZ 16MHZ 24MHZ 40MHZ UNIT
MIN. MAX. MIN. MAX. MIN. MAX. MIN. MAX.
tlp Ale pulse duration 25 - 25 - 25 - 25 - ns
tas Address set-up time to ale 3 - 3 - 3 - 3 - n s
tah Address hold time after ale 5 - 5 - 5 - 5 - ns
tr p RD pulse duration 38 - 38 - 3 8 - 38 - ns
twp WR pulse duration 38 - 38 - 38 - 38 - ns
trd RD to valid data input - 20 - 2 0 - 20 - 2 0 ns
tdhr Data hold time after RD 0 - 0 - 0 - 0 - ns
tlrw Time from ale to RD or WR 50 - 50 - 5 0 - 50 - ns
trwl Time from RD or WR high to ale high 10 - 10 - 10 - 10 - ns
tdw Data valid to WR transition 5 - 5 - 5 - 5 - n s
tdhw Data hold time after WR 0 - 0 - 0 - 0 - ns
46
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
trd
tah
tas
AD[7:0]
AD[15:8]
RD
ALE
PSEN
D0-D7
MX98726EC MEMORY READ CYCLE IN 80x1 MODE
trwl
A0-A7 A0-A7
tdhr
trp
tlp
A8-A15 A0-A15
tdw
tahtas
AD[7:0]
AD[15:8]
WR
ALE
PSEN
D0-D7
MX98726EC MEMORY WRITE CYCLE IN 80x1 MODE
trwl
A0-A7 A0-A7
tdhw
twp
tlrw
A8-A15 A0-A15
47
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
trls
tgnt
80x1 cycle N+1
80x1 cycle N
80x1 cycle N+1
80x1 cycle N
SRAM bus
owner
HLDA
80x1 cycle
GMAC cycle
GMAC cycle
HLDA=VIH to enable all access to SRAM
tsap
SYMBOL PARAMETER MIN. MAX. UNIT
tgap 80x1 cycle recovery time 30 0 ns
tgnt GMAC grant v alid dela y 8 TCLK
tris GMA C gr ant release dela y 4 TCLK
TCLK=Internal clock running at 50MHz
48
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
READ CYCLE
PARAMETER SYMBOL MIN. MAX. UNIT
Read Cycle Time trc 35 40 ns
Chip Select Pulse Width tcw 35 40 ns
Output Enable Pulse Width toew 35 40 ns
Data Hold from Address Change tdh -0 - ns
Data Valid Dela y From Address Change tds - 25 ns
tcw
toew
tds
Data V alid
16/8 BIT PACKET MEMORY READ CYCLE
trc
MA[19:1]
or
MA[19:0]*
MCSB
MOEB
* 8-bit packet memory
MD[15:0]
or
MD[7:0]*
tdh
Note : MA[19:0], MOEB, MCSB are asserted at the same internal clock edge.
49
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
WRITE CYCLE
PARAMETER SYMBOL MIN. MAX. UNIT
Write Cycle Time twc 35 40 ns
Chip Select Pulse Wdith tcw 35 40 ns
Address Set-up Time tas 5 - ns
Write Pulse Width (OE-High) twp 18 - ns
Data Setup To Write Rising Edge tds 25 28 ns
Data Hold from MWEB Deassertion tdh 10 - ns
Note : MA[19:0], MOEB, MCSB are asserted at the same internal clock edge .
High-Z
tdh
twp
tas
tcw
twc
MA[19:0]
MCSB
MOEB
MD[7:0]
*MW0B
* In byte mode, only MWE0B is used.
8 BIT PACKET MEMORY WRITE CYCLE
tds
50
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
WRITE CYCLE
PARAMETER SYMBOL MIN. MAX. UNIT
Write Cycle Time twc 3 5 4 0 ns
Chip Select Pulse Wdith tcw 3 5 4 0 ns
Address Set-up Time tas 5 - ns
Write Pulse Width (OE-High) twp 18 - ns
Data Setup To Write Rising Edge tds 2 5 28 ns
Data Hold from MWEB Deassertion tdh 1 0 - ns
Note : MA[19:0], MOEB, MCSB are asserted at the same internal clock edge.
High-Z
tdh
twp
tas
tcw
twc
MA[19:0]
MCSB
MOEB
MD[15:0]
*MWE1B
or MWE0B
16 BIT PACKET MEMORY WRITE CYCLE
tds
51
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
Symbol Parameter Min Max Units
tmdch MDC high time 200 ns
tmdcl MDC low time 2 00 ns
tmdsu MDIO to MDC high setup time 1 0 ns
tmdhd MDIO to MDC high hold time 1 0 ns
MII management signal MDIO timing :
MDC
tmdch tmdcl
tmdsu tmdhd
MDIO
Host Interface timing in 8018X mode :
Symbol Parameter Min Max Units
tas Address setup time for ALE 5 ns
ta h Address hold time for ALE 3 ns
tsrdy SRDY valid delay 45 6 5 ns
talew ALE pulse width 2 5 ns
AD[15:0]
ALE
ADD DATA
tas tah
talew
tsrdy
WRB
RDB
SRDY
52
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
8.0 DC CHARACTERISTICS
Symbol Parameter Conditions Min. Max. Units
TTL/PCI Input/Output
Voh Minimum High Level Output V oltage loh=-4mA 2.4 V
V ol Maximum Low Le vel Output V oltage lol=+4mA 0. 4 V
Vih Minimum High Le vel Input V oltage 2. 0 V
Vil Maximum Low Le vel Input V oltage 0. 8 V
Vsih Schmitt Trigger Input high V oltage VCC = 5V 0.7VCC V
Vsil Schmitt Trigger Input Low V oltage VCC = 5V 0.3VCC V
lin Input leakage current (No pull-up or pull-down) Vin=VCC or GND -2.0 +2.0 uA
lin(pull-up) Input leakage current with Internal pull-up Vin=VCC or GND -20uA -70uA
lin(pull-down) Input leakage cruuent with Internal pull-down Vin=VCC or GND +20uA +70uA
loz Minimum Tri-state Output Leakage Current V out=VCC or GND -10 +10 uA
Ioz(pull-up) Minimum Tri-state Output Leakage Current with V out=VCC or GND -20uA -70uA
internal pull-up
Ioz(pull-down)Minimum T ri-state Output Leakage Current with V out=VCC or GND +20uA +70uA
internal pull down
LED Output Driver
Vlol LED turn on Output V oltage lol=16mA 0.4 V
Idd Average Supply Current CKREF=25MHz 16 0 30 0 mA
Ianalog Average Analog Current Full duplex 120 190 mA
Irx Average RX Current Full duplex 5 0 80 mA
Itx Average TX Current Full duplex 70 110 mA
Vdd A verage Supply V oltage 4.75V 5.25V V
Clock 25MHz±30ppm
8.1 ABSOLUTE OPERA TION CONDITION
Supply Voltage (VCC) -0.5V to +7.0V
Storage T emperature Range (Tstg) -55°C to +150°C
Operating free-air T emperature Range 0°C to 70°C
53
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
9.0 PACKAGE INFORMATION
128-Pin Plastic Quad Flat Pack
A
eL
A1
L1
E3 aE
38
1
64
65
102
103
128 39
D3
D
ZD
b
c
d
ZE
ITEM MILLIMETERS INCHES
a 14.00±.05 5.512±.002
b .20 [Typ.] .08 [Typ.]
c 20.00±.05 7.87±.002
d 1.346 .530
e .50 [Typ.] .20 [Typ.]
L1 1.60±.1 .63±.04
L .80±.1 .31±.04
ZE .75 [Typ.] .30 [Typ.]
E3 12.50 [Typ.] 4.92 [Typ.]
E 17.20±.2 6.77±.08
ZD .75 [Typ.] .30 [Typ.]
D3 18.50 [Typ.] 7.28 [Typ.]
D 23.20±.2 9.13±.08
A1 .25±.1 min. .01±.04 min.
A 3.40±.1 max. 1.34±.04 max.
Note Short Lead Short Lead
NOTE: Each lead centerline is located within .25 mm[.01
inch] of its true position [TP] at maximum material condition.
54
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
REVISION HISTORY
REVISION DESCRIPTION PAGE DATE
0.9.6 Changed to V 0.9.6 added revision history P5 3 July/28/1999
0.9.6 added register 30h description P17
0.9.6 added register 30h description P18
0.9.6 add register 40h-43h as reserved. P21
0.9.6 LRPS register , add "notes". P1 2
0.9.6 add MAC address filtering flow chart P3 5
0.9.6 12K changed to 10K. 1.5K changed to 1.4K P7
0.9.6 RLBP changed to RHBP P14
0.9.6 add "RHBP" short hand to register 1A, 1B h P1 5
0.9.6 rename network address filtering registers ( MAR) P 17
0.9.6 change 12K to 10K P4 8
0.9.7 modify MISC Control Register P21 Dec/28/1999
0.9.7 add Write TX FIFO Data P ort register P2 2
0.9.7 add Read Data register P22
0.9.7 add MISC Control Register 2 P2 2
0.9.7 add Host Receive P ack et Counter P2 3
0.9.7 add Host DMA Fragment Counter P23
0.9.8 contents modify P10,31 Apr/06/2000
0.9.9 MX98726A --> MX98726EC May/31/2000
add features P1
modify internal block diagram P2
add combo application P3
modify pin configuration and description P4
modify pin description (pin 70~73) P5
modify packet buffer interface (pin 4~7) P6
modify miscellaneous (pin 83, 84) P7
modify network control register (bit 1.5) P1 0
modify GMAC test register P 11
modify receive interrupt timer P1 5
modify NWY configuration register (bit 30.2, 30.[5:3] P 18
modify GMAC configuration a register (bit 32.4) P1 8
modify GMAC configuration b register (bit 33.5-4, 33.7-6) P19
modify MISC control register (bit 3D .0, 3D .6, 3D.7) P2 2
modify receive buffer ring full P3 2
modify GMAC network address filtering P3 6
add 6.1 On-Chip Transceiver vs MII Interf ace P4 4
add Management Signal timing MDIO source P50
add Management Signal timing MDIO source P51
IOB description modified P1 4 Jun/05/2000
add "on chip registers addressing scheme" paragraph and P24,25
add "more receive bandwidth without using TX Ring Buffer" paragraph
modify miscellaneous description (pin 42,43) P7 Jul/03/2000
1. 0 change Reg 0.1, 0.2 descriptions P9 Jul/13/2000
add Reg 1C.6 and 1C.7 descriptions P16
change Reg 30.0 FD bit description P1 8
add Reg 33.4, 33.5 and 33.6 descriptions P2 0
enhance Reg 3D .6 description P22
0.3 SR*Start Transmit-->Receive P09 Nov/15/2000
55
P/N:PM0729 REV. 1.1, MAY. 28, 2001
MX98726EC
REVISION HISTORY
REVISION DESCRIPTION PAGE DATE
1.1 add 8.1 ABSOLUTE OPERA TION CONDITION P51 JAN/15/2001
update internal pull-up & pull-down information P5,6,7 FEB/28/2001
enhance TWP description P14
modify RXINTT register description P1 5
enhance Figure 4.0 P25
remove TBLEN description P27
remove RBLEN description P31
add pull-up & pull-down DC current remore software programming P41
interface section (application note has such info)
add memory read&write cycle in 80x1 mode picture P46,47
add host interface timing in 8018x mode P5 1
modify DC CHARACTERISTICS & ABSOLUTE MAXIMUM RATING P5 2 MAY/28/2001
MACRONIX INTERNATIONAL CO., LTD.
HEADQUARTERS:
TEL:+886-3-578-6688
FAX:+886-3-563-2888
EUROPE OFFICE:
TEL:+32-2-456-8020
FAX:+32-2-456-8021
JAPAN OFFICE:
TEL:+81-44-246-9100
FAX:+81-44-246-9105
SINGAPORE OFFICE:
TEL:+65-348-8385
FAX:+65-348-8096
TAIPEI OFFICE:
TEL:+886-2-2509-3300
FAX:+886-2-2509-2200
MACRONIX AMERICA, INC.
TEL:+1-408-453-8088
FAX:+1-408-453-8488
CHICAGO OFFICE:
TEL:+1-847-963-1900
FAX:+1-847-963-1909
http : //www.macronix.com
MACRONIX INTERNATIONAL CO., LTD. reserves the right to change product and specifications without notice.
MX98726EC
MX98726EC
C9930
TA777001
38BAX
TAIWAN
TOP SIDE MARKING
line 1 : MX98726 is MXIC parts No.
"E" :PQFP
"C" : commercial grade
line 2 : Assembly Date Code.
line 3 : W af er Lot No .
line 4 : "38B" : revision code,
"A" : bonding option
"X" : no used
line 5 : State