W89C940 cr. x we Winbonc: GE Electronics Carp. ELANC-PCI (TWISTED-PAIR ETHER-LAN CONTROLLER WITH PCI INTERFACE) eC ALOT GENERAL DESCRIPTION he ELANC-PCI (Twistec-pair Ether-LAN Controller with PCI Interface) integrates a W89C902 Serial(ELANC- PGI) LAN Coprocessor for Twisted-Pair (SLCT) and PC/AT PCI bus interface logic into a single chip. The ELANC-PCI provides an easy way of implementing the interface between an IEEE 802.3-compatible Ethernet and a personal computer, ELANC-PCI also provide fast DMA operation to improve the packet transmit and receive performance. The PGI bus is a high performance local bus architecture with low latency random access time. It is a synchronous bus with operation up to 33MHz. The PCI bus interface is designed to provide the registers with the device information required for configuration, recording the status of the lines , control registers, interrupt line and I/O base adcress registers. It is capable of functioning in a half-duplex environment. The W89C940Fis designed to fully comply with the standard of PCI 2.0 specification. Taking advantage of PCl's nature, W89C940F supports auto-contiguration function to tree users' depression and confusion on tunning system resources conflict. With extremely high throughput on PCI bus, W89C940F otters a 32 bits data path to highly boost its performance without extra cost. Comparing with LAN card with ISA bus, its improvement is excellent. Besices, it also supports up te 256KB flash memory reserved for various applications, for instance anti-virus, popular drivers, Boot ROM, viewing your PC assets...etc., and what is more, these software are able to be updated on line. This can increase more niche feature on your LAN card, help you get more and bright your company profile. W89C940F is a single chip - build-in PCI bus interface and all necessary circuits - which will let design and board assembly become easy. FEATURES Fully compatible with IEEE 802.3 standard e Software compatible with Novell NE2000 * Complies with PCI Local Bus Specitication Revision 2.0 e Slave Mode for PCI bus e Fast DMA operation enhancing network access performance e AUI, UTP interface available e Supports one chip 32Kx8 and 16Kx8 SRAM * Supports up to 64KB boot ROM EEPROM aute-load function after power on reset EEPROM on-board programming function available UTP interface polarity auto detection correction function available UTP/BNC auto media-switching function provided LED displaying for network segment Link/activity status Signature register available tor device identification Single 5V power supply with low power consumption 100 Pin PQFPW89C940 Electronics Corp. TOE a . Winbond C SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS PIN CONFIGURATION a st ou 2 s 8 an g co Zz eracgga GS658eo na 8 FKRRS GS Anas ennnn wo Oaoagegeegte e Gd S$se32 233 23 22 t be rc he x BYP PSP PPR BESS RAEBRA SG awzo - a mo F- O>O0U0 xa ney am FF p~anoots x- - ney wo fF noza oOroo Lost OM pI OL sado wu oxo I Oc snc. - uno uo F Om Ssncq) tom Oust Pe Oro Suntm tne Uu) ae P< oare Bnecs J loa =, aw Po tore Sutin f oo a P eon SBwoctoa oOo; k 1 NO p ef Ort sutn , ON Ay re F- ww oI zuces __| com Oo - | p-ro>s ~ wT coma -4 no _ aa a anonwna he oY oo --urtsus wwow4 bey YO @ -P On~ own eor mon oF o | o00 _ Nw wo st wo wo MN co o o a Nw o st wo oO hy a o 8 oO co co co oO co o ao co a a a ao a a a a a a _ % te QopaoBe oe eenmnnron xh go 2 oO oo 2 <= wow z Sserrr 6HERBRARSARA AS BAS Ter x KX Ao faeqqeqgeqecgccce gq coed aW89C940 a PIECE reeeyi . te Electronics Corp. A RES ESSERE SSSI SSSI BLOCK DIAGRAM _<<_e AUT SLOT Module f- |<} TPI Local Bus r Arbitrator Config. ; _ SSRAM Registers Buffer 1| Memory |< Control A001 a BTROM Interrupt iwe Control a Control =<] $ Logic neo TOBA E wacom pater EPROM PGl and Boot ROM i Interface t Control /t_ Logic Logic v Data Buffer je fieW89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS PIN DESCRIPTION PCI INTERFACE NAME NUMBER TYPE DESCRIPTION CLK 29 in Clock: Bus clock from PCI bus. All of the PCI signals, except RST#, are synchronized by rising edge of clock. The allowable operating frequency of CLK for W88C940 is from 25MHz to 33MHz. RST# 87 in Reset: Asynchronous reset signal from PCI bus. AD[31:00] t/s Address and Data: AD31- 89 - 96 AD?4 99 Bicirection bus for PC! address and data signals transaction. AD[31:00] is a time AD23 2-8 division bus. Two phases are used to carry the address and data messages of PCI AD29- 19-26 bus. The address phase is the clock cycle in which FRAME# is aeerted. AD16 33 - 40 AD[31:24] contains the most significant byte(MSB) and the AD[7:0] contain the least AD15-AD8 significant byte(LSB) during the data phase. AD?7-ADO The data written from host should be stable and valid when IRDY# is asserted. The data driven by W88C940 will be stable and valid when TRDY# is asserted. C/BE[S3:0}# t/s Bus Command and Byte Enables: C/BE3# 97 . C/BE2# 9 In C/BE[3:0]# define the type of bus command during the address phase and the byte C/BE1# 18 enables during the data phase of a transaction. There are 16 types of bus C/BEo# 27 command defined in PCI bus. Four bits of C/BE[3:0]# are used to decode the 16 types of bus command. The byte enable determine which byte lanes carry meaningful data. C/BEO# indicate the byte O(AD[?:0)) is valid. C/BE1# indicate the byte 1(AD[15:8]) is valid. C/BE2# indicate the byte 2(AD[23:16]) is valid. C/BE3# indicate the byte 3{AD[32:24)) is valid. PAR 17 t/s Parity: Even parity across AD[31:0] and C_BE[3:0]B. W898C340 will drive the PAR in read data phase. The host drives the PAR for address phase and writes data phase. PAR is stable and valid one clock after the address phase. PAR is stable and valid one clock after either IRDY# is asserted on a write transaction or TRDY# is asserted on a read transaction. Once PAR is valid, it remains valid until one clock after the completion of the current data phase. FRAME# 10 sitis Cycle Frame: in FRAME# is asserted by host to indicate the beginning of a bus transaction. When FRAME# is deasserted, the transaction is in the final data phase.W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS PCI INTERFACE NAME NUMBER TYPE DESCRIPTION IRDY# 1 sit/s Initiator Ready: in Initiator Ready indicates the host's ability to complete the current data phase of transaction. During a write cycle, IRDY# indicates that valid data is presented on AD[31:00]. During a read cycle, it indicates the master is ready to accept the data. The wait cycles are inserted till IRDY# and TRDY# are asserted at the same cycle. TRDY# 12 sitis Target Ready: Target Ready indicates the W89C940's ability to complete the current data phase of transaction. During a read cycle, TRDY# indicates that valid data is presented on AD[3 1:00]. During a write cycle, it indicates the W89C940 is ready to accept the data. The wait cycles are inserted till both IRDY# and TRDY# are asserted at the same cycle. STOP# 14 sits | STOP: Stop indicates W89C940 is requesting the master to stop the current transaction. IDSEL 98 in Initialization Device Select: IDSEL is used as a chip select during PCI configuration read and write transaction. DEVSEL# 13 sit/s Device Select: DEVSEL# will be asserted when W89C940 decode the correct address. INTA# 88 o/d Interrupt Request: INTA# is used to request an interrupt service. The interrupt signal can be masked by the register of IMR({ Interrupt Mask Register). INTA# status is kept at ISR{ Interrupt Status Register). NETWORK INTERFACE NAME NUMBER TYPE DESCRIPTION x1 53 VTTL Crystal or Oscillator Input. X2 92 O/TTL __| Crystal or oscillator input (X1) and output (X2) pin. Ifa crystal is used, it should be connected directly to X1 and X2. If an oscillator is selected, X1 is the 20 MHz input and X2 should be left floating. TXP 7 AUI Transmit Output: 74 ; ; TXN O/AUI AUI differential output pair. The data transmitted by DTE will be sent through TXP and TXN in a differential signal with manchest code format. A 270 ohm pull-down resistor is required for each of TXP and TXN. TXP and TXN should be isolated by a pulse transformer from directly connecting outside loop.W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS NETWORK INTERFACE NAME NUMBER TYPE DESCRIPTION RXP 79 VAUI AUI Receive Input: RXN 78 AUI differential input pair. The data received by network transceiver will be sent back through RXP and RXN in a differential signal format. The RXP and RXN are also should be isolated by a pulse transformer. 77 aoe . CDP 6 VAUI AUI Collision Input: CDN AUI differential input pair. The network transceiver will drive a 10MHz differential signal onto CDP and CDN when acollision eventis occurred. The CDP and CDN should be isolated by a pulse transformer. 84 i . XRDP 35 VTPI TPI Receive Input: XRDM 10BASE-T receive differential input pair. RXP and RXN should be shunted by a 100 ohms resistor for twisted-pair line impedance matching. 82 i : TPDP 33 O/TPI TPI Transmit Output: TPDM 10BASE-T transmit differential output pair. A 1.21K ohm shunt resistor is required across the TXP and TXN for signal pre-equalization. ACT 73 O/LED | Activity Displaying: Network activity displaying. ACT will indicate the network activity status by three types of signals(DC 0, DC1 and AC 10Hz). DC 0 : indicating "Link Good", if UTP is selected. DC 1: indicating 1) "Link fail", if UTP is selected. 2) "idle", if AULis selected. AC 10HZ : indicating the DTE is transmitting a packet or the carrier on the network is detected by the transceiver and the carrier sense signal is received by WagCcg40. The ACT will keep DC 1 if there is an abnormal network collision occurred, f.g. the transceiver collision signal always active. MEMORY INTERFACE NAME NUMBER TYPE DESCRIPTION MSD[7:0] 48 - 41 B/MOS__ | Local Memory Data Bus: A bidirection bus for data transfer between the local memory and the W89C940. MSD0 is used as a serial data input pin during the auto configuration duration for hardware reset. The data drove by the DO of EEPROM will clocked into the MSDO0 when the EEPROM load operation is active. The Ethernet node ID and optional configuration content will be loaded into chip 5 registers at this moment. MSD1 is used as a serial data output pin during the auto configuration duration for hardware reset. The command drove by the MSD1 will be clacked into the DI of EEPROM for accessing the content of EEPROM. MSD2 supplies the clock with a period of 1.2 wS for EEPROM during auto configuration duration.W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS MEMORY INTERFACE NAME NUMBER TYPE DESCRIPTION MSRDB 49 O/MOS Local Memory Read Enable. An active low signal to enable the local SRAM read. MSWRB 50 O/MOS Local Memory Write Enable. An active low signal to enable the local SRAM write. MSA(14-0] 69-55 O/MOS Local Memory Address Bus. Address bus for local memory addressing. The MSA14 will be used as the address strobe signal when the size is larger than 32Kx8. If the ROM size is larger than 32Kx8, Boot ROM address !13-A10 is connected to MSA13-MSA10 and A17-A14 is connected to the latched MSA13- MSA10. The valid address for the higher significant bits{A14,A15,....) will be stable before the BPCSB is active low and should be latched by an external data latch which is triggered by MSA14. The AQ ~ A13 of the BOOT ROM device are connected to MSAO ~ MSA13 directly no matter the BOOT ROM size is larger than 32Kx8 or not. RCSB 70 O/MOS Memory Chip Select: The RCSB is active low. RCSB enables the local memory read/write cycle in conjunction with the MSRDB, MSWAREB pins. BPCSB 71 O/MOS BOOT ROM Chip Select: BPCSB is active low. BPCSB enables the BOOT ROM read cycle during the system booting up. EECS 72 O/MOS EEPROM Chip Select. The EEPROM read/write operation will be enabled when EECS is active high. POWER PINS NAME NUMBER TYPE DESCRIPTION DVCC 1, 16, 30, 31, 54 Digital Power Supply: 5V DC power supply for internal digital logic circuitry. DBGND 15, 28, 32, 51, 86, 100 Digital Ground: Ground pins for internal digital logic circuitry. AVCCG 81 Analog Power Supply: 5V DC power supply for internal analog circuitry.\ FE W89C940 SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS POWER PINS NAME NUMBER TYPE DESCRIPTION AGND 80 Analog Ground: Ground pin for internal analog circuitry. It is recommended that there is a decoupling capacitor connected between the power supply pins and ground pins. A RC low pass filter is also recommended to be used for analog power supply. Note: Signal Type Definition Input is a standard input-only signal Totem Pole output is a standard active driver. Tri-State is a bi-directional, tri-state input/output pin. Sustained Tri-State is an active low tri-state signal owned and driven by one and only one agent at atime. The agent that crives an s/t/s pin low must drive it high for at least one clock before letting it float. A new agent cannot start driving a s/t/s signal any sooner than one clock after the previous owner tri-states it. A pull-up is required to sustain the inactive state until another agent drives it, and must be provided by the central resource. Open Drain allows multiple devices to share as a wire-OR. in out t/s sit/s o/dW89C940 Winbond co" Electronics Corp. AEA SAMS! SANSA SAAS SASS SASS SANSA ASSIS SASS ASSASSINS SSIES SASS SASA SSS ASS SS ESSA ANSAS SS SAASSAI SSS AESSAASASISAS SSA ASS SASS ASSASIAS SSAA SAESSANS, Transmit DMA | Logic me SNA PC] Interface 16-byte TX/RX Bus + - Logic f+) FIFO | Logic Interface lea | Receive ie Logic a A Register Files a 7 IEEE 802.3 MAC FUNCTION Core Coprocessor (SLCT) Operation The SLCT core coprocessor has five major logic blocks that control Ethernet operations: the register files, transmit logic, receive logic, FIFO logic, and DMA logic. The relationship between these blocks is depicted in the following block diagram. Register Files The register files of the SLCT can be accessed in the same way as the configuration registers. The ELANC-PCI should be in slave mode when the system accesses the register files. The command register (CR) determines the page number of the register file, while the system address SA<0:3> selects one register address from 01H to OTH. The PCI IO read/write commands are used to activate the I/O operations. Refer to the W89C90 data sheet for more detailed information on the registers. DMA Interface Logic The SLCT has two types of DMA operations, local DMA and remote DMA. FIFO Logic The SLCT has a 16-byte FIFO, which acts as an internal butfer to adjust transmission/reception speed differences between DMAs. The FIFO has FIFO threshold pointers to determine the level at which it should initiate a local DMA. The threshold levels are different for reception and transmission. The FIFO threshold levels are defined in the DCR register. The FIFO logic also provides a FIFO overrun and underrun signal for network management purposes. In a case where the receive packets are flooding into the FIFO but the SLCT still does not have the bus authority, the FIFO may be overrun. On the other hand, if a transmission begins before data are fed into the FIFO, it may be underrun. Both cases result in a network error. These types of cases can be prevented by changing the values of the FIFO thresholds.W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe Normally, the data in the FIFO cannot be read; reading FIFO data during normal operation may cause the system to hang. In loopback mode, however, the SLCT allows FIFO data to be read by byte in order to check the correctness of the loopback operation. Receive Logic The receive logic is responsible for receiving the serial network data and packing the data in byte/word sequence. The receive logic thus has serial to parallel logic in addition to network detection capability. The ELANG-PGI accepts both physical addresses and group addresses {multicast and broadcast addresses}. The SLCT extracts the address field trom the serial input data. It then determines if the address is acceptable, according to the configurations defined in the receive configuration register (RGR). If the address is not acceptable, the packet reception is aborted. If the address is acceptable, the data packet is sent to the serial to parallel logic before being fed into the FIFO. Data packets can thus be processed either byte or word-wice. After receiving a data packet, the SLCT automatically adds four bytes of data receive status, next packet pointer, and two bytes of receive byte count into the FIFO for network management purposes. The receive status contains the status of the incoming packet, so that the system can determine if the packet is desired. The next packet pointer points to the starting address of the next packet in the local receive ring. The receive byte count is the length of the packet received by the SLGT. Note that the receive byte count may be different trom the length field specified in the Ethernet packet format. These four bytes of data will be transferred to the local butter with the last batch of the local DMA. However, these four bytes are stored at the first four addresses betore the packet. Transmit Logic The SLCT must be filled before transmission begins. That is, the local DMA read must begin before the SLCT begins transmission. The SLCT first transmits 62 bits of preamble, then two bits of SFD, and then the data packet. The parallel to serial logic serializes the cata from the FIFO into a data packet. After the data packet, the SLCT optionally adds four bytes of cyclic redundancy code (CRC) to the tail of the packet. A protocol PLA determines the network operations of the ELANG-PCI. Collision detection, random backoff, and auto retransmit are implemented in the transmit logic. The protocol PLA ensures that the ELANC-PCI follows IEEE 802.3 protocol. 10BASE2 AND 10BASE5 PLS (PHYSICAL LAYER SIGNAL) FUNCTION SNA Operation AUI Manchester TP + Interface PLL be | EL oder/Decode! or L Coax a> E ose/ SLCT Interface crytal [* "| Logic 10W89C940 C Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE File 1 The ELANC-PCI also contains a Serial Network Adapter (SNA), which adapts the Non-Return-to-Zero (NRZ) used in the core processor and host system te Manchester coded network symbols. The SNA contains three blocks: a Phase Locked Loop (PLL}, a Manchester encoder/decoder, and a collision decoder, as well as crystal/oscillator logic. The Manchester encoder/decoder handles code interpretation between NRZ signals and Manchester coded signals. The PLL locks the receiving signals with an internal voltage control oscillator (CO} so that network noise(jitter) can be eliminated before the signals enter the core coprocessor. The collision decoder detects whether the network is in a collision status. 10BASE-T MAU FUNCTION TP Transceiver Operation Transmit Driver There are two signals for data transmission, TXP and TXN, which connect to the twisted-pair cable via a transmitter filter and an optional common mode choke. Smart Squeich The main function of this block is to determine when valid data are present on the differential receiving inputs (RXP/RXN). To ensure that impulse noise on the medium will net be taken as a valid datum, this circuit adopts a combination of amplitude and timing measurements to determine the validity of the input signals. To qualify incoming data, the smart squelch circuitry monitors the signals for three peaks of alternating polarity that occur within a 400 nS window. Once this condition has been satisfied, the squelch level is reduced to minimize the noise effect and the chances of causing premature Start Of Idle (SOI) pulse detection. If the receiver detects activity on the receive line while packets are being transmitted, incoming data is qualitied on five peaks of alternating polarity so as to prevent false collisions caused by impulse noise. The squelch function returns to its squelch state under any of the following conditions: Anormal Start Of Idle (SOI) signal An inverted SOI signal A missing SOI signal A missing SOI signal is assumed when no transitions have occurred on the receiver for 175nS after a packet has arrived. In this case, a normal SOI signal is generated and appended to the data. Collision Detection A collision occurs when transmit and receive signals occur simultaneously on the twisted pair cable. Collisions will not be reported when the device is in link-fail state. The collision signal is also generated when the transceiver has detected a jabber condition or when the SQE test is being performed. SQE test The Signal Quality Error (SQE) test is used to test the collision signaling circuitry in the Twisted Pair Transceiver module. After each packet transmission, an SQE signal is sent to the SLCT. The SLCT expects this signal and will flag an error if it does not exist. Jabber The jabber timer monitors the transmitter and disables the transmission it the transmitter is active for greater than 26.2 m8.The jabber will re-enable the transmitter after the SLCT has been idle for at least 420 m8. 11W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe Link Integrity During periods of inactivity, link pulses are generated and received by both MAUs at either end of the twisted pair to ensure that the cable has not been broken or shorted. A positive, 100 nS Link Integrity signal is generated by the Twisted Pair Transceiver and transmitted on the twisted pair cable every 13 ms during pericds of no transmission activity. The ELANG-PCI assumes a link-good state if it senses valid link pulse activity on the Twisted Pair Transceiver receive circuit. If neither receive data nor a link pulse (positive or negative) is detected within 105 mS, the ELANC-PCI enters link-fail state. When a link-fail condition occurs, four consecutive positive link pulses (or eight negative link pulses) must be received before a link-good condition is assumed. LCE CORE ACCESS FUNCTION LCE core access function (LCE: Lan Controller of Ethernet) The LCE core of the ELANC-PCI can be accessed by programming the register of the LCE core. The ELANC- PCI's register files are mapped into the lower 16 I/O spaces: iobase to iobase+OFH. Any read/write to the ELANC-PCI's registers is an IN"/"OUT" command to these addresses. Addresses iobase+10H to iobase+17H are mapped to the I/O port for the system to access the contents of the butfer memory. Remote DMA reads and writes correspond to "IN"/"OUT" commands to these addresses. When addresses iobase+18H to +1FH are read a software reset will be issued to the core coprocessor and released about 780nsec later, automatically. The following table summarizes the I/O address mapping: ADDRESS REGISTER OPERATION icbase+O0H - iobase+0OFH LCE core's registers Slave register read/write iobase+10H - iobase+17H 0 Ports Remote DMA read/write iobase+18H - iobase+1FH Reset Software reset The butter memory map for LCE core memory address space is summarized in the following table: NE2000 COMPATIBLE O000H - 001FH ID Registers 0020H - OOFFH Unused 0100H - 3FFFH nuse 4000H - 7FFFH 16K X 8 local memory 8000H - FFFFH Unused NODE ID Each node in an Ethernet network has a unique six-byte ID. The node ID is mapped into the memory space of the ELANC-PCI. The ELANC-PCI will load the node ID from the EEPROM atter power on reset. The node I.D. should be allocated in the first 3 words(with the address of OOH ~ 02H) of the EEPROM. 12W89C940 C Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE Bus Arbitration The ELANG-PCI handles bus arbitration automatically. The LAN card can operate in four modes: idle state, slave read/write mode, DMA mode, and PCI mode. The ELANC-PCI controls the on-board devices by decoding these modes. At power on, the ELANC-PC1 is in idle mode. If a register read/write command is issued, the ELANC-PCI enters the slave read/write mode. It a local DMA or remote DMA is initiated by the ELANC-PCI core coprocessor, the ELANG-PCI enters DMA mode. A PCI command will put the ELANC-PCI into PCI mode. At any given time, the ELANC-PCI can be in only one state. The ELANC-PCI handles state changes automatically. However, two events, such as a DMA command and an PCI command, may be requested at the same time; in this case, the ELANC-PCI allocates the bus on a first-come, first-served basis. No predefined priority is set within the ELANC-PCI. NE2000 MODE DMA FUNCTION The ELANC-PCI provides two DMA channels for system access. The remote DMA mode moves data between system memory space and local memory space. The local DMA moves data between the FIFO of the SLOT and local memory space. However, since the SLOT can handle local DMA operations without system intervention (refer to the data sheet for the SLCT), the system has to perform only remote DMA reads/writes. In a transmit operation, the data should be moved to local memory before the system orders the SLCT to start transmission. The remote DMA write moves the data from the PCI bus to the local SRAM. This is simply an "QUT" command on the PC. For a receive operation, the network may feed data constantly and the local memory may become full if the data are not moved out to system memory through a remote DMA read operation. This operation is the "IN" command on the PC. Remote DMA A remote DMA can be performed only in /O mode. The remote DMA moves data between the host and the local buffers. Unlike a local DMA, the remote DMA is byte or word-wide. Each remote DMA operation transfers four bytes, double-word, depending on the PCI cycle. Since the remote DMA is simply an PCI I/O operation, PCI is sometimes atfected by a remote DMA. If the remote DMA is interleaved with other devices, TRDY# is deasserted to force the system to insert wait states. The ELANC-PCI will automatically handle any arbitration necessary. A Double word access on W89C940 from PCI bus is allowed. The butfer memory access will stop when the Remote Byte Counter is decreased to zero. A double word read command will read only three bytes of valid data if remote byte counter is set 3 or two bytes of valid data if the remote byte counter is set 2 respectively. Local DMA The local DMA transfers data from/to the on-board buffers. To perform data reception or transmission fromHo remote nodes in the network, data must be moved from/to the FIFO. To enhance the efficiency of the transmission, the local DMA transfers data in batches: Data are first collected and then moved in a batch. Each transfer can move up to 12 bytes of data at once. This scheme reduces time wasted in requesting the bus. A local DMA begins by requesting the local bus. If the bus is available to the ELANC-PCI., it responds at once by asserting the bus acknowledge; if, on the other hand, the bus is currently authorized to another device, the ELANCG-PCI will not assert the bus acknowledge and the SLCT must wait. Note that this sequence will not affect the host system or the PCI bus signals. After each batch is transferred, the SLOT checks the FIFO threshold levels to determine if another batch transfer should be requested. 13W89C940 CWipbond rE Electronics Eorp. _ BOOT PROM ACCESS FUNCTION Boot PROM Operation For diskless applications, the system requires an on-board boot device. The ELANCG-PCI allows the system to use an on-board BOOT PROM as the boot device. The BOOT PROM is essentially a byte-read device. ELANC-PCI will fetch a byte from the BOOT PROM and drive the AD bus of the PCI Interface. If the system do a word read command, the ELANC-PCI will invoke two byte read operation with consecutive address and drove ithe second byte on another byte of the PCI interface. For double word command, the ELANC-PCI will deassert the TRDY# until four read operation with consecutive address to the BOOT PROM is completed and then the four bytes of data will be drove onto the 32 bits data bus of PCI. W89C940 can support the EPROM and Flash memory with 220nsec access time with the size up to 256KB. In order to support 64KB,128KB and 256KB size with 15-bit address bus, W89C940 use MSA14 to latch the high address bits MSA[17:14] from MSA[13:10]. The structure for address latch is shown as following. wssC940 MSA14/L 74LS3373 14W89C940 CWipbond Po Electronics Eorp. ne ane CONFIGURATION PROGRAMMING FUNCTION ELANC-PCI Mode Configuration Registers MCR A mode contiguration register(MGR) is used to program the operation mode of the ELANC-PCI. The address is page 0, OAH. MCR can be updated by software. Reading this register is the same as reading a register in the SLCT core coprocessor. Writing to these registers is done by first reading the register to be written to and then using a slave write operation to update the contigurations. The content of MCR is as following table: BIT | SYMBOL DESCRIPTION 0 PHYO Physical Layer Interface: 1 PHY1 These two bits select the type of physical interface which the ELANC-PCI attached on. Both the thin Ehternet and thick Ethernet type use the AUI of ELANC-PCI as the input/output interface. The other two UTP types,then, use the TPI of ELANC-PCI as the input/output interface. The output and input pins of AUI or TPI are idle, when the corresponding type is not selected. PHY1 PHYO Physical Interface Type UTP (with 10BASE-T compatible receive squelch level) Thin Ethernet Thick Ethernet (AUI port) UTP (with reduced receive squelch level) 2 GDLNK_ | Good Link Status: A read operation on this bit will get the link test status. A "1" indicate that itis link good and a O" is link fail. The GDLNK do not imply any information if the PHYO and PHY1 is programmed as Thin or Thick Ethernet. 3 LNKEN | Link Test Pulse enable: The network media auto switching function, link integrity test function and the link test pulse generation function will be enabled when LNKEN = "0". Otherwise, all of these functions will be disabled when LNKEN = "1". 4 SHLS | SRAM High/Low Speed Select: High speed SRAM with 20nsec access time is selected if SHLS =1. Low speed SRAM with 7Onsec access time is selected if SHLS =0. 5 BPSO BOOT PROM Size: 6 BPS1 The size of the BOOT PROM is selected by BPSO, BPS1, and BPS2. =-O-+-0O 7 BPS2 BPS2 BPS1 BPSO SIZE 0 O xX No boot PROM 0) 61 0 8k Oo. 1 1 16K 1 oO O 32K 1 oOo 1 64k 1 1 0 128K 1 1 1 256K 15i oe Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE PCI Bus Operation Configuration Registers W89C940 The W89C940 implement a system configuration registers for PCI bus auto configuration function. The W89CS940 support the predefined header portion of the system configuration space { i.e. first 64 bytes of the 256 bytes configuration space). A summarized table for those registers is as following. address of Register Attribute | Default Value | Write By configuration after power ON space 01H~00H Vendor-ID Riw 1050H EEPROM 03H~02H Device-ID Riw 5A5AH EEPROM 05H~04H Command Riw 0000H System S/W 07H~06H Status Riw 0280H System S/W 08H Revision-ID Riw 00H EEPROM OBH~O9H Class-Code R 020000H None OCH Cache-Line-Size R 00H None ODH Latency-Timer R 00H None OEH Header-Type R 00H None OFH BIST R 00H None 13H~10H (O-Base-Address Riw FFFFFFE1H_ | System SAW 17H~14H Reserved-Reg.-0 R 00000000H None 1BH~18H Reserved-Reg.-1 R 00000000H None 1FH~1CH Reserved-Reg.-2 R 00000000H None 23H~20H Reserved-Reg.-3 R 00000000H None 27H~24H Reserved-Reg.-4 R 00000000H None 2BH~28H Reserved-Reg.-5 R 00000000H None 2FH~2CH Reserved-Reg.-6 R 00000000H None 33H~30H ROM-Base-Address Riw FFFF8001H system S/W 3/H~34H Reserved-Reg.-7 R 00000000H None 3BH~38H Reserved-Reg.-8 R 00000000H None 3CGH Interrupt Line Riw 00H system S/W 3DH Interrupt Pin R 01H None 3EH Min-Gnt Riw 00H EEPROM 3FH Max-Lat Riw 00H EEPROM The vendor ID, device ID, revision ID, Min-Gnt and Max-Lat are programmed by EEPROM, i.e. the contents of these register can be updated by EEPROM load only. The I/O base address and the ROM base address registers can be updated by system software. Those system configuration registers should be accessed by a double word access operation. The W89C940 will drive 32 bits data on the bus when these configuration registers are accessed. Vendor ID Register The vendor I.D. identities the manufacturer of the device. Valid vendor identifiers are allocated by the PCI SIG to ensure uniqueness. The content of this register will be updated atter power on by the EEPROM load operation. The vendor ID should be programmed into the word with OSH address of the EEPROM for power on auto loading. 16W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe Device |.D. Register The device |.D. identifies the particular device. This identitier is allocated by the vendor. The content of this register will be updated after power on by the EEPROM load operation. The device ID should be programmed into the word with OAH address of the EEPROM for power on auto loading. Gommand Register Bit Location | Attribute | Description 0 R/W This bit controls the I/O space access response of W89C940. A value of "0" will disables the W89C-940 response. A value of "1" allows the W89C940 to respond to I/O space accesses. 1 R/W This bit contrels the memory space access response of W89C940. A value of "0" will disables the W89C940 response. A value of "1" allows the W89C940 to respond to memory space accesses. 2 R The W89C940 do not support PCI bus master function. This bit is Tixed to "0". 3 R The W89C940 do not support the special cycle operation. This bit is fixed to "0" 4 R The W89C940 do not support the memory write cycle and the invalidate command. This bit is fixed to "0". 5 R The W89C940 is not a VGA compatible device. This bit is fixed to "0". 6 R/W This bit controls the parity error response of W89C940. A value of "0" will force the W89C940 ignore a parity error. A value of "1" allows the W89C940 to take a normal action when a parity error is detected. This bit will be reset after power ON. 7 R The W89C940 do not support data stepping function and this bit is tixed to "0" always. 8 - This bit is an enable bit for W89C940 internal SERR# driver. A value of "0" will disables the internal SERR# driver. A value of "1" enables the internal SERR# driver. 9-15 R All of these bits are fixed to "0" internally. And no specitic function are related to these bits. 17W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe Status Register Bit Location | Attribute | Description 15 RAW This bit will be set "1" by W89C940 when it detects a parity error, even if parity error handling is disabled(as controlled by bit 6 in the command register). A "write 1" operation on this bit will clear this bit. This bit will be set "0" after itis cleared. 14 RiW This bit will be set "1" by W89C940 when it assert the internal SERR#. A write 1" operation on this bit will clear this bit. This bit will be set "0" atter it is cleared. This bit is read only for 100 pin package and is fixed to "0". 13 R The W89C940 do not support PCI bus master function. This bit is Tixed to "0". 12 R The W89C940 do not support PCI bus master function. This bit is tixed to "0". 11 RAW This bit will be set "1" by W89C940 when it terminates a transaction with target-abort. A "write 1" operation on this bit will clear this bit. This bit will be set "0" after it is cleared. 10~9 R The Bit-10 is fixed to "0" and Bit-9 is fixed to "1". It indicated that the W89C940 assert the DEVSEL# with medium speed. 8 R The W89C940 do not support PCI bus master function. This bit is fixed to "0". 7 R The W89C-940 support fast back-to-back transaction. 6~0 R All of these bits are fixed to "0" internally. And no specific function are related to these bits. There are two cases that the W89C940 will initiate the target-abort. The first one is the addressing parity check error cause internal SERR# asserted but without STOP# signal and the second cone is the byte enable and address check error that the STOP# is asserted. If addressing don't maich the following table, the target doesn't transter the data, but terminate with target abort. AD1 ADO C/BE3# | C/BE2@# | C/BE1# | C/BEO# x Xx 0 0 1 1 D 0 0 1 1 0 1 x 1 0 0 1 1 1 1 Revision LD. Register The revision I.D. is chosen by the vendor. It specifies a device specitic revision identifier. Zero is an acceptable value. It can be viewed as a vendor defined extension to the Device |.D. The content of this register will be updated after power on by the EEPROM load operation. The revision ID should be programmed into the 23th byte of the EEPROM for power on auto loading. 18W89C940 C Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE Class Code Register The Class Gode Register is read only. The code of O20000H indicates that the W89C940 is a Ethernet controller. Gache-Line-Size Register The W89C940 do not support the Memory Write and Invalidate command. All bits of this register are fixed to on Latency-Timer Register The W89C940 do not implement a writable latency timer. All bits of this register are fixed to "0". Header-Type Register The W89C940 is a single function device. The bit 7 of header type register is fixed to "0" and all of other bits of this register are also fixed to "0". BIST Register The W89C940 do not support the built in self test function. It will always return "OOH" for a reading operation. /O-Base-Address Register Bit 31~24 | 23-16 | 15-8 f 6 5 4}, 3]2]i11]0 Attribute RW R/W RiW RiW RAW RAW R{[R]}]R]RIR Initial Value | FFH FFH FFH 1 1 1 o[|[o] oO] 0}; 1 The bit 0 fixed to "1" indicates that W89C940 requires the I/O space of the system as its buffer for data transfer. The bit 0 to bit 4 implemented as a read only field imply that W89C940 need a I/O space with a range of 32 bytes. The power-up software can determine how munch address space the device required by writing a value of all 1's to the register and then reading the value back. The W89C940 will return O's in all don't care address bits(bit 0 ~ bit 4), effectively specifying the address required, if the IDSEL and the configuration command are recognized. The I/O base address will be decided by the bit 5 to bit 31 of the I/O base address register. The system software should write the base address(32 bits address) onto this register. The bit 0 to bit 4 will be ignored by W89C-940. The bit 5 to bit 31 will be used as a reference value of the address decoder of the W89C940. There are nine types of command decoded by G/BE[0:3}# during the address phase of a transaction. These nine types of command are as the following table. C/BE[3:0]# | Gommand Type 0010 ( Read 0011 VO Write 0110 Memory Read 0111 Memory Write 1010 Configuration Read 1011 Configuration Write 1100 Memory Read Multiple, this command will be decoded as the Memory Read command 1110 Memory Read Line, this command will be decoded as the Memory Read command 1111 Memory Write and Invalidate, this command will be decoded as the Memory Write command The last three commands are used in cache memory access. The application of W89C940 do not support this command. 19W89C940 (Winbond Po Electronics Eorp. ne ane SAAS SAANS SAAS SANSA SAIS SASS SASS SANSA SASS SASS SAS IASSASSSASSSISSSASSSAA ASS SASSSAESSAAASASAISA SSS ASS SASS AIS Bit 31~24 | 23~16 | 15-8 7~0 Attribute RW R/W RiW RiW Initial Value | FFH FFH 80H 01H The W89C940 supports 8Kx8, 16Kx8, 32Kx8, 64Kx8, 128Kx8 and 256Kx8 ROM address decoding function. For a 8Kx8 ROM application, the upper 19 bits of this register correspond to the upper 19 bits of the expansion ROM base address. The lower 13 bits of this register correspond to the size of the expansion ROM. Those bits correspond to the size of the expansion ROM are determined by MCR bit 5, bit 6 and bit 7 and can not be writable by the system configuration write command. The device independent configuration software can only determined the bits corresponding to the base address. The following table describe the relationship between the addressing bus, sizing bits and the MCR bit 5/6/7. MGCR.7 | MCR.6 | MCR.5 Addressing Bits Sizing Bits ROM Size 0 0 x None None No BOOT ROM 0 1 0 31~13 12~0 8Kx8 0 1 1 31~14 13~0 16Kx8 1 0 0 31-15 14~0 32Kx8 1 0 1 31~16 15~0 64Kx8 1 1 0 31~17 16~0 128Kx8 1 1 1 31~18 17~0 256Kx8 The device independent configuration software can only determined the addressing bits. The bit 0 of the ROM base address register will be reset "0" by W89C940 if the MCR is set as "No BOOT ROM", i.e. BPSO=0, BPS1=0 and BPS2=0. The bit 0 of the ROM base address register will be set "1" if the MCR is programmed as there is an expansion ROM device add-on the LAN adapter. The initial value of FFFF8001H indicates that there is a 32Kx8 expansion ROM device existing. The initial value is changed according to the BOOT ROM size selection in the MCR (Mode Configuration Register). Interrupt Line Register This register is a readable and writable register. The POST software of system could write the routing infermation inte this register as it initializes and configures the system. The value in this register tells which input of the system interrupt controllers the device's interrupt pin i connected to. Device drivers and operating systems can use this information to determine priority and vector information. For x86 based PCs, the value in this register correspond to IRQ numbers (0-15) of the standard dual 8259 configuration. The value 255 is defined as meaning "unknown" or no connection" to the interrupt controller. Values between 15 and 255 are reserved. Interrupt Pin Register The W89C940 use the INTA# as its interrupt pin. The content of this register is fixed into "01". Min-Gnt Register It is used for specitying how long a burst period the device needs assuming a clock rate of 33MHz. The content of this register will be updated after power on by the EEPROM load operation. The Min-Gnt should be programmed into the 17th byte of the EEPROM for power on auto loading. 20W89C940 C Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE Max-Lat Reqister It is used for specitying how often the device needs to gain access to the PCI bus. MAX_LAT is used to set the devices desired settings for Latency Timer values. The registers specify the values in units of 0.25 microsecond. Zero means the device has no major requirements for the settings of Latency Timer. The content of this register will be updated after power on by the EEPROM load operation. The Max-Lat should be programmed into the 18th byte of the EEPROM for power on auto loading. EEPROM PROGRAMMING FUNCTION EEPROM Load and Reload procedure A EEPROM conirol register(ECR) is used to contre! the operation mode of the EEPROM. The ECR is allocated on the register address of page 3, 02H of LCE. The content of ECR is as following table: BIT SYMBOL DESCRIPTION 0-5 Reserved 6 ERWS EEPROM Read Write Select: The write sequence to EEPROM is selected If ERWS = 1. If ERWS = 0, the read sequence is selected. 7 EAC EEPROM Access Control: EAC will enable the EEPROM read/write sequence if EAG = 1. The EAS will be reset to "0" if the read/write sequence finished. Set EAC = 0 will abort the EEPROM read/write sequence immediately. The read/write sequence for EEPROM is described as following two statements. Write Sequence: write(EGR with ERWS=1 and EAC=1); /* enable the write sequence */ write(BFR, address); /* specify the address in which the data will be modified */ write(BFR, word data); /* specify the data which will be write into the EEPROM */ repeat( read(ECGR.EAC); } until (EAC=0); /* wait for the programming process completed */ File2 Any operation that violate the write sequence will cause the EEPROM programming process aborted. The BFR is a buffer register located at the register address of page3, O4H of LCE. With the EEPROM load back sequence specified above, the contents at the specified address will be overwritten by the new data. One word of data is moditied by each write sequence. The allowable address in which the content will be modified is from OOH to 31H. Read Sequence: write(ECR with ERWS=0 and EAC=1); /* enable the read sequence */ write(BFR, address); /* specify the address in which the data will be read out */ repeat( read(ECR.EAC); } until (EAC=0); /* wait for the reading process completed */ read(BFR); /* read word data */ 21W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe The read data will be kept in the BFR atter the reading process is completed. The content of BFR will not changed except that the other write or read sequence is started or a write(BFR, address) operation is executed. i.e. the data of BFR can be read out any time afterwards. EEPROM Content The format of EEPROM contents is as followings: ADDRESS HIGH BYTE LOW BYTE Bit 15 ~ Bits Bit 7 ~ Bit O OFH Reserved Reserved OEH Reserved Reserved ODH Reserved Reserved OCH Reserved Reserved OBH MCR Revision |.D. OAH Device |.D.(high byte} Device |.D.(low byte) 09H Vendor |.D.(high byte} Vendor |.D.(low byte} 08H MAX_LAT MIN_GNT 07H 57H 57H 06H Reserved Reserved 05H Reserved Reserved 04H Reserved Reserved 03H Reserved Reserved 02H Ethernet Address 5 Ethernet Address 4 01H Ethernet Address 3 Ethernet Address 2 00H Ethernet Address 1 Ethernet Address 0 The 5757H located at 07H address is used tor NE2000 compatibility. The ELANC-PCI will load this parameter into its internal register file tor NE2000 software compatibility. EEPROM Load Timing A system reset should allow at least 1usec for the W89C940 to decode the action as a reset. After reset signal, the device start to read the EEPROM after 1usec. The read clock is sent by the W89C940 to the EEPROM. Normally the period of the clock is 1.2usec. It will take about 14.4usec to read the 12 bytes of data from EEPROM. The reset timing is as shown below. 22W89C940 Cy a a Electronics Eorp. | AAA ASAAAASAAASA ALLIS ISIS ASE lusec lusec Since the ELANC-PCI reloads data into the contiguration registers each time the system is reset, caution should be taken in handling resets. A system reset should keep low at least 480ns for the ELANC-PCI to decode the action as a reset. Any signal on the RESET pin shorter than this will be interpreted as noise and no response will be taken by the ELANC-PCI. After the reset signal is recognized, the ELANC-PCI to read configurations and ID contents from the EEPROM. The read clock is sent by the ELANC-PCI to the EEPROM. Normally the period of the clock is 1.2uS. The ELANC-PCI will serially generate the EEPROM address so that the configuration and ID After the reset signal is recognized, the ELANC-PCI to read contigurations and ID contents from the EEPROM. The read clock is sent by the ELANC-PCI to the EEPROM. Normally the period of the clock is 1.2uS. The ELANG-PCI will serially generate the EEPROM address so that the configuration and ID will be read into the internal register file of W89C940. NETWORK STATUS LED DISPLAY FUNCTION Network Segment Status LED Display Network activity displaying. ACT will indicate the network activity status by three types of signals (DCO DC1 and AC 10Hz). DC 0: indicating "Link Gooa", if UTP is selected. DC 1: indicating 1) Link fail", if UTP is selected. 2) idle", if AUI is selected. AC 10Hz : indicating the DTE is transmitting a packet or the carrier on the network is detected by the transceiver and the carrier sense signal is received by W89C940. The ACT will keep DC 1 if there is an abnormal network collision occurred, e.g. the transceiver collision signal always active. UTP OR COAXIAL AUTO-SELECTION FUNCTION Auto Media-Switching The ELANG-PCI provides a UTP/BNG auto media-switching function. The physical interface will jump from UTP to BNC when the ELANG-PCI is configured as UTP, link checking is enabled, and the current UTP path is broken. It will jump back immediately after the UTP path has been reconnected. When the physical interface is configured as BNC or AUI, this auto media-switching function will be disabled. 23W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe PHY1 PHYO LNKEN GDLNK Auto Switching Function 0 0 1 1 disabled, keep at UTP 0 0 0 1 enabled, keep at UTP 0 0 0 0 enabled, UTP switch to BNC or AUI 0 1 1 1 disabled, keep at AU 0 1 0 0 or 1 disabled, keep at AU 1 0 1 1 disabled, keep at AUI 1 0 0 0 or 1 disabled, keep at AUI 1 1 1 1 disabled, keep at UTP 1 1 0 1 enabled, keep at UTP 1 1 0 0 enabled, UTP switch to BNC or AUI SIGNATURE REGISTER The signature register can be read by PCI Configuration Cycle with address 40H. The consecutive read will get a data pattern 88H, OOH, 88H, OOH..... if byte enable (C_BEB#) is asserted. A write operation will have no effect on the content of this signature register. Early Interrupt Function 1. Background: W89C2940 includes some control circuit and status register bits to generate interrupt signal early during receiving packets. Besides traditional interrupt generated at incoming packet end, W89CS40 can generate interrupt when received packet bytes reach = Early Interrupt Threshold = and early interrupt function is enabled. 2. Register List: Registers IO Address Descriptions EIR_EN Page 0 Early Interrupt Enable Register: Read/Write Base+0bh Asserted high to enable Early Interrupt Function. Deasserted to [0] disable Early Interrupt Function. To program Receive Control Register (RCR) to monitor mode or Data Configuration Register (DCR) to Loopback mode will also disable Early Interrupt Function. Initial value after Power-on Reset is 0. Read once write. EIR_ MASK Page 0 Early Interrupt Mask Register: Read/Write Base+0bh Asserted high to initiate an interrupt on INTA# of PCI local bus [1] when an Early Interrupt Event occured. Deasserted this register will mask an interrupt generated. Deasserted this register does not disable Early Interrupt Status Register. Initial value after Power-on Reset is 0.Read once write. EIR_STATU Page 0 Early Interrupt Status Register: Read/Write Ss Base+0bh Asserted high when the byte count of incoming frame reaches [7] Early Interrupt Threshold with correct destination address (DS), in the enable made of Early Interrupt Function. Write 1 to clear EIR_ STATUS. Initial value after Power-on Reset is 0. Read once write. a4W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE * ED Et EIR_THD Page 3 Early Interrupt Threshold Register: Word Read/Write [15:0] Base+06h Early Interrupt Threshold is in the unit of byte. The minimum [15:0] value of threshold is 64 bytes. Any value less than 64 bytes will be treated as 64 bytes except value 0000h. Not to program threshold or program 0000h will be disable Early Interrupt function. The initial threshold value after Power-on Reset is 0000h. CLDAO[7:0] Page 0 Current Local DMA Address Register: Read only. CLDA1[7:0] Base+01h[7:0] | Currrent Address of Local DMA. Use word IO read command to Base+02h[7:0] | access the content. Initial value after Power-on Reset is 0000h. Using word command to read port base+01h will have both CLDAO & CLDAI. 3. Program Procedure: a. Set EIR_EN=1 to enable Eraly Interrupt Function and set EIR_MASK=1 to enable interrupt pin INTA# of PCI local bus. b. Program eraly interrupt threshold, EIR_THD. c. Set DCR not in Loopback mode. d. Set RCR notin monitor mode. e. Program CR to start receive packet. ft. Wait until a frame with a correct destination address and receive byte count greater than Early interrupt Threshold. g. An intrrupt initiated and EIR_STATUS register set. ps: a, b, c, d & e can also be programmed individually. PCI BUS TRANSACTION This section will introduce the Read Transaction, Write Transaction, and Termination Transaction of PCI bus. Read Transaction ( /O and Memory Read ) The timing of read transaction is shown in figure. 25W89C940 Winbond Po Electronics Eorp. i oe i ! AD[31::0] ADDRESS DATA + C_BE[3:0]# IRDY # TROY # DEVSEL# STOP# The transaction is initiated by FRAME# , the address is asserted and bus read command of C/BE[3:0]# is also asserted. This phase is called address phase. IRDY# (Initiator Ready) is asserted by master after address phase. Target initiate TRDY#( Target Ready) and assert valid data on the bus. The DEVSEL# means the target is addressed and respond to the master device. The data transaction is happened on both IRDY# and TRDY# are asserted on the same clock edge that is called data phase. During the data phase, the BE (Byte Enable) indicate the data length of the data. If it is a double word, 32 bits, the BE will be 0000. If data is a word, the BE will be 1100 or 0011 If the host send the memory read command in burst mode, W89C940 accept the first data phase access and then reject the further data access request with retry disconnection. Only one data phase is allowed for transaction. Write Transaction ( I/O and Memory Write) The write transaction is like read transaction, the FRAME initiate the transaction with address phase and the data is written in data phase. The data could be asserted directly after address phase. It does not need a WAIT state for avoiding bus contention. The transaction is ended when the FRAME#, IRDY#, TRDY# and DEVSEL# are deasserted. If the host send the memory read command in burst mode, W89C940 accept the first data phase access and then reject the further data access request with Retry disconnection. Only one data phase is allowed for transaction. The write transaction is as shown in the figure 26W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS Acco PAR SH I I I | !_{ apogrss DATA \ {1 AD[31::0] . ! I I | I I I {susemp BEWs |} + C_BE[3:0 1 i t i ! ! ae rT . mo 1 1 1 -+t>47>>>__12_ IRDY# \ 1 1 | | ' 1 t t 1 ! ' ' | | | ' rn TRDY# ' ' ' ! I | I | 1 1 1 i i 1 ! | i i DEVSEL# I I t t I ! I ! \ ' t : | STOP # | I | | | | | ' | L L \ | I I I I Configuration Read Transaction The Configuration Read timing is as shown cux mm] ' I I TTL | | FRAME # | ; I I I IDSEL | \ | f AD[B1:0] 9 + +_ ABDRESS r4_| X_ pata + | | | | | | | L I | | i 1 I V | c_BE(3:0]# | 4 BUS CMD K | BE#'s ! | | IRDY# | | , | | | | | fp | | | TRDY # | | tf ! | | | i | | | i | | | | | DEVSEL# | ! ! ! [ ! | | L | | 1 i | | | ! STOP # | | | | | ! | | 4 PAR i | | | I | | i ! ! ! ! | The timing is the same as the figure /O Read Transaction, except the IDSEL is asserted during the address phase. The transaction access the configuration registers of the device. Configuration Write Transaction The timing is as shown. efW89C940 Winbond Electronics Corp. SAAS SANESSASS SANA SAAS SASS SASS SANA SAAS SASS SSS ASS SASS I SAAS SSA SSIES SAAS SAAS SESSA SASS AISA ANS, 1 2 3 4 5 6 7 8 CLE | | | I . FRAMB# Vo / --L-- | et ff | | IDSEL ! ADDRESS DATA \ AD[31::0] | ! i | | I BUS EMD \ BE#'s \ a C_BE[3:0]# ! ! IRDY# TRDY# DEVSELt STOP# PAR \ The timing is the same as the figure I/O Read Transaction, except the IDSEL is asserted during the address phase. The transaction access the configuration registers of the device. Transaction Termination Target Initiated Termination The W89C940 device can only work in slave mode. It respond to the request from the master device and act as a target. Sometimes the target are unable to answer the master device and initiate a termination. There are two types of termination will occur. The first one is disconnect-C/Retry type. The second one is Target Abort type. The timing is as shown in the figure The first type is the Disconnect-C/Retry type, as shown in the figure 28W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE 0 | > 3 4 15 168 \ \\; CLK | 1 ! ! 1 1 i oe FRAME# 1 \ | \ ADIS1--0] {se} | \ CORES susiomo | | Bers | = IROYE | \ Ly WT TRDY# | DEVSEL# j__ \ \\ pe STOP# $e \ ' VO Because W89C940 don't support memory command in burst mode. When the host try to send memory command in burst mode, the Tirst data phase is completed. TRDY# and IRDY# are deasserted, but the FRAME# is asserted for the next data phase. The device will assert STOP# to terminate the transaction. Data is not transferred after STOP# is asserted. The host need to initiate another transaction for further data transfer. The timing is shown above. The Target-Abort type, as shown in the figure Q 1 3 4 CLK FRAME# AD[31::0] CIBE[S::0]# IRDY# TRDY# DEVSEL# STOP# The condition is the target requires the transaction to be terminated and does not want the transaction tried again. As shown in the figure, the DEVSEL# is deasserted when STOP# is asserted. If there is a data needed to be transferred, DEVSEL# must be asserted for one or more clock cycles and TRDY# must be deasserted before target-abort can be signaled. There are two cases that the device will initiate the target-abort. The first one is the addressing parity check error cause internal SERR# asserted and the second one is the Byte Enable and addressing check error. It addressing con't match the following table, the target doesn't transfer the data, but terminate with target abort. AD1 ADO C/BE3# C/BE2# C/BE1# C/BEO# X X 0 1 Xx 0 1 1 0 1 D 0 0 x x xX 0 1 0 29W89C940 (Winbond ibe Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS 1 1 0 1 1 1 30W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS Fast Back-to-Back Transactions 1 2 3 4 3 6 7 & CLE FRAME# AD[31:0] ADDRESS X DATA x ADDRESS y \ para BUS CMD y BE#s BUs|CMD y BH#s mae CIBE[3::0]# IRDY# TRDY# DEVSEL# STOP# PAR \ { y _} Without contention of TRDY#, DEVSEL#, or STOPS, the IDLE states between transactions are removed. It increase the throughput of the data transaction. If the first transaction is a write cycle and the second transaction access( can be read or write transaction) to the same target , one IDLE cycle can be removed between transactions. Parity As shown in the figure below, parity is generated at immediately following clock and the internal PERR# is after PAR. Parity is calculated the same on all PCI transactions regardless of the type or form. Parity covers AD[31:0] and C/BEB[3:0]# lines regardless of whether or not all lines carry meaningful information. The number of 1s on AD[31:0], C/BEB[3:0]# and PAR equals an even number. Parity is also calculated at Configuration phase. l 2 3 4 5 CLK \, FRAMB# f hata AD[31::0] r4_ADDIESS 4, DATA, C_BE#[3::0] +_Bus p i BE#'s PAR fo pp PERR# 31W89C940 CWipbond Po Electronics Eorp. ne ane TEST MODE SETTING AND DEFINITION W89C940 provide three test modes they are 90 test mode, TP test mode, and AUI test mode. The system reset signal is fed into 400ns low glitch eater and the output is RST_I. At 400 nsec RST_| asserted period, the three pins (EECS,BPCSB,RCSB) output (0,1,1). After RST_I deasserted, the three pins become input pins and sample at 90nsec. The sampled value (*1,*2,*3) determine the test mode. The timing and test moce type is shown as following. Por rsTB | 400nstow =| RST glitch eater RST_| EECS O BPCS _O RCSB_O EECS | BPCSB | RCSB | EEGS_0: EECS pin output driver EECS _|: EECS pin input forcing (*1, *2, *3) = (0,1,1} ---- normal operation mode = (1,0,0) ---- fast EEPROM mode = (1,0,1) ---- 90 test mode = (1,1,0) ---- TP test mode = (1,1,1} ---- AUI test mode = (0,0,0} ---- AUI linear mode FILE 3 32CWipbond po Electronics Cor ip. ne ane W89C940 SLAIN SSAA SANSA SAAS SSS SASSANID SYMBOL PARAMETER MINIMUM MAXIMUM UNIT TA Operating Temperature 0 0 C TS Storage Temperature -55 150 C Vop Supply Voltage -0.5 7.0 Vv VIN Input Voltage Vee0.5 Vppt0.5 Vv Vout Output Voltage Ve9-0.5 Vppt0.5 Vv Te | Seer 20 | * maximum) POWER SUPPLY (Vpp=4.75 V TO 5.25V, Vss=0 V, TA=0 CTO70 C) SYMBOL PARAMETER CONDITION MINIMUM MAXIMUM UNIT IDDI Power Supply Current(idle, clock Vdd=5.25V 150 mA active) IBDT Power Supply Current(transmitting) Vdd=5.25V 250 mA DC CHARACTERISTICS (Vpp=4.75 V TO 5.25 V, Vgg=0 V, TA=0 CTO70 C) DIGITAL: SYMBOL PARAMETER CONDITION MINIMUM MAXIMUM UNIT VIL Low Level Input Voltage Vge-0.5 0.8 V Vin High Level Input Voltage 2.0 Vppt0.5 Vv VoL Low Output Voltage loL=4.0mA 0.4 V Vou High Output Voltage loh=-4.0mA 2.4 V Vin=5.25V Nea Input Leakage Current (Note 1) Vin=OV 10 LA Vin=5.25V lie Input Leakage Current (Note 2) Vin=0V 2 mA 33W89C940 CE Ww lov Tristate leakage Current Vout=Vdd 0.3 mA Vout=Vss -10 WA Note 1: All of the input pins except those stated in Note 2.; Note 2: XRDP, XRDM, CDP, CDN, RXP, RXN. AUI: SYMBOL PARAMETER CONDITION MINIMUM MAXIMUM UNIT Vop Differential Output Voltage (TXP/N} | as the test load +/-550 +/-1200 mv Differential Idle Output Voltage as the test load Vop Imbalance (TXP/N) +40 mv Vu Undershoot Voltage (TXP/N) as the test load 100 mv Differential Squelch Threshold Vps (CDP/N, RXP/N) 175 800 mv Differential Input Common Mode Vom Voltage (CDP/N, RXP/N) 2.0 4.0 V TWISTED PAIR: SYMBOL PARAMETER CONDITION MINIMUM MAXIMUM UNIT RTI XRDP/M Ditferential Input 3 Kohms Resistance XRDP/M Open Circuit Input VtiB Voltage (bias) -2.75 VDD-1.0 Vv Voy Range Differential Input Voltage VDD=5V 34 34 Vv Vtps XRDP/M Positive Squelch 300 585 mv Threshold VINS XRDP/M Negative Squelch -585 -300 mv Threshold XRDP/M Positive Unsquelch VtPpU | Threshold 200 350 mv XRDP/M Negative Unsquelch VTNU | Threshold 350 200 mv VTOH TPDP/M High Output Voltage \-32mA VDDTP-.44 VDDTP Vv 34Winbond Electronics Corp. W89C940 SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS TPDP/M Low Output Voltage VTOL l=32mA VSSTP VSSTP+.44 Vv Ito TPDP/M Output Current 32 mA Rto TPDP/M Output Resistance 13.5 Kohms 35PCI Accesses Read Transaction CWipbond Po Electronics Eorp. ne ane PRELIMINARY SWITCHING CHARACTERISTICS W89C940 a md FRAME# ! JT AD[S1:0] DATA I ! 4a! | C/BE[3:0]# ! IRDY# |_18__|/ | | TRDY# | | 1 T1a) p+} DEVSEL# joy | | Tt PAR 1 OUTPUT } ! 114 8 ! IDSEL# : SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 PCI input signal set up time 7 nsec T2 PCI input signal hold time* 0 nsec T3 BE Byte Enable set up time 7 nsec T4 BE Byte Enable hold time 0 nsec T5 IRDY# set up time 7 nsec T6 IRDY# hold time 0 nsec T? PAR input setup time t nsec T8 PAR input hold time 0 nsec T9 DEVSEL# driven time 11 12 13 nsec T10 DEVSEL# hold time 11 12 13 nsec T11 output data hold time 18 19 20 nsec T12 TRDY# driven time 11 12 13 nsec T13 TRDY# hold time 11 12 13 nsec 714 PAR output driven time 11 12 13 nsec T15 PAR output hold time 11 12 13 nsec address, command, and FRAME# for slave access, IDSEL# for contiguration read transaction 36W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS Write Transaction ck re FRAME | ! 12 12 | AD[S1:0] ADDRESS DATA | ai 1 t | Taj ! | C/BE[3:0]# BUS CMD ee eee ! ! ! IRDY# ;15 _/ ! | | TRDY# | | | ! oO DEVSEL# | ! | Tio | ! PAR | ! f INPUT + ! ! 115 | 116 IDSEL# ! ! ! pp TB | PERRS ! ! 17 | SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 PCI input signal setup time* ? nsec T2 PCI input signal hold time* 0 nsec T3 BE Byte Enable set up time f nsec T4 BE Byte Enable hold time 0 nsec T5 IRDY# set up time f nsec T6 IRDY# hold time 0 nsec T7 PAR input setup time ? nsec T8 PAR input hold time 0 nsec T9 DEVSEL# driven time 11 12 13 nsec T10 DEVSEL# hold time 11 12 13 nsec T11 input data set up time 7 nsec T12 input data hold time 0 nsec T13 TRDY# driven time 11 12 13 nsec T14 TRDY# hold time 11 12 13 nsec T15 PAR input setup time f nsec T16 PAR input hold time 0 nsec T17 Internal PERR# driven time** 11 12 13 nsec T18 Internal PERR# hold time** 11 12 13 nsec *address, command, and FRAME for slave access, IDSEL# for configuration read transaction **Internal PERR# will be asserted if the parity error event occurred. 3fW89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe Transaction Termination Disconnect-C/Retry Type 0 \ 4 2 3 4 15 16 7 18 18 LK Pr i A a | | i n noga:a) {ABB REBS |} {> \ } CIBEIS:O}# BUS|CMD | BE#'s IRDY# : | 3 VN ! | nove ! ! OL | 1 ' T3 DEVSEL# A \\ fo STOP# 4 | \ ! re | { | pe SYMBOL DESCRIPTION MIN TYP MAX UNIT T1 FRAME# deasserted from clock 15 0 nsec T2 Clock 16 to STOP# asserted time 11 12 13 nsec T3 Clock 18 to STOP# and DEVSEL# 11 12 13 nsec hold time Note: 1) The other timing requirements for PCI input signal are as the read transaction timing. 2) T1,T2 and T3 are used for the disconnect type C(host try to transfer more than one data phase). Target-Abort Type 2 4 2 3 4 5 8 7 8 y ! | | nm |p ! FRAME# t AD[S1-0] a - CIBE[S: OV a Busi low K i | Bews } Rov | | \ | TRDY# | T2 DEVSEL# ji f STOP# ee \ = _ N SYMBOL DESCRIPTION MIN TYP MAX UNIT T1 FRAME# deasserted from clock 15 0 nsec T2 Clock 4 to DEVSEL# hold time 11 12 13 nsec T3 Clock 6 to STOP# hold time 11 12 13 nsec Note: 1) The other timing requirements for PCI input signal are as the read transaction timing.. 2) T2 and T3 are used for the target abort type(host addressing error). Fast Back-to-Back Transactions 38W89C940 \ FE . Winbond SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS i 8 1 1 2 3 I! 4 5 6 a 8 CuK { \ [ \ \ fy Le \ \ \ \ FRAME# re oe ee 1 VE Ef i v1! ADBI-0) __ ADDRESS }C | WRITE DATA \{ apbress };_/ DATA GC/BE[3-0}44 __{ BusicMD X BE#s 3 KX BUBCMD X | BEMs IRDY# \ {| a TRov# ! | a PL DEVSEL# ( \ l PY mn a} Ct + SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT Ti FRAME set up time to clock 6 t nsec 39W89C940 CWipbond po Electronics Cor ip. ne ane MEMORY SUPPORT BUS ACCESS 32KX8-20 SRAM Remote Read Byte Access Cycle 0 1 2 n+4 n+5 n+6 n+7 n+ oLK SPU Yu PAPA FRAME# a | ADDRESS AD[31::0] Ho | ( DATA} BUS CMD \ C BE#{3:0] BE#s |} IRDY# \ \ [ \ | TRDY# \ po DEVSEL# na - T2 | MSA0-13 ae ns | 1 | RCSB 13 | 4 TS MSRDB T4 | py . A MSWRB > MSDO-7 |__T6 7 (Read) | P SSS YAR | SYMBOL | DESCRIPTION | MIN TYPICAL | MAX | UNIT | 40W89C940 Winbond Electronics Corp. SAAS SANESSASS SANA SAAS SASS SASS SANA SAAS SASS SSS ASS SASS I SAAS SSA SSIES SAAS SAAS SESSA SASS AISA ANS, T1 clock n+4 to RCSB and MSA valid (note 20 25 30 nsec 2) T2 clock n+6 to MSA valid 25 28 30 nsec T3 clock n+7 to RCSB deasserted time 10 15 20 nsec T4 clock n+4 to MSRDB valid 22 of 30 nsec T5 clock n+/ to MSRDB deasserted time 15 20 25 nsec T6 MSD setup tim to clack n+6 f nsec T7 MSD hold time from clock n+6 0 nsec Remote Read Word Access Cycle 0 1 2 3 n+4 nes n+6 n+8 n+9 n+10 n+11 cLK SVL LEP LP LE LLL FRAME# Lf ADDRESS ADB1-0] f CS BUS CMD \ C_BEH3.0] { jf \ BE#'s } IRDY# ee oe I TRDY# DEVSEL# To Tn 4 / Pp Ts, MSA0-13 a | {4 TI | T3 RCSB | | hs TH , MSRDB 41 1 | 4 MSWRB > MSDO-7 |__T6 7 Te iT7 (Read) a Toe SE MME Se kt SS, Note: 1) The other timing requirements for PCI signal are as the read transaction timing. 2) n=0,1,2,3,..... when local DMA get the control of the bus, PCI bus will insert wait state. Wait state number is n. SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 clock n+4 to RCSB and MSA valid (note 20 25 30 nsec 2) T2 clock n+6 to MSA valid 25 28 30 nsec T3 clock n+7 to RCSB deasserted time 10 15 20 nsec AtW89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS T4 clock n+4 to MSRDB valid 22 ef 30 nsec T5 clock n+7 to MSRDB deasserted time 15 20 25 nsec T6 MSD setup tim to clock n+6 f nsec T7 MSD hold time from clock n+6 0 nsec T8 MSD hold time from clock n+8 nsec Remote Read Double Word Access Cycle 0 1 2 3 n+4 0 n+5 n+6 = na? n+8 oLk FVLP VP LP FRAME# rn a ADDRESS ADB1-:0] { +} BUS CMD n+10 n+i1 BE#(3:0] IRD# TRDY# DEVSEL# MSA0-13 RCSB MSRDB MSWRB MsD0-7 (Reac} SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 clock n+4 to RCSB and MSA valid (note 20 20 30 nsec 2) T2 clock n+6 to MSA valid 25 28 30 nsec T3 clock n+7 to RCSB deasserted time 10 15 20 nsec T4 clock n+4 to MSRDB valid 22 27 30 nsec T5 clock n+7 to MSRDB deasserted time 15 20 25 nsec T6 MSD setup tim to clock n+6 f nsec T7 MSD hold time from clock n+6 0 nsec T8 MSD hold time from clock n+8 nsec Remote Write Byte Access Cycle 42W89C940 Winbond po Elect lectronics Cor 'p. na ASAAAASAAASA ALLIS ISIS ASE i oe 0 1 2 3 n+5 +6 n+? 48 n+9 oLk SUL CP LP a ee FRAME# | ADDRESS fs AD[31::0] a DATA DATA } BUS CMD C_BE[3-0}# | IRDY# A [ ate ce BE#'s BE#'s \ wot TRDY# \_ | 7 DEVSEL# \ \ | T2 | MSA0-13 _ RMR T1 | RCSB | m7 | Ly MSRDB 4 T3| 14 MSWRB WL 5 Te | MSDo-7 4 LS EEE SIE SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 Clock n+5 to MSA, RCSB, and 17 22 27 nsec MSD valid (note 2) T2 clock n+7 to MSA valid 14 19 24 nsec T3 clock n+8 to MSWBB valid 9 14 19 nsec T4 Write pulse width 4 9 14 nsec T5 clock n+5 to MSD valid 7 12 17 nsec T6 clock n+7 to MSD deasserted 14 19 24 nsec T7 MSA change to MSWRB 17 22 27 nsec deasserted time T8 clock n+7/ n+9 to MSD 16 21 26 nsec deasserted T9 clock n+9 to MSD deasserted 8 13 18 nsec File4 Remote Write Word Access Cycle 43W89C940 Winbond Electronics Corp. SAAS SANESSASS SANA SAAS SASS SASS SANA SAAS SASS SSS ASS SASS I SAAS SSA SSIES SAAS SAAS SESSA SASS AISA ANS, 0 1 2 3 n+5 146 n+7 n48 n49 on4io. mii cK SUPPLE \ FRAME# || ADDRESS \ AD[31::0] <> 4 BUS CMD C_BE[s:0]# IRDY# TRDY# DEVSEL# MSA0-13 RCSB MSRDB MSWRB MSD0-7 NES Note: 1) The other timing requirements for PCI signal are as the read transaction timing. 2) n=0,1,2,3,..... when local DMA get the control of the bus, PCI bus will insert wait state. Wait state number is n. SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 Clock n+5 to MSA, RCSB, and 17 22 27 nsec MSD valid (note 2) T2 clock n+7 to MSA valid 14 19 24 nsec T3 clock n+6 to MSWRB valid 9 14 19 nsec T4 Write pulse width 4 9 14 nsec T5 clock n+10 to RCSB deasserted 7 12 17 nsec T6 clock n+9 to MSA deasserted 14 19 24 nsec T7 clock n+5 to MSD valid 17 22 27 nsec T8 clock n+/ to MSD deasserted 16 21 26 nsec T9 clock n+10 to MSD deasserted 8 13 18 nsec T10 MSA change tio MSWRB deasserted time T11 MSA change to MSWRB deasserted time 44W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS Remote Write Double Word Access Cycle a 1 2 3 n+ n+6 n+7 n+8 mn+9 m4i10 n+l n+12 n413 n+14 +15 cuK SVP \ FRAME# |_| ADDRESS ADI31-0] ae BUS CMD _____| TRDY# ' DEVSEL# \ \ C_BE[3.0]# IRDY# MSAO-13 RCSB MSRDB MSWRB. MSDo-7 SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 Clock n+5 to MSA, RCSB, and 17 22 2/7 nsec MSD valid (note 2) T2 clock n+7 to MSA valid 14 19 24 nsec T3 clock n+6 to MSWBREB valid 9 14 19 nsec T4 Write pulse width 4 9 14 nsec T5 clock n+11 to RCSB deasserted 7 12 17 nsec T6 clock n+10 to MSA deasserted 14 19 24 nsec T7 clock n+5 to MSD valid 17 22 ef nsec T8 clock n+7 to MSD deasserted 16 21 26 nsec T9 clock n+9 to MSD deasserted 8 13 18 nsec T10 MSA change to MSWRB deasserted time T11 MSA change to MSWRB deasserted time 32KX8-70 SRAM Remote Read Byte Access Cycle 45W89C940 a Ww 0 { 2 n+4 45 n+6 m+/7 n+ oLK FLL LP up Lg PP : | FRAME# | ADDRESS . \ / ta AD[31::0] { | (| DATA} BUS CMD \ C BE#3:0] BE#'s IRDY# \ \ | TRDY# of DEVSEL# / \ \ \ T2 MSA0-13 a k me | T1 | RCSB | 13 | s f TS MSRDB 14 | 4 MSWRB ? MSDo-7 | 16 7 | (Read) | | ead) i | | TE YARRA | LS SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 clock n+4 to RCSB and MSA valid (note 20 25 30 nsec 2) 46W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS T2 clock n+6 to MSA valid 25 28 30 nsec T3 clock n+7 to RCSB deasserted time 10 15 20 nsec T4 clock n+4 to MSRDB valid 22 27 30 nsec T5 clock n+7 to MSRDB deasserted time 15 20 25 nsec T6 MSD setup tim to clock n+6 f nsec T7 MSD hold time from clock n+6 0 nsec Remote Read Word Access Cycle 0 1 2 3 n+4 0 n+5 n+6 n+8 n+9 n+10 0 n+11 oLK SUPPL LP up LP LL | FRAME# ADDRESS AD[B1-0] { } { DATA} BUS CMD \ C_BE#[3:0] + i \ BE#'s } IRDY# \ \ i TRDY# \ i DEVSEL# TT \ \ T2 T&, MSA0-13 -| I| x {5k 1 T3 RCSB L| I! h A 14 ro MSRDB +44 Tr 4 + x MSWRB = MSDO-7 | ul Vv Te 1T7 , . . _ ! eT (Reac) EE {<< _ S ES Note: 1) The other timing requirements for PCI signal are as the read transaction timing. 2) n=0,1,2,3,..... when local DMA get the control of the bus, PCI bus will insert wait state. Wait state number is n. SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 clock n+4 to RCSB and MSA valid (note 20 25 30 nsec 2) T2 clock n+6 to MSA valid 25 28 30 nsec T3 clock n+7 to RCSB deasserted time 10 15 20 nsec TA clock n+4 to MSRDB valid 22 of 30 nsec T5 clock n+/ to MSRDB deasserted time 15 20 25 nsec 47W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS T6 MSD setup tim to clack n+6 f nsec T7 MSD hold time from clock n+6 0 nsec T8 MSD hold time from clock n+8 nsec Remote Read Double Word Access Cycle 0 1 2 3 n+4 n+6 n+10 n+11 cuk J LPL Li FRAME# ee ee ADDRESS BUS CMD BE#(3:0] IRD# TRDY# DEVSEL# MSA0-13 RCSB MSRDB MSWRB MSDO0-7 (Reac} SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 clock n+4 to RCSB and MSA valid (note 20 25 30 nsec 2) T2 clock n+6 to MSA valid 25 28 30 nsec T3 clock n+7 to RCSB deasserted time 10 15 20 nsec T4 clock n+4 to MSRDB valid 22 27 30 nsec T5 clock n+7 to MSRDB deasserted time 15 20 25 nsec T6 MSD setup tim to clock n+6 f nsec T7 MSD hold time from clock n+6 0 nsec T8 MSD hold time from clock n+8 nsec Remote Write Byte Access Cycle 48W89C940 R Ww 0 1 2 3 n+5 n+6 n+7 n+8 n+9 CLK SPP LP PL a ae \ | FRAME# \ | ADDRESS 4 AD[31::0] ~~ DATA DATA b BUS CMD \ G_BE[3:0}# | \ BE#'s BE#'s \_ IRDY# L \ [ \ __ TRDY# \ \ | - DEVSEL# LL / T2 | t MSA0-13 KT | SS MW lady! ACSB MSRADB A [13 | T4 MSWRB 2 TS Te | MSDo- | es 7 QM | ASQ SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 Clock n+5 to MSA, RCSB, and 17 22 27 nsec MSD valid (note 2) T2 clock n+7 to MSA valid 14 19 24 nsec T3 clock n+6 to MSWREB valid 9 14 19 nsec T4 Write pulse width 4 9 14 nsec T5 clock n+5 to MSD valid 7 12 17 nsec T6 clock n+7 to MSD deasserted 14 19 24 nsec T7 MSA change to MSWRB 17 22 27 nsec deasserted time T8 clock n+7/ n+9 to MSD 16 21 26 nsec deasserted T9 clock n+9 to MSD deasserted 8 13 18 nsec Remote Write Word Access Cycle 49W89C940 Winbond Electronics Corp. SAAS SANESSASS SANA SAAS SASS SASS SANA SAAS SASS SSS ASS SASS I SAAS SSA SSIES SAAS SAAS SESSA SASS AISA ANS, 0 1 2 3 n+5 146 n+7 n48 n49 on4io. mii cK SUPPLE \ FRAME# || ADDRESS \ AD[31::0] <> 4 BUS CMD C_BE[s:0]# IRDY# TRDY# DEVSEL# MSA0-13 RCSB MSRDB MSWRB MSD0-7 NES Note: 1) The other timing requirements for PCI signal are as the read transaction timing. 2) n=0,1,2,3,..... when local DMA get the control of the bus, PCI bus will insert wait state. Wait state number is n. SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 Clock n+5 to MSA, RCSB, and 17 22 27 nsec MSD valid (note 2) T2 clock n+7 to MSA valid 14 19 24 nsec T3 clock n+6 to MSWRB valid 9 14 19 nsec T4 Write pulse width 4 9 14 nsec T5 clock n+10 to RCSB deasserted 7 12 17 nsec T6 clock n+9 to MSA deasserted 14 19 24 nsec T7 clock n+5 to MSD valid 17 22 27 nsec T8 clock n+/ to MSD deasserted 16 21 26 nsec T9 clock n+10 to MSD deasserted 8 13 18 nsec T10 MSA change tio MSWRB deasserted time T11 MSA change to MSWRB deasserted time 50W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS Remote Write Double Word Access Cycle a 1 2 3 n+ n+6 n+7 n+8 mn+9 m4i10 n+l n+12 n413 n+14 +15 cuK SVP \ FRAME# |_| ADDRESS ADI31-0] ae BUS CMD _____| TRDY# ' DEVSEL# \ \ C_BE[3.0]# IRDY# MSAO-13 RCSB MSRDB MSWRB. MSDo-7 SYMBOL DESCRIPTION MIN TYPICAL MAX UNIT T1 Clock n+5 to MSA, RCSB, and 17 22 2/7 nsec MSD valid (note 2) T2 clock n+7 to MSA valid 14 19 24 nsec T3 clock n+6 to MSWBREB valid 9 14 19 nsec T4 Write pulse width 4 9 14 nsec T5 clock n+11 to RCSB deasserted 7 12 17 nsec T6 clock n+10 to MSA deasserted 14 19 24 nsec T7 clock n+5 to MSD valid 17 22 ef nsec T8 clock n+7 to MSD deasserted 16 21 26 nsec T9 clock n+9 to MSD deasserted 8 13 18 nsec T10 MSA change to MSWRB deasserted time T11 MSA change to MSWRB deasserted time 51Winbond Electronics Corp. W89C940 SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS Local Read cycle Local Write cycle CLK MSA0-13 RCSB MSRDB MSWRB MSD0-7 CLK MSA0-13 RCSB MSRDB MSWRB MSD0-7 (Rea) SYMBOL DESCRIPTION MIN TYPIG MAX AL T1 clock 1 to RCSB and MSA valid (note 2) 4 8 12 T2 clock 3 to MSA valid 20 24 28 T3 clock 6 to RCSB deasserted time 4 8 12 T4 clock 1 to MSRDB valid 8 12 16 T5 clock 6 to MSRDB deasserted time 8 12 16 T6 MSD setup tim to clock 3 24 28 32 T? MSD hold time from clock 3 24 28 32 T8 MSD hold time from clock 8 0 1 2 3 1 2 3 4 5 6 7 JU UU Oo Uta | | [Te Te | | KT SRS ay Tio TS 4 7 TT7 13 |T4 | T3i Ta = | [F7 | Ts | T9 ! CRM , (RSW I | SYMBOL DESCRIPTION MIN TYPIC MAX ALW89C940 T1 Glock 1 to MSA and RCSB valid 16 20 24 T2 clock 4 to MSA valid 4 8 12 T3 clock 3 to MSWREB valid 4 8 12 T4 Write pulse width 20 a4 28 TS clock 6 to RCSB deasserted 20 24 28 T6 clock 6 to MSA deasserted T? clock 1 to MSD valid T8 clock 3 to MSD deasserted 8 12 16 T9 clock 5 to MSD deasserted 8 12 16 T10 MSA valid to MSWRB deasserted 64 68 72 T11 MSA valid to MSWRB deasserted 40 44 48 53W89C940 C Winbond Po Electronics Eorp. ne Ane 32KX8-220 BPROM/ FLASH MEMORY Read cycle 123 4 6 7 9 4 4 1617 18 1920 21 22 23 24 25 26 ok ULLAL FRAME# = _/ AD[31::0] +} A || __ C _BEB[3.0}# < Xx | IRDY# \ | TRDY# Va DEVSEL# \ / T2 T1 Ht MSA 4/L | || 13 T4 FI TS 4 MSA[9:0] T | ! | | MSA[1 3:10] + en ee | | T8 I ! | BPCSB 7 , , , | MSRDB \ T1 0 || Ta T1 0 i OT Tg 4 T11 A 2 | TH1 A T12 MSD[7:0] LU | SYMBOL | DESCRIPTION MIN TYPICAL MAX UNIT T1 clock 4 to MSA14/L valid 8 13 18 nsec T2 clock 5 to MSA14/L deasserted time 8 13 18 nsec T3 clock 6 to MSA bus valid 8 13 18 nsec T4 clock 14 to MSA bus valid 8 13 18 nsec T5 clock 23 to MSA deasserted 8 13 18 nsec T6 clock 4 to MSA high nibble valid 8 13 18 nsec T7 clock 6 to BPCSB valid 15 20 25 nsec T8 clock 25 to BPCSB deasserted 7 12 17 nsec T9 clock 8/ clock 17 to MSRDB asserted time 15 20 25 nsec T10 clock 13/ clock 22 to MSRDB deasserted time 8 13 18 nsec T11 MSD setup time from clock 13 nsec T12 MSD hold time from clock 15 0 nsec Note: 1) The other timing requirements for PCI signal are as the read transaction timing. 2) BPROM/FLASH memory access could be byte, word or double word access. The timing is the same. 54W89C940 (Winbond ibe Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS FILE5 55Winbond Electronics Corp. W89C940 SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS 1 1 | | RXP/XRDP | \ is Teop1 . AUVUTP TIMING AUI Transmit Timing (End of Transmit) TX RXWXRDM ON | 0 | 0 Taxpenpe ON CN No Teopd PRNPKRDM SYMBOL DESCRIPTION MIN. MAX. UNIT Ttoh Transmit Output High Before Idle 200 ns Ttoi Transmit Output Idle Time 8000 ns AUWVUTP RECEIVE TIMING (END OF RECEIVE) SYMBOL DESCRIPTION MIN. MAX. | UNIT End of Packet Received Hold Time after Logic "1" Teopt (Note 1) 200 ns End of Packet Received Hald Time after Logic "0" Teopo | (Note 1) 200 ns Note 1: This parameter is specified by design and is not tested. 56W89C940 Winbond Electronics Corp. SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS TPI TRANSMIT TIMING (END OF TRANSMIT) TPDP Teth Acco TPDP Tetht 4 TPDM SYMBOL DESCRIPTION MIN. MAX. UNIT Tetht End of Packet Transmitted Hold Time 1 250 ns (TPDP/M} (Note 1) Link Pulse Timing [ Tipw | Tipi 1 rep LO TPDM SYMBOL DESCRIPTION MIN. MAX, UNIT Tipi Link Output Pulse Interval 8 24 ms Tow Link Output Pulse Width 80 120 ns 57C Winbond Po Electronics Eorp. ne ane Serial EEPROM Timing EECs { TH oo al}. 2 } MSD2 _ want (SCR) | Te} 17 DTD ! OX SR |B) ny SRR SR SYMBOL DESCRIPTION MIN. MAX. | UNIT TI EECS asserted to SK 500 ns T2 EECS hold from SK 0 500 ns T3 MSD2 OFF time 500 600 ns T4 MSD2 ON time 500 600 ns TS MSD2 clock period 1 1.2 us T6 MSD1 set up time to MSD2 high 500 600 ns T? MSD1 hold time from MSD2 high 500 600 ns T8 MSDO0 valid from MSD2 high 300 ns 58 W89C940Winbond Electronics Corp. W89C940 SARNIA SAAS SAAS SAAS ASAASSAAESSAESSAASASS AAS A SSSA SASSANTSAS SSA A SSS IESSASSAS SAS ASSSAI SSS IESSASIASSSSA SS SA SSSA ESSA SANSASI SS SA SSS ASES SASS ANISASISSA SSS AAS SSA SSASSASIS SASS SAISSSASSSASSAI SAS ASSSA SSS Vor SW1 (Note 3) AC TIMING L 0.1uF TEST CONDITIONS =__ DEVICE AL =2 2K -___| UNDER 2 Input TEST Output TL CL (Note 1,2) PARAMETER TEST CONDITION Supply voltage (Vpp/Vag) 5V1t5% Temperature 25C/70C Input Test Pattern Levels (TTL/CMQS) GND to 4.0V Input Rise and Fall Times (TTL/GCMOS} 5nS Input and Output Pattern Reference Level 1.5V (TTL/GMOS) . Input Waveform Level (Diff) -350 to -1315 mV Input and Output Waveform . . : Reference Levels 50% Point of the Differential Tristate Reference Levels Float (V} + 0.5V Note 1: These parameters are specified by design and are not tested. OUTPUT LOAD The above specifications are valid only it the mandatory isolations are correctly employed and all differential signals are taken to the AUI of the pulse transtormer. Note 1: Load capacitance employed depends on output type. For 3SL, MOS, TPI, AUI: CL=50 pF. For 38H, OCH: CL=240 pF. Note 2: Specifications which measure delays from an active state to a High-Z state are not guaranteed by production test, but are characterized using 240 pF and are correlated to determine true driver turn-off time by eliminating inherent R-C delay Note 3: SW1=Cpen for push pull outputs during timing test. SW1=VCC for VOL test. SW1=GND for VOH test. S8W1=VCC for High-Z to active low and active low to High-2 measurements. SW1=GND for High-Z to active high and active high to High-2Z measurements. 59 times in measurements.W89C940 Winbond Electronics Corp. SAAS SANESSASS SANA SAAS SASS SASS SANA SAAS SASS SSS ASS SASS I SAAS SSA SSIES SAAS SAAS SESSA SASS AISA ANS, bop bam Pin Capacitance ~ mvs TA = 25C f=1 MHz DON ie SYMBOL PARAMETER TYP UNIT CIN Input Capacitance 7 pF Cout Output Capacitance 10 p DERATING FACTOR Output timing is measured with a purely capacitive load of 50pF or 240pF. The following correction factor can be used for other loads (this factor is preliminary only): Derating for 3SL, MOS = -0.05 nS/pF. Derating for 35H, OCL, TPI = -0.03 nS/pF. AUI TRANSMIT TEST LOAD Note: In the above diagram, the TX+ and TX- signals are taken from the AUI side of the pulse transformer. The pulse transformer used for all testing is a 100,,H +/-0.1% Pulse Engineering PE64103. PACKAGE DIMENSIONS 60SAANSSANSAAAS SAAS SSIES AAS SAAS ASA SASS SASS SASS SSAA SSSA SAAS S ESSAI SAAS SAAS SASS AASAS ISAS SAIS SAAS SSSA SSSA SAAS SSS A WF inbond Electronics Corp. W89C940 100 PINS PQFP He E co J) co J) co J) cS 1 co ) co J) co ) Co os co J) Hd; D cc co ) co J) cS 1 Co os co J) co J) co J) Co 1) cO e b Symbol Dimension ininch | Dimension in mm Al 0.004 min 0.102 min Ag 0.1124 0.005 2.8454 0.127 b [coz gga [oso 8 m8 _S inno. on c 0.006+ 0.004 0.1524 0.102 - 0.002 - 0.051 DB 0.5514 0.005 14.000 + 0.127 E 0.7874 0.005 20.000 + 0.127 e 0.0264 0.006 0.6504 0.152 A2 Hg 074040.012 | 18796 10.308 et : He 0.97640.012 24.790 + 0.305 c ~~ Al L 0.0474 0.008 1.1944 0.203 L | Li 0.0954 0.008 2.4134 0.203 L v 0.004 MAX 0.102 MAX ut LY @ 0 -------- 12 0 ------- 12 61