Data Sheet MU9C8338 10/100Mb Ethernet Filter Interface APPLICATION BENEFITS DISTINCTIVE CHARACTERISTICS • 10/100Mb Ethernet wire speed switching and bridging for remote access and wireless networks • Industry-standard 10/100Mb MII port • Supports station list up to 32K addresses • Glueless connection to MUSIC LANCAM and most 10/100Mb Ethernet chip sets • Port ID and MAC Frame Reject signal based on DA search results • Offloads all DA/SA processing and management functions from host processor • Read search results from the Result port or CPU port • Support station lists from 256 up to 32K • Hardware support for Tag switching • Full support of Unicast, Multicast, and Broadcast frames • Optional automatic learning of new SAs • Optional automatic Aging and Purging • Built-in generic Processor port • 144–pin LQFP packages • 3.3 Volt operation with 5 Volt tolerant I/O MUSIC MU9C8338 10/100 PHY Processor Interface Processor MII 10/100 MAC REJECT FR_ERR MII and TAG Port Packet Parser Controller Result Port ASIC TAG LANCAM Interface Registers MUSIC LANCAM Figure 1: System Application Diagram MUSIC Semiconductors, the MUSIC logo, and the phrase "MUSIC Semiconductors" are Registered trademarks of MUSIC Semiconductors. MUSIC and Epoch are a trademarks of MUSIC Semiconductors. March 27, 2001 Rev. 1a MU9C8338 10/100Mb Ethernet Filter Interface General Description GENERAL DESCRIPTION The MU9C8338, when configured with the MUSIC Semiconductors MU9Cx480B family of LANCAMs provides a high performance, large capacity Ethernet address processing subsystem for use in Ethernet bridge, switch, or remote access products. The device is designed to work in single-port system supporting a 100Mb/s Ethernet port at wire speed. OPERATIONAL OVERVIEW Because of the flexibility of the MU9C8338, the best way to approach the feature set of the device is to first look at a typical 10/100Mb Ethernet application. The MU9C8338 captures the Destination address (DA) and the Source address (SA) of an incoming Ethernet frame on the MII port. After checking for a frame error or collision, the DA is processed and the result (associated data, usually a port ID) is made available. The SA then is checked, and either learned if new, or aged if already in the list. for the MII port to relay the Tag ID to the system for systems that support Tag switching. When the DA is processed, the MU9C8338 first checks if the frame is Unicast, Multicast, or Broadcast. Unicast frames destined for the same collision domain (visible on the same switch port as it came in on) are rejected. If the DA is found in the CAM database, the port ID associated with it is stored in the Result register. Multicast and Broadcast frames are not processed by the system. Instead they are identified and their classification is stored in the Result register. Once processing completes, the Result register is accessed through the Result port or Processor port. Typical MU9C8338 Application The MU9C8338 plays an integral role in the example of an Ethernet bridge system, shown in Figure 1. This system can handle up to 32,768 addresses on a bidirectional 100Mb Ethernet port by utilizing the MU9C8338 device and four LANCAMs connected as shown in Figure 1. The MII bus is "tapped" to collect packet data as it passes from the Ethernet PHY to the MAC. That data is processed automatically by the MU9C8338/LANCAM combination. The MU9C8338 transfers the DA and SA to the CAMs for comparison. The results of MU9C8338/LANCAM data processing are available through the Result bus or through the Processor bus. In addition to the Result bus, there is a serial Tag port Provided the frame length is correct, and no errors are detected, the SA is processed. If the SA exists in the CAM database, the time stamp and Port ID are updated. If the SA is not found in the CAM database, the address is learned automatically, along with its Port ID and the current time stamp information. Address processing always has priority over management routines, such as purging aged entries, inserting permanent entries, deleting entries, or reading from the CAM database. 2 Rev. 1a Pin Descriptions MU9C8338 10/100Mb Ethernet Filter Interface PIN DESCRIPTIONS D12 D13 D14 GND D8 D9 D10 D11 114 120 D0 D1 D2 D3 D4 D5 VDD D6 D7 A6 A7 GND 132 126 /PCS /PCSS /WRITE A0 A1 A2 VDD A3 A4 A5 138 102 12 96 18 90 24 84 30 72 66 60 54 36 48 78 VDD D15 NC /RESET_LC /W /E /CM /EC GND /MI /FI VDD DQ0 DQ1 GND DQ2 DQ3 DQ4 DQ5 VDD DQ6 NC DQ7 DQ8 DQ9 DQ10 GND DQ11 DQ12 DQ13 NC DQ14 DQ15 GND SYSCLK NC VDD REJ FRX_ER TP_SD TP_DV GND NC NC NC NC NC NC NC NC NC NC NC GND RXD3 RXD2 RXD1 RXD0 VDD RX_DV RX_CLK RX_ER COL CRS GND TDO GND TDI TMS TCK /TRST VDD NC GND 108 6 42 TST_HLD GND TST_HLD2 NC VDD RP_NXT RP_SEL GND NC NC 1 GND /RESET INCR VDD / INTR PROC_RDY VDD RP0 RP1 RP2 RP3 GND RP4 RP5 RP6 VDD RP7 RP8 RP9 RP10 RP11 RP12 GND RP13 RP14 RP15 RP_DV VDD NC SC_ENB 144 Note: All signals are implemented in CMOS technology with TTL levels. Signal names that start with a slash (“/”) are active LOW. Inputs should never be left floating. Refer to the Electrical Characteristics section for more information. Figure 2: Pinout MII Interface RXD[3:0] (Receive Data, Input, TTL) any other error that the PHY can detect, even if the MAC is not capable of detecting that error (see Timing Diagrams: Timing Data for RXD, RX_DV, and RX_ER). RXD[3:0] is the 4-bit MII Receive Data nibble (see Timing Diagrams: Timing Data for RXD, RX_DV, and RX_ER). RX_CLK (Receive Clock, Input, TTL) RX_DV (Receive Data Valid, Input, TTL) RX_CLK is the receive clock recovered from the data by the PHY. It is equal to 25MHz in 100Base-X mode or 2.5MHz in 10Base-X mode. Data Valid is on RX_DV; RX_DV is asserted by the PHY at the beginning of the first nibble of the data frame and deasserted at the end of the last nibble of the frame. It indicates that the data is synchronous to RX_CLK and is itself synchronous to the clock (see Timing Diagrams: Timing Data for RXD, RX_DV, and RX_ER). CRS (Carrier Sense, Input, TTL) Carrier sense CRS indicates that the medium is active (non-idle) and remains asserted during a collision. For Rx or Tx: CRS is HIGH in 10/100Base-X half-duplex mode; for Rx it is HIGH in repeater, full-duplex, and loopback modes. CRS is not synchronized to RX_CLK. RX_ER (Receive Error, Input, TTL) RX_ER indicates a data symbol error in 100Mb/s mode or Rev. 1a 3 MU9C8338 10/100Mb Ethernet Filter Interface Pin Descriptions COL (Collision, Input, TTL) RP[15:0] (Result Port Data, Output, Tri-state, TTL) Collision detect COL is asserted by the PHY upon detection of a collision on the medium and remains asserted as long as the collision persists. It is HIGH in half-duplex modes and remains HIGH for 1 microsecond following the end of transmission; it is LOW in full-duplex mode. It is asserted in response to signal_quality_error message from the PMA in 10Base-X Heartbeat mode. The Result Port Data carries the results of recently processed packets detected on the MII port. See Table 1 for details of the Result Port Data bit descriptions. These are identical to the Result Data register bits. RP_DV (Result Port Data Valid, Output TTL) The Result Port Data Valid indicates that the RP port carries valid packet data. As long as there is valid packet data, RP_DV will stay HIGH. Tag Port Interface RP_NXT (Result Port Next Data, Input, TTL) REJ (Reject, Output, TTL) The Result Port Next pin brings the next result to the RP bus if RP_SEL is asserted. If there are no additional results available, the RP_DV will drop LOW after the time interval specified in the Result Port Timing specification. REJ is the reject packet command issued by the MU9C8338. REJ is driven HIGH to reject a data frame, and can be detected by and responded to by the MAC device from 2 bit times after SFD to 512 bit times (64 byte times) after SFD. The REJ signal can be made active LOW by setting Bit 0 in the SSCFG register. (See Timing Diagrams: REJ Timing Data. RP_SEL (Result Port Select, Input, TTL) The Result Port Select pin controls RP[15:0] and RP_NXT. RP_NXT and RP_SEL are connected by a logical AND. Therefore, RP_SEL must be HIGH in order for RP_NXT to bring the next result to the RP bus. RP_SEL can stay continuously HIGH as long as there is valid packet data, RP_DV will stay HIGH. FRX_ER (Frame Error, Output, TTL) The Forced Receive Error pins provide the logical OR of the RX_ER and REJ lines for the MII port (see Timing Diagrams: Timing Data for FRX_ER in Relation to REJ and RX_ER). Table 1: Result Port Bit Descriptions TP_SD (Tag Port Data, Output, TTL) Bit(s) Description The Tag Port Serial Data pin carries the destination Port ID to external circuitry as soon as it is collected from the CAM (see Timing Diagrams: Timing Data for Tag Ports TP_DV and TP_SD). 15:10 6-Bit Source Port ID 9:8 7 TP_DV (Tag Port Data Valid, Output, TTL) The Tag Port Data Valid pin is driven HIGH for as long as unread data exists for the Destination Port ID. Pin TP_SD carries the Destination Port ID (6 bits) to external circuitry as soon as it is collected from the CAM (see Timing Diagrams: Timing Data for Tag Ports TP_DV and TP_SD). Packet Type: Broadcast = 00, Multicast = 01, Unicast = 10 (if Unicast) Match Found 6:1 6-Bit (if CAM Match Found) Destination Port ID 0 (If Match Found) Destination Port = Source Port Control Interfaces See Timing Diagrams: Timing Data for Control Interfaces. SYSCLK (System Clock, Input, TTL) CLK is the user-supplied system clock for synchronous chip operation; its frequency must be 25-50 MHz with duty cycle between 45 to 55 percent. Result Port Interface /RESET (Reset, Input, TTL) See Timing Diagrams: Timing Data for Result Port Interface. Table 1 shows the Result Port bit descriptions. When system Reset is taken LOW, all internal state-machines are reset to their initial state and any data is cleared. All registers are returned to default values. /RESET is synchronous and should be held LOW for a minimum of two SYSCLK cycles. The user must set the LANCAM Segment Control register after asserting /RESET. Note: Although the result data register can also be read through the processor port, it is important to note that the means of retrieving the data must be unique. Therefore, if the user is not using the Result Port Interface, but is reading result data through the processor port, RP_NXT and RP_SEL should be pulled low. This ensures that all result data remains in the Result Data register until read through the processor port. RP_NXT and RP_SEL should be pulled low to 0 volts through a pull-down resistor (typically 10k ohms). 4 Rev. 1a Pin Descriptions MU9C8338 10/100Mb Ethernet Filter Interface INCR (Increment Time Stamp Counters, Input, TTL) /WRITE (Processor Port Read/Write, Input, TTL) INCR is a user command to invoke the built-in purge routine. Both STCURR and STPURG 8-bit counters are advanced one count on the rising edge of INCR, and the time stamp stored with each LANCAM entry is compared with STPURG. Matching entries subsequently are purged or deleted. This pin must be configured, if it is required, by setting bit 2 and bit 3 in the System Target (STARG) register. Each counter can be incremented individually through the Processor Port. (see Operational Characteristics: STARG System Target Register Mapping). Read/Write determines the direction of data flow into or out of the MU9C8338 host processor interface. If /WRITE is LOW, the data is written into the register selected by A[7:0] and /PCS or /PCSS; if HIGH, the data is read from the register selected by A[7:0] and /PCS or /PCSS. A[7:0] (Processor Port Address, Input, TTL) Processor Address bus A[7:0] selects the MU9C8338 register accessed by the host processor. D[15:0] (Processor Port Data, Input/Output, Tri-state, TTL) Processor Data bus D[15:0] is the tri-state processor data bus for the MU9C8338. Host Processor Interface The Host Processor interface is asynchronous to the System Clock. This interface is controlled by the /PCS or /PCSS (whichever is appropriate) and PROC_RDY signals, which form the handshaking between the processor and the MU9C8338. This allows the end system to use a processor that runs at a different clock speed than the clock required by the MU9C8338. (see Timing Diagrams: Timing Data for Host Processor Interface). PROC_RDY (Processor Port Ready, Output, Tri-state, TTL) When reading from or writing to any MU9C8338 internal register, the PROC_RDY tri-state output goes LOW on the falling edge of /PCS or /PCSS. If it is a read cycle, PROC_RDY goes HIGH on the rising edge of SYSCLK once data is available. If it is a write cycle, PROC_RDY goes HIGH on the rising edge of SYSCLK when the internal register is ready to accept data. /PCS (Processor Port Chip Select, Input, TTL) Processor Chip Select is taken LOW by the host processor to gain access to the MU9C8338 Port or Chip registers. /INTR (Processor Interrupt, Output, TTL) /INTR goes LOW to signal that one of the four configurable interrupt conditions have been satisfied. The four separate conditions are configured by setting bits in the appropriate register. /INTR returns HIGH when the appropriate register is read. See Table 2 for details of which interrupt conditions are possible and which register must be read to reset the /INTR pin to HIGH. /PCSS (Processor Port Chip Select System, Input, TTL) Processor Chip Select System is taken LOW by the host processor to gain access to the MU9C8338 System registers or to access the LANCAM. Table 2: /INTR Settings Register Required to To clear /INTR, Read Select Interrupt Condition Interrupt Condition PTARG RSTAT. Please note that /INTR will only return The MII port has parsed an incoming packet. The DA lookup HIGH when all possible result data has been read. has been performed and the result data is available to be read from RDAT register. STARG SSTAT. Please note that /INTR will only return HIGH when the LANCAM has become not full. Therefore, after the SSTAT register read has confirmed the status of the interrupt condition, an entry should be removed from the LANCAM by using the PURGE sequence. Rev. 1a 5 The /FF output from the LANCAM(s) has indicated that the LANCAM is full. When reading the SSTAT register, a full condition is indicated by bit 0 = 0. MU9C8338 10/100Mb Ethernet Filter Interface Pin Descriptions LANCAM Interface /FI (LANCAM Bus Full Flag, Input, TTL) See Timing Diagrams: Timing Data for LANCAM Interface. The /FI LANCAM Full flag input is used to indicate to the MU9C8338 the condition of the LANCAM Full flag. The /FF output from the LANCAM should be connected to this pin. If more than one LANCAM is used, /FI should be connected to the /FF of the last device in the daisy chain. DQ[15:0] (LANCAM Bus, Input/Output, Tri-state, TTL) DQ[15: 0] tri-state 16- bit bus transfers data or instructions between the MU9C8338 and the LANCAM. When no data or instructions are present on the bus, the bus goes HIGH-Z. /RESET_LC (Reset LANCAM, Output, TTL) /RESET_LC is LOW whenever /RESET is LOW. It is taken HIGH only by writing to bit 0 in the System Dynamic Configuration (SDCFG) register. See SDCFG register information. /E (LANCAM Bus Enable, Output, Tri-state, TTL) The /E chip enable is taken LOW to initiate LANCAM activity. On LANCAM read cycles, /E is taken HIGH after the MU9C8338 registers the data. Test /W (LANCAM Bus Write, Output, Tri-state, TTL) SC_ENB (Scan Enable) The MU9C8338 outputs /W (read/write select) to control the direction of data flow between the MU9C8338 and the LANCAM. If /W is LOW at the falling edge of /E, the MU9C8338 outputs data on the DQ[15:0] bus for the LANCAM as input. When /W is HIGH at the falling edge of /E, the LANCAM outputs data on the DQ[15:0] bus to the MU9C8338 as input. Enables scan chain for testing. Pin may be left unconnected or tied to GND for normal operation /CM (LANCAM Bus Command Mode, Output, Tri-state, TTL) Note: Please refer to IEEE Standard 1149.1 for information on using the mandatory JTAG functions. The optional HIGH-Z function is implemented and may be activated by writing 0011 to the JTAG Instruction register. TST_HLD, TST_HLD2 (Test Hold) Enables test mechanism. Pins may be left unconnected or tied to GND for normal operation. JTAG The MU9C8338 outputs /CM Data/Command Select to control whether the LANCAM interprets the DQ[15:0] bus contents as command information or data. If both /CM and /W are LOW at the falling edge of /E, the MU9C8338 outputs an instruction for the LANCAM to execute or a value for one of the LANCAM configuration registers. If /CM is LOW while /W is HIGH, then the LANCAM will output data from one of its configuration registers to the MU9C8338. If /CM is HIGH while /W is LOW, the MU9C8338 will output data for the LANCAM to place in one of its data registers or memory. If /CM is HIGH while /W is HIGH, the LANCAM outputs data from one of its data registers or memory to the MU9C8338. /TRST (JTAG Reset, Input) The /TRST is the Test Reset pin. It is internally pulled up with a 3k minimum resistor. It must be tied to /RESET or tied LOW when the JTAG port is not used. TMS (JTAG Test Mode Select, Input) The TMS input is the Test Mode Select input. This pin is internally pulled up with a 3k minimum resistor. TCK (JTAG Test Clock, Input) The TCK input is the Test Clock input. It can be tied at a valid logic level 1 when not in use. This pin is internally pulled up with a 3k minimum resistor. /EC (LANCAM Bus Enable Chain, Output, Tri-state, TTL) TDI (JTAG Test Data Input, Input) The Daisy Chain Enable signal performs two functions. The /EC signal enables the LANCAMs /MF output to show the results of a comparison. If /EC is LOW at the falling edge of /E in a cycle, the /MF flag output is enabled; otherwise, /MF is held HIGH. The /EC signal also enables the /MF-/MI daisy chain that serves to select the device with the highest-priority match in a string of LANCAMs. The TDI input is the Test Data input. This pin is internally pulled up with a 3k minimum resistor. TDO (JTAG Test Data Output, Output) The TDO output is the Test Data output. Power and Ground VDD, GND (Positive Power Supply, Ground) These pins are the power supply connections to the MU9C8338. VDD must meet the voltage supply requirements in the Operating Conditions section relative to the GND pins, which are at 0 Volts (system reference potential), for correct operation of the device. /MI (LANCAM Bus Match Flag, Input, TTL) The /MI LANCAM Match flag input is used to indicate to the MU9C8338 the conditions of the LANCAM Match flag. The /MF output from the LANCAM should be connected to this pin. If more than one LANCAM is used, /MI should be connected to the /MF pin of the last LANCAM in the daisy chain. 6 Rev. 1a Functional Description MU9C8338 10/100Mb Ethernet Filter Interface FUNCTIONAL DESCRIPTION Internal Functions MU9C8338 internal functions are shown in Figure 3. Before discussing the individual blocks, the underlying principles are presented. The network interface is monitored for network and data symbol errors. Receive data [RXD] is clocked into a register using the 25MHz recovered clock for 100Base-X or 2.5MHz clock for 10Base-X. The Preamble and Start Frame delimiter (SFD) are scanned to locate the Destination address (DA) and the Source address (SA). The LANCTL block generates the command cycles and operational codes to complete CPU-requested actions and network-generated requests. The CPU must initialize the CAM, write the permanent station list, and initiate other housekeeping functions. Network traffic initiates DA filtering, SA learning, and time stamp updates. All state-machines required for real-time operations are implemented in the ASIC hardware; the host CPU runs the non-time-critical initialization routine. The MU9C8338 schedules communication with the host processor and the CAM through an arbitration process. Once the system is initialized and configured, highest-priority is given to network traffic. Information on the LANCAM operation and instruction set can be found in the appropriate LANCAM data sheet for each device. LANCAM Bus FRX_ER REJ TP_SD Tag Port Interface LANCAM Interface TP_DV RX_DV RX_ER RXD[3:0] RX_CLK MII Interface MAC Receiver CRS COL TCK LANCTL CPU Bus Result Bus Host CPU Interface Result Bus Interface Configuration, Control and Status Registers TDI TDO /TRST FIFO Figure 3: Functional Block Diagram Rev. 1a TMS JTAG Controller 7 MU9C8338 10/100Mb Ethernet Filter Interface Functional Description Destination Address Processing 2. External circuitry can monitor the status of the Result Port Data valid (RP_DV) output pin. This output indicates that there is a result available in the internal register which can be read through the Result port. The external circuitry can read the data by asserting the Result Port Select (RP_SEL) pin. Assertion of Result Port Next (RP_NXT) clears the value and advances the next entry if there is one available. Once configured, the MU9C8338 will extract the DA from the frames that are received through the MII port. An automatic address processing function is subsequently triggered. Once the DA processing function is triggered, the frame is monitored to detect whether it is a broadcast, multicast, or unicast frame and the appropriate actions are taken. DA processing consists of the following actions: • Packets are characterized as Broadcast, Multicast, or Unicast types. • Unicast packets initiate a search of the CAM for existing entries. • If a DA match is found, the Port ID read from the CAM is compared to the Source Port ID. If the Source Port ID and Destination Port ID match, the frame is rejected. If the Port IDs are different, the Tag information is made available for MACs that support Tag switching, through the Tag port. • If the MU9C8338 rejects the frame, it asserts the Reject output pin (REJ) and forces the MII RX_ER output (FRX_ER) HIGH for the MII Port. This causes the MAC to discard the frame. • • Source Address Processing Once configured, the MU9C8338 also will perform SA processing functions after the address information has been extracted from a received frame. The SA of each arriving frame is stored by the MU9C8338 for further processing, along with the port ID and the current time stamp. Note that at start-up, permanent addresses and their Port ID are loaded into the LANCAM through the CPU port; as message traffic proceeds, new addresses are learned and added to the LANCAM database, and aged addresses are purged. SA processing consists of the following actions: Once the DA processing function is complete, the MU9C8338 stores the result. This result indicates the characterization of the processed frame. (Broadcast, Multicast, or Unicast) and the Source Port ID. Additionally, if a unicast frame was processed, the result of the search and the port ID of the DA is also stored. Finally, the detail of whether the Destination port and the Source port are identical is also stored. The result of DA processing may be read in two ways. 1. An interrupt may be sent to the host processor indicating that there is a result available. The host processor would read the result from an internal Result Data register. • The SA field is collected and temporarily stored. Note the SA cannot be a Broadcast or Multicast address by definition. • When the complete packet has arrived, the CRC field is checked and the length of the packet is checked. Any errors result in no further SA processing. • If the packet did not contain any errors, (or the CRC check facility is disabled), the SA field is compared with the address fields that are stored in the LANCAM. • If a match is found, the Port ID and time stamp for that entry are updated. If no match is found, the SA is added to the CAM, along with the current time stamp and the Port ID assigned to that particular Source port. Functional Blocks The building blocks that make up the MU9C8338 are shown in Figure 3, and their functions are described by the following. the RX_ER pin, is forced to HIGH at the same time. If the DA is matched in the LANCAM, the TP_DV pin is asserted and the destination port ID, high-order bit first, is clocked out through the TP_SD pin transitioning after the RX_CLK rising edge. MII Interface (MII Port) The incoming asynchronous receive data is registered for subsequent processing. MU9C8338 internal processing is synchronous with the system clock. MAC Receiver This block performs tasks that are a subset of the Ethernet MAC. It detects errors, (CRS, COL, RX_ER, and Runt Frame), determines the start of frame, parses addresses, computes the CRC for 10Base-X packets, and formats the 4-bit nibbles into 48-bit SA and DA registers. Tag Port Interface (Tag Port) Rejection of a packet is indicated by the assertion of REJ. The FRX_ER line, which otherwise reflects the state of 8 Rev. 1a Functional Description MU9C8338 10/100Mb Ethernet Filter Interface MAC Address Storage If the MAC address shown in Figure 4 is added to the database by the MU9C8338, it is stored as follows: When the MU9C8338 performs an SA processing function, it automatically extracts the MAC address from the packet. The database is searched and the MAC address is added to the LANCAM database if necessary. Similarly, when a DA processing function is performed, the MU9C8338 automatically searches the database for the extracted DA MAC address. • • • • It is important that the user is aware of the byte ordering of the 48-bit MAC address when it is stored in the LANCAM database. This is because the user must byte-order MAC addresses identically when a database entry is to be manually added or deleted. Similarly, if the user wishes to read out a MAC address, they should also be aware of the byte ordering when the relevant data registers are read. Segment 3 = 6002h Segment 2 = 128Ch Segment 1 = 5634h Segment 0 = Associated data (permanent bit, time stamp and port ID) If the user wishes to use the built-in routines to manually add, delete, or read MAC addresses from the database, the System CAM Word registers (SCDW) are used as shown in Figure 5. It shows how the MAC address, used as an example in Figure 4, would be transferred using the SCDW registers. If the user intended to delete the MAC address, the SCDW registers would be written as shown in item 1 and the SDO_DELETE routine would be invoked. Throughout this data sheet MAC addresses are shown as bit 47 being the most significant bit, which is placed on the left. Similarly, bit 0 is shown as the least significant bit and placed on the right. Using this notation, the Individual/Group (I/G) bit subfield would be shown as bit 40. This bit would be the first bit of an address transmitted onto the serial network and also the first bit received. The IEEE 802.3 refers to the I/G bit subfield as bit 0. If the bit is set to 1, it indicates that the address is a group address. Conversely, if the bit is set to 0, it indicates it is an individual address. Figure 4 shows a typical 48-bit MAC address used in Ethernet or IEEE 802.3 networks. If the user intended to add the address manually, the SCDW registers would be written as shown in item 2 and the SDO_ADD routine would be invoked. Finally, if the user intended to read an entry, the SDO_READ routine would be invoked and the address would be read from the SCDW registers as shown in item 3. The built-in routines are explained more fully later in this document. MAC Address 47 40 39 : 02 32 60 31 : 24 8C 23 : 16 12 15 : 08 34 07 : 1 00 56 SDO_DELETE SCDW3 SCDW2 SCDW1 SCDW0 not used 6002 128C 5634 SCDW3 SCDW2 SCDW1 SCDW0 6002 128C 5634 assoc. data SCDW3 SCDW2 SCDW1 SCDW0 6002 128C 5634 assoc. data 2 0000 0010 SDO_ADD IEEE bit 0 I/G bit 3 SDO_READ LANCAM Database Entry seg 3 seg 2 seg 1 seg 0 6002 128C 5634 assoc. data Figure 5: SCDW Register Order Figure 4: MAC Address Byte Order Rev. 1a 9 MU9C8338 10/100Mb Ethernet Filter Interface Functional Description LANCAM Sequencer Aging and Purging The sequencer is a state machine that generates the control signals required for CAM read and write cycles, and multiplexes appropriate data and operational codes to LANCAM data lines. The sequencer operations are: Time stamps are added automatically to the LANCAM entries by the MU9C8338. Two counters are provided to store the current and purge time stamps. The Current Time Stamp is the 8-bit value that automatically is added or updated when a SA processing function is completed. The Purge Time stamp is the 8-bit value that is compared with the 8-bit time stamps stored with the LANCAM entries during purges. The initial value of the counters are STPURG = 01H and STCURR = 00H. The counters may be incremented individually through the CPU commands. Either the CPU or the external INCR pin can increment both counters simultaneously. Whenever STPURG is incremented, a purge operation is initiated. The counters roll-over so the times should be thought of as slots to be used and reused in a round-robin fashion. • Execute LANCAM cycles for CPU port • DA processing • SA processing • Purging of aged entries • Add Permanent Entries to LANCAM database • Delete Entries from LANCAM database • Read Entries from the LANCAM database. FIFO and Result Port When the DA sequence is executed, the result is stored in a FIFO for later collection by either the CPU over the Processor Bus from the Result register, or by external hardware attached to the Result port. The existence of two counters (time stamps) allows the data-aging rate to be varied according to network traffic density. When the difference between the counters is large (default), the address data is purged less frequently; shrinking the counter difference causes the data to age sooner. Incoming SAs are time stamped or updated with the current value of STCURR. Older entries time stamped with the same value as STPURG are purged upon the increment of STPURG. The permanent address database built using the Add routine is not affected by time stamps. Initialization At power-up or after a hardware reset, the host processor should download the LANCAM configuration and register contents to enable the LANCAM to operate as required. The LANCAM initialization and configuration that is downloaded by the CPU should do the following: The individual Page Address registers of each LANCAM in the LANCAM chain should be set with appropriate values. The Foreground Register set should be set to allow normal DA and SA filtering. This involves setting the Control, Segment Control, and Mask registers to suit. The Background Register set should be set to allow the background management tasks to be preformed. This involves setting the Control, Segment Control, and Mask registers to suit. The LANCAM should be configured to store 48-bit MAC addresses in segments 3–1 and the associated data in segment 0. The allocation of bits in the 16-bit associated data segment is specified in the description of the SCDW0 Association Data register. The data age gap is effectively the length of time an entry will exist in the LANCAM database if it is not updated. This gap is the difference between the STCURR and STPURG counter. When network traffic is low, STCURR may be increased in order to increase the length of time an entry will exist. When network traffic is high, STPURG may be increased in order to decrease the length of time an entry will exist. When STPURG is incremented older entries are also purged from the database if their time stamp matches STPURG. STCURR and STPURG may be incremented simultaneously to keep the data age gap constant and to purge the older entries from the database. Permanent Station Addresses To maintain "current" time, STCURR is advanced in any one of the three ways: Using the Add Entry routine, the nonvolatile station list can be added to the LANCAM by the host processor. The Associated Data bit 15 is set to 1, to indicate a permanent entry. Permanent entries are removed only with the Delete Entry routine. 1. The CPU issues an increment STCURR command. Only the STCURR counter is increased. 2. The CPU issues an increment STCURR and STPURG command. Both counters are increased simultaneously. Management The Delete Entry and Read Entry routines are available for database maintenance and housekeeping. Although permanent addresses cannot be purged, they can be deleted using the management Delete Entry routine. 3. The INCR pin is asserted. Both counters are increased simultaneously. To maintain "purge" time and to purge aged CAM entries, STPURG is advanced in any one of the following three ways: 10 Rev. 1a Functional Description MU9C8338 10/100Mb Ethernet Filter Interface 1. The CPU issues an increment STPURG command. Only the STPURG counter is increased. purged automatically without further involvement. If the CAM Full flag is asserted, an interrupt (if configured) to the CPU is generated. Assume that STCURR = F0H, and STPURG = F1H. The CPU may initiate an increment STPURG operation so that older entries may be purged. This increases the value of STPURG to F2H. A purge operation is initiated that will eliminate all CAM entries with time stamp = F2H. 2. The CPU issues an increment STCURR and STPURG command. Both counters are increased simultaneously. 3. The INCR pin is asserted. Both counters are increased simultaneously. If the STPURG value was incremented, the MU9C8338 initiates a purge operation using the new STPURG value. STPURG should never be incremented to equal STCURR. The CPU should monitor the System Status register, and if the CAM is still full, the operation can be repeated until entries are purged and the CAM Full flag is de-asserted. The time stamping of LANCAM entries and the procedure required to initiate a purge is explained as follows: Assume that STPURG was incremented 128 times. This would purge the oldest half of the time stamp values and thus, reduce the maximum age to half the previous 255. This can be accomplished without disturbing ongoing normal increment time stamp update operations. 1. Incoming SAs to be learned are associated with the most recent STCURR value. The time stamps of each SA already in the CAM database is updated to STCURR, each time a packet with that SA is processed. 2. STPURG and STCURR are advanced as described earlier to purge entries that have the same time stamp value as STCURR. CRC and Other Data Integrity Checks For 10Base-X packets, a 32-bit cyclic redundancy check is calculated from the data frame (exclusive of the preamble and start frame delimiter) and compared to the frame check sequence (FCS). This check is only performed if the PCFG register is set accordingly to enable the facility. Following is an example, beginning with the defaults, initially, STCURR = 00H and STPURG = 01H. As packets arrive, learned or refreshed, SAs are labeled with STCURR = 00H. (At that moment STPURG = 01H). Increment, either hardware or software initiated, results in STCURR = 01H and STPURG=02H. Also, according to the MII interface specifications, the RX_ER, CRS, and COL signals are monitored and error conditions are recognized. If any error is identified, the source address is not processed. This is intended to maintain the integrity of the LANCAM database. A purge operation is initiated that will eliminate all CAM entries with time stamp = 02H. The oldest entries (SAs) that have not been updated in 255 increment times are Rev. 1a 11 MU9C8338 10/100Mb Ethernet Filter Interface Software Model SOFTWARE MODEL System Registers a Processor Chip Select System signal (/PCSS). The lowest address in this application-defined address range, shown in Table 3, is referred to as SYSTEM_BASE. One set of registers is available to address the MU9C8338 component and its attached LANCAMs as a single system. The application decodes one range of addresses to produce Table 3: System Registers Name R/W Description Address SSTAT R System Status SYSTEM_BASE + 0H Default Settings N/A SSCFG W System Static Configuration SYSTEM_BASE + 1H 0000H SDCFG W System Dynamic Configuration SYSTEM_BASE + 2H 0H STARG W System Targets SYSTEM_BASE + 3H 0H SCDW0 R/W CAM Data Word 0 SYSTEM_BASE + 5H N/A SCDW1 R/W CAM Data Word 1 SYSTEM_BASE + 6H N/A SCDW2 R/W CAM Data Word 2 SYSTEM_BASE + 7H N/A SCDW3 R/W CAM Data Word 3 SYSTEM_BASE + 8H N/A STPURG R Time Stamp to Purge SYSTEM_BASE + 9H 01H STCURR R Time Stamp Current SYSTEM_BASE + AH 00H SMXSADACYC W Max SA/DA Cycle SYSTEM_BASE + CH 20H N/A SCSWB R CAM Status Word B SYSTEM_BASE + DH SCSWA R CAM Status Word A SYSTEM_BASE + EH N/A SSAU W SA Update Op-Code SYSTEM_BASE + 10H 0368H SSAL W SA Learn Op-Code SYSTEM_BASE + 11H 0334H SLCCS W LANCAM Control Signals SYSTEM_BASE + 12H 0FH SDO_DELETE W Perform Delete Sequence SYSTEM_BASE + 20H N/A SDO_ADD W Perform Add Sequence SYSTEM_BASE + 21H N/A SDO_READ W Perform Read Sequence SYSTEM_BASE + 24H N/A SDO_INCTS W Perform Increment STCURR Sequence SYSTEM_BASE + 26H N/A SDO_INCPR W Perform Increment STPURG Sequence SYSTEM_BASE + 27H N/A SDO_INCTSPR W Perform Increment STCURR & STPURG Sequence SYSTEM_BASE + 28H N/A SDO_SETADD W Perform SetAddr. Sequence SYSTEM_BASE + 29H N/A System Status Register Table 5 shows a CAM_SPD setting for a 120 ns speed grade LANCAM component. 120 ns LANCAMs are no longer available and it is recommended that when using a 90 ns LANCAM, set SSCFG[3:1] to 000. This setting accommodates most applications and has the added benefit of using the least amount of power. The System Status register (SSTAT) provides a CPU visibility into the state of the LANCAM array. The /FF bit indicates the current state of the Full Flag output of the LANCAM array. The /MF bit indicates the Match Flag output of the LANCAM array. Table 5: SSCFG: System Static Configuration Register Table 4: SSTAT: System Status Register Mapping Name /FF /MF Bits 0 1 Description Full Flag from LANCAM array Name Bits Description Match Flag from LANCAM array CAM_SPD 3:1 000 = 120 ns (90 ns) 001 = 90 ns 010 = 70 ns 011 = RESERVED 100 = RESERVED 101 = RESERVED 110 = RESERVED 111 = RESERVED System Static Configuration Register The System Static Configuration register (SSCFG) allows the CPU to configure the LANCAM array. These are set and forget values. The CAM_SPD sets the controller to match the speed grade of the LANCAM components attached. A 50MHz clock is assumed. The INV_REJ bit configures the REJ port to be active LOW instead of active HIGH. INV_REJ 12 0 0 = Active HIGH 1 = Active LOW Rev. 1a Software Model MU9C8338 10/100Mb Ethernet Filter Interface The System Dynamic Configuration Register System CAM Word Registers The System Dynamic Configuration Register (SDCFG) allows the CPU to control the MU9C8338 /RESET_LC output pin. This pin normally would be connected to the /RESET input of all the LANCAMs in a chain of LANCAMs. When the RST_CAM bit is logic 0 the /RESET_LC output is LOW and when the RST_CAM bit is logic 1 the /RESET_LC output is HIGH. Note that if a hardware reset is performed by taking the MU9C8338 /RESET input LOW, /RESET_LC is asserted LOW. However once /RESET has been taken HIGH, /RESET_LC remains LOW, holding the LANCAM(s) in the reset condition. The RST_CAM bit must be set to 1 to return /RESET_LC HIGH and hence allow the LANCAMs to operate normally. When using the series of built-in routines, the SCDW registers are used to transfer data. The bit mapping is different for each routine. Please refer to the appropriate mapping for the relevant routine. Also refer to section MAC Address Storage on page 9. Table 8: SCDW: Data Mapping Contents Name Table 6: SDCFG System Dynamic Configuration Register Name Bits RST_CAM 0 0: Reset 1: Normal Operation The System Target Register (STARG) allows the CPU to determine how events are to be handled. The INCR_PIN bits enable or disable to INCR hardware input. The EN_FF_INT bits enable or disable whether the LANCAM /FF output will produce an interrupt when the LANCAM is full. Table 7: STARG: System Target Register Mapping Bits Description 3:2 00: Disable INCR pin 01: RESERVED 10: RESERVED 11: Enable INCR pin EN_FF_INT 1:0 SCDW0 [15:0] MAC_AD [15:0] Associated data SCDW1 [15:0] MAC_AD [31:16] MAC_AD [15:0] SCDW2 [15:0] MAC_AD [47:32] MAC_AD [31:16] SCDW3 [15:0] Not used MAC_AD [47:32] SCDW0 has an additional purpose that allows the associated data to be read after a DA processing function has completed. After every DA is processed, the associated data read from the LANCAM is placed in the SCDW0 register, Therefore, if the system software reads the SCDW0 register after a packet is processed, the Port ID, Timestamp, and permanent bit information may be found. System Target Register Name Other Routines During the LANCAM initialization and configuration process, SCDW0 is used with SLCSS to configure the LANCAMs. When SCDW0 is used to transfer associated data, the bit mapping is as shown in Table 9. Description INCR_PIN SDO_DELETE Sequence Table 9: SCDW0: Associated Data Register Mapping 00: Disable /FI interrupt 01: RESERVED 10: Enable /FI interrupt 11: RESERVED Name Bits Time_Stamp 7:0 Port_ID 13:8 Reserved 14 Permanent 15 System Time Stamp Purge Register The System Time Stamp Purge register (STPURG) stores the purge time stamp value. It is a read-only register, but it may be incremented by writing an arbitrary value to the SDO_INCPR register. Table 10: STPURG: System Time Stamp Purge Register Mapping Rev. 1a 13 Name Location Purge Time Stamp Initial Value=01H bits [7:0] MU9C8338 10/100Mb Ethernet Filter Interface Software Model System Time Stamp Current Register System LANCAM Control Register The System Time Stamp Current register (STCURR) stores the current time stamp value. It is a read-only register, but it may be incremented by writing an arbitrary value to the SDO_INCTS register. The System LANCAM Control register enables the host CPU to initialize and configure the LANCAMs. During normal system operation bit 4 should be set to zero to disable the LANCAM control bits. When the host CPU wishes to write to the LANCAM (at initialization) bit 4 is set to one while setting bits 3–0 to the values required for a LANCAM data or command cycle. The data or command to be transferred to the LANCAM should be loaded into the SCDW0 register prior to the cycle being initiated. Each LANCAM cycle is a four step process and is described as follows: Table 11: STCURR: System Time Stamp Current Register Mapping Name Location Current Time Stamp Initial Value=00H bits [7:0] System Maximum SA/DA Cycles Register This register establishes the number of clock cycles that DA and SA operations will take. This is based on the speed of the attached LANCAM components. 1. Load SCDW0 with 16-bit data or command. 2. Load SLCCS with cycle value to take /E HIGH. Table 12 shows a CAM_SPD setting for a 120 ns speed grade LANCAM component. 120 ns LANCAMs are no longer available and it is recommended that when using a 90 ns LANCAM, set the register to 27H. This setting accommodates most applications and has the added benefit of using the least amount of power. 3. Load SLCCS with cycle value to take /E LOW. 4. Load SLCCS with cycle value to take /E HIGH. For example a TCO CT command cycle would be SCDW0= 0200H, SLCCS = 19H, 11H, 19H. Table 15: System LANCAM Control Signal Register Mapping Table 12: SMXSADACYC: System Maximum SA/DA Cycles Register Mapping Name /EC Bits Description 0 Enable Chain Command Mode Name Bits Description /CM 1 CAM_SPD 5:0 27H = 120 ns (90 ns) 25H = 90 ns 20H = 70 ns others = RESERVED /W 2 READ/WRITE /E 3 Enable ENABLE 4 0 => (Normal Operation) Disable Bits [3:0] 1 => Processor Port CAM access System Status Word Registers System Command Registers The Status Word registers store the 32-bit LANCAM status register value after the LANCAM entry read routine is performed. SCSWA stores the lower 16 bits of the status register and SCSWB stores the upper 16 bits. The System Command registers allow the CPU to execute transactions applied to a LANCAM array. There are seven command registers and they have the prefix SDO. Each register is used to initiate a built-in routine that allows general LANCAM housekeeping tasks to be performed. The housekeeping sequence is initiated by writing any arbitrary value to the appropriate register. Descriptions of the routines performed when SDO_ADD, SDO_DELETE, SDO_READ, and SDO_SETADD are accessed as shown in Built-in Routines. SDO_INCTS, SDO_INCPR, and SDO_INCTSPR control the time stamp counters. SDO_INCPR and SDO_INCTSPR also cause the purge routine described in Built-in Routines to be initiated. The MU9C8338 may hold PROC_RDY inactive, if it is processing any high-priority DA and SA searches. The registers and their address values can be found in Table 3. Table 13: SCSW: System Status Word Register Mapping Register LANCAM Status Register Bits SCSWA [15:0] 15:0 SCSWB [15:0] 31:16 System SA Op-Code Registers The SA Op-Code registers store the LANCAM Op-Code values required when the MU9C8338 performs the automatic SA search routine. SSAU stores the code required to update an SA and SSAL stores the code required to learn an SA. These registers have the default values required to perform the routines described in Built-in Routines. Table 14: System Op-Code Register Mapping Register Bits Default Op-Code SSAU 15:0 0368H, MOV_HM CR, MR1 SSAL 15:0 0334H, MOV_NF CR, V 14 Rev. 1a Software Model MU9C8338 10/100Mb Ethernet Filter Interface Chip Registers application-defined address range is referred to as CHIP_BASE. Table 16 shows the Chip registers and their address values. The system should decode one unique range of addresses to produce an individual chip select (/PCS) signal for the MU9C8338 component. The lowest address in this Table 16: Chip Registers Name R/W Description Address Default CHIPROL W Chip Role CHIP_BASE + 1H 1H CHIPVER R Chip Version CHIP_BASE + 2H 01H RSTAT R Result Status CHIP_BASE + 3H N/A RDAT R Result Data CHIP_BASE + 4H N/A Chip Role Register Result Status Register The Chip Role register stores the designation of the MU9C8338. The Result Status register is used to convey whether the Result Data register stores any valid result data. Reading this register resets the /INTR pin if it was asserted because of result data being processed (after all valid result data is read). Note: The MU9C8338 device must have this register loaded with 0H prior to any System register accesses. If any System registers are accessed while this register still contains the default setting of 1H, the 8338 will ignore them. Therefore, the system software MUST configure the CHIPROL register before any System register accesses are made. Table 19: RSTAT: Result Status Register Mapping Table 17: CHIPROL: Chip Role Register Mapping Name Bits Function Description CHIPROL 2:0 Chip Must be set to 0H before System register access. Name Bits RDATA 0 Description 1: Result Data available 0: No Result Data Result Data Register The Result Data register stores the result of the automatic SA and DA processing. Table 20: RDAT: Result Data Register Mapping Chip Version Register Name The Chip Version register stores the version of the chip. The value of this read-only register will be incremented for each subsequent release. Source Port ID Bits Description 15:10 6-bit Port ID Packet Type 9:8 Match Found 7 Table 18: CHIPVER: Chip Version Register Mapping Name Bits Description CHIPVER 4:0 Chip Version Destination Port ID Destination Port = Source Port Rev. 1a 15 6:1 0 00: Broadcast 01: Multicast 10: Unicast 11: RESERVED 0: Match Not Found 1: Match Found 6-bit Port ID 1: Ports are the same 0: Ports are different MU9C8338 10/100Mb Ethernet Filter Interface Software Model Port Registers The MU9C8338 supports one port. This port is addressed as an offset to the CHIP_BASE for the MU9C8338 in which it is implemented. Table 21 shows the Port registers and their address values. Table 21: Port Registers Name R/W Description Address Default PID W Port ID CHIP_BASE + 40H 0H PCFG W Configure Port CHIP_BASE + 41H 0H PTARG W Target Port CHIP_BASE + 42H 0H Port ID Register Port Target Register The Port ID register stores the ID associated with the MII port. The 6-bit value is the value added to LANCAM entries when the SA search routine is performed. The Port Target register allows the operating conditions of the port to be set. Bits 3:0 are Reserved and should be set to 0H. Bits 5 and 4 determine what action is taken after the DA is extracted from a frame that was received on the MII port. Bits 7 and 6 determine what action is taken after the SA is extracted from a frame that was received on the MII port. Table 22: PID: Port ID Register Mapping Name Bits Description PORT_ID 5:0 6-Bit Port ID Table 24: PTARG: Port Target Register Mapping Port Configure Register The Port Configure register enables or disables the 10Base-X CRC check facility. If the facility is enabled, 10Base-X packets found to have CRC errors will not have their Source address processed. If the facility is disabled, the Source address of 10Base-X packets are processed regardless of CRC errors, assuming the PTARG register is configured appropriately. This register only enables a CRC check for 10Base-X packets. The facility should be disabled (bit 1=0) for 100Base - X packets. Table 23: PCFG: Port Configure Register Mapping Name Bits Name Bits Description SA 7:6 00: SAs are ignored 01: SAs are processed 10: RESERVED 11: RESERVED DA 5:4 00: DAs are ignored 01: DAs are processed 10: DAs are processed and trigger a CPU interrupt 11: RESERVED RESERVED 3:0 Must be set to 0H. All other values: RESERVED Description RESERVED 0 Write 0 Enable CRC Check 1 0 = Disable (default) 1 = Enable 16 Rev. 1a Software Model MU9C8338 10/100Mb Ethernet Filter Interface Built-In Routines Initiate Set Address Sequence The MU9C8338 contains a series of built-in routines that can be invoked or triggered by writing any arbitrary value to the appropriate System Command register. There are five built-in routines that can be used to perform general system management functions. Additionally there are two other routines that are used to alter the data-age gap between the two time stamp counters. Details of the built-in routines that are performed when invoked can be found in Applications: Built-In Routines. Details of the appropriate register for each routine can be found in Operational Characteristics: Software Model-System Registers. The following explains the steps that are required when using each of the seven routines: 1. Write the desired address of the CAM entry to be read into SCDW0. 2. Initiate the set address sequence by writing any value to the SDO_SETADD register. Note: This sequence should be initiated prior to the read entry sequence being initiated in order to specify the address that should be read. Initiate Read Entry Sequence The Read Entry Sequence should only be used for diagnostic purposes when the MU9C8338 is not processing Destination addresses. Therefore, if the user must read entries while packets are being processed, the DA processing function should be disabled prior to invoking the sequence. Once the entry has been read, the DA processing function should be enabled to return the MU9C8338 to normal. Increment the Current Time Stamp Initiates the STCURR increment sequence by writing any arbitrary value to SDO_INCTS. Increment the Purge Time Stamp Initiates the STPURG increment sequence by writing any arbitrary value to SDO_INCPR. 1. Write the Page Address to the CAM device to be read into SCDW0. This should match the value that was configured during any CAM configuration routine. Increment the Current Time Stamp and Purge Time Stamp 2. Initiate the read entry sequence by writing any value to the SDO_READ register. Initiates the STCURR and STPURG increment sequence by writing any arbitrary value to SDO_INCTSPR. 3. The specified entry can be read from SCDW3, 2, and 1 and the associated data can be read from SCDW0. Bits 47–32 should be read from SCDW 3, bits 31–16 from SCDW2, and bits 15–0 from SCDW1. Initiate Delete Sequence 1. Write the address to be deleted into System Command Data Word (SCDW) 2, 1, and 0. Bits 47–32 should be written into SCDW 2, bits 31–16 into SCDW1, and bits 15–0 into SCDW0. 4. The CAM Status Register bits 31–16 associated with the entry can be read from the System CAM Status Word B (SCSWB) register. 2. Initiate the delete sequence by writing any value to the SDO_DELETE register. 5. The CAM Status Register bits 15–0 associated with the entry can be read from the System CAM Status Word A (SCSWA) register. Initiate Add Sequence 1. Write the address to be added into System Command Data Word (SCDW) 3, 2, and 1. Bits 47–32 should be written into SCDW 3, bits 31–16 into SCDW2, and bits 15–0 into SCDW1. Note: This sequence should be initiated in conjunction with the set address sequence in order to specify the address that should be read. If successive entries are to be read, SDO_SETADD is used only once as the CAM Address register will increment automatically. 2. Write the associated data for this entry into SCDW0. The port ID should be set in bits 13–8 and bit 15 should be set HIGH if the entry is to be permanent. 3. Initiate the add sequence by writing any value to the SDO_ADD register. Rev. 1a 17 MU9C8338 10/100Mb Ethernet Filter Interface Applications APPLICATIONS Cascading of LANCAMs The MUSIC MU9Cx480B LANCAM family can be vertically cascaded to allow long station lists to be implemented. The MU9C8338 LANCAM interface timing allows up to four LANCAMs to be cascaded as shown in Figure 6. and /MI inputs respectively. When cascading LANCAMs, a match flag ripple delay is introduced. Care must be taken to ensure that the tMIVKH setup time is satisfied in multiple LANCAM designs. Please refer to the LANCAM B Family Data Sheet for a comprehensive description of the device and how to calculate the ripple delay. When LANCAMs are cascaded in this way, the system Full and Match flags are connected to the MU9C8338 /FI DQ[15:0] /E /MI Vdd /FI Gnd CAM 0 /W /FF /CM /EC /RESET /MF DQ[15:0] /MI /E /FI CAM 1 /W /FF /CM /EC /RESET /MF DQ[15:0] /MI /E /FI CAM 2 /W /FF /CM /EC /RESET /MF DQ[15:0] /MI /E /FI CAM 3 /W /CM /FF System Full Flag /MF System Match Flag /EC /RESET Figure 6: LANCAM Cascading 18 Rev. 1a Applications MU9C8338 10/100Mb Ethernet Filter Interface Built-In Routines The MU9C8338 contains built-in LANCAM routines that perform all the necessary LANCAM operations. The DA and SA search routines are performed automatically by the device in order to provide the search result and update the address table. The other routines are invoked as described in Operational Characteristics: Built-in Routines. Notes: aaaaH = CAM Address value (Hexadecimal) ddddH = Data value (Hexadecimal) ppppH = CAM Page Address value (Hexadecimal) xxxxH = "Don’t Care" Table 25: Destination Address Search Routine Line /CM /W /E Cycle /EC 1 H L Short H Mnemonic DQ(15:0) xxxxH Description Dummy write to Segment 0 2 H L Short H ddddH Write 1st 16 bits to Segment 1 3 H L Short H ddddH Write 2nd 16 bits to Segment 2 4 H L Long L ddddH Write 3rd 16 bits to Segment 3 and compare 5 H H Long H ddddH Read Associated Data, FFFFH is no match Table 26: Source Address Search Routine Line /CM /W /E Cycle /EC 1 H L Short H Mnemonic DQ(15:0) xxxxH Description Dummy write to Segment 0 2 H L Short H ddddH Write 1st 16 bits to Segment 1 3 H L Short H ddddH Write 2nd 16 bits to Segment 2 4 H L Short L ddddH Write 3rd 16 bits to Segment 3 and compare If a match is found, update time stamp: 5a L L Long H MOV_HM, CR,MR1 0368H Move to Highest match through MR1 to update Time Stamp and Port ID. This command resides in SSAU (see System Op-Code Registers). H MOV_NF,CR,V 0334H Move SA to Next Free with Time Stamp and Port ID. This command resides in SSAL (see System Op-Code Registers). If no match is found, learn new address: 5b L L Long Table 27: Purge Routine Line /CM /W /E Cycle /EC Mnemonic DQ(15:0) 1 L L Short H SBR 0619H 2 H L Long H ddddH Purge time stamp value and compare 3 L L Long H VBC_ALM,E 043DH Mark all matching entries “Empty” 4 L L Short H SFR 0618H Select Foreground Register set Rev. 1a 19 Description Select Background Register set MU9C8338 10/100Mb Ethernet Filter Interface Applications Table 28: Add Permanent Entry Routine Line /CM /W /E Cycle /EC 1 H 2 H 3 4 5 Mnemonic DQ(15:0) Description L Short H ddddH Write Perm Bit and Port ID to Segment 0 L Short H ddddH Write 1st 16 bits to Segment 1 H L Short H ddddH Write 2nd 16 bits to Segment 2 H L Short H ddddH Write 3rd 16 bits to Segment 3 L L Long H MOV_NF,CR,V 0334H Move to Next Free Mnemonic DQ(15:0) Table 29: Delete Entry Routine Line /CM /W /E Cycle /EC 1 H L Short H xxxxH Dummy Write to Segment 0 2 H L Short H ddddH Write 1st 16 bits to Segment 1 3 H L Short H ddddH Write 2nd 16 bits to Segment 2 4 H L Short L 5 L L Long H VBC_HM,E Description ddddH Write 3rd 16 bits to Segment 3 and compare 042DH Set Highest Match to “Empty” Table 30: Set Address Register Routine Line /CM /W /E Cycle /EC Mnemonic DQ(15:0) 1 L L Short 2 L L Short Description H SBR 0619H Select Background Register set H TCO_AR 0220H Target Address register 3 L L Short H aaaaH Address value 4 L L Short H SFR 0618H Select Foreground Register set Table 31: Read Entries Routine Line /CM /W /E Cycle /EC Mnemonic DQ(15:0) 1 L L Short H SBR 0619H 2 L L Short H TCO_DS 0228H Target Device Select register 3 L L Short H ppppH Page Address value 4 H H Long H ddddH Data Read, Segment 0 5 H H Long H ddddH Data Read, Segment 1 6 H H Long H ddddH Data Read, Segment 2 7 H H Long H ddddH Data Read, Segment 3 8 L H Med H ddddH Command Read, Status Register bits 15:0 9 L H Med H ddddH Command Read, Status Register bits 31:16 10 L L Short H 11 L L Short H 12 L L Short H TCO_DS SFR 20 Description Select Background Register set 0228H Target Device Select register FFFFH Select all devices 0618H Select Foreground Register set Rev. 1a Electrical MU9C8338 10/100Mb Ethernet Filter Interface ELECTRICAL Absolute Maximum Ratings Supply Voltage -0.5 to 3.6 Volts Voltage push/pull outputs* -0.5 to VDD +0.5 Volts Voltage on all other pins -0.5 to 5.5 Volts Storage Temperature -65° C to 150° C I/O Source Sink Current ±20 mA Stresses exceeding those listed under Absolute Maximum Ratings may induce failure. Exposure to absolute maximum ratings for extended periods may reduce reliability. Functionality at or above these conditions is not implied. All voltages referenced to GND. Note: Push/Pull Outputs: FRX_ER, /INTR, REJ, /RESET_LC, RP_DV, TP_DV, and TP_SD Operating Conditions Voltages referenced to GND at the device pin. Symbol Parameter Min Typical Max Units VDD Operating Supply Voltage 2.7 3.3 3.6 Volts VIH Input Voltage Logic 1 2.0 5.5 Volts VIL Input Voltage Logic 0 -0.5 0.7 Volts t R, t F Input Transition Time 500 ns TA Ambient Operating Temperature 2 Commercial Industrial 0 70 °C -40 85 °C Notes Still Air DC Electrical Characteristics Symbol Parameter IDD Average Power Supply Current IDD(SB) Stand-by Power Supply Current VOH VOL IIZ Output Voltage Logic 1 Min Typical Max Units 75 90 mA 100 µA 2.2 Volts IOH = 2.0mA1 2.2 Volts IOH = 4.0mA2 2.2 Volts IOH = 8.0mA3 2.2 Volts IOH = 12.0mA4 0.4 Volts IOL = 2.0mA1 0.4 Volts IOL = 4.0mA2 0.4 Volts IOL = 8.0mA3 0.4 Volts IOL = 12.0mA4 1 µA GND ≤ VIN ≤ VDD -15 mA VIN ≤ GND5 1 µA GND ≤ VOUT ≤ VDD -15 µA VIN = GND6 Output Voltage Logic 0 Input Leakage Current -1 -170 IOZ Output Leakage Current Notes: Pins: FRX_ ER, /INTR, REJ, /RESET_LC, RP_DV, TP_DV, TP_SD, and TDO Pins: D[15:0] Pins: PROC_ RDY, RP[15:0], DQ[15:0], and /E Pins: /CM, /EC, and /W Pins: TCK, TDI, TMS, and TRST Pins: DQ[15:0] and /E Rev. 1a -66 -1 -170 1. 2. 3. 4. 5. 6. Notes 21 -66 MU9C8338 10/100Mb Ethernet Filter Interface Timing Diagrams Capacitance Symbol CIN COUT CI0 Parameter Typ Units Notes Input Capacitance 6 pF f = 1 MHz, VIN = 0 V Output Capacitance 9 pF f = 1 MHz, VOUT = 0 V Bi-directional Capacitance 10 pF f = 1 MHz, VI0 = 0 V TIMING DIAGRAMS Host Processor Table 32: Host Processor Interface Timing Data No. Symbol Parameter (ns) Min Max 1 tPLDX /PCS (/PCSS) LOW to D(15:0) enable SYSCLK+5 2 tPHDZ /PCS (/PCSS) HIGH to D(15:0) disable SYSCLK+5 3 tWVPL /WRITE setup to /PCS (/PCSS) 3 4 tPLWX /WRITE hold from /PCS (/PCSS) 7 5 tCHDV SYSCLK HIGH to D(15:0) (read) 6 tDVPH D(15:0) setup to /PCS (/PCSS) HIGH (write) 5 7 tPHDX D(15:0) hold from /PCS (/PCSS) HIGH (write) 7 8 tCHPRH Notes 10 PROC_RDY delay from SYSCLK HIGH 10 9 tAVPL A(7:0) setup to /PCS (/PCSS) LOW 5 10 tPLAX A(7:0) hold from /PCS (/PCSS) LOW 7 11 tPHPL /PCS (/PCSS) HIGH time 12 tPLPRL /PCS (/PCSS) to PROC_RDY LOW 13 tPRHPRL 2*SYSCLK+8 10 PROC_RDY HIGH time 1*SYSCLK t3 t9 t11 /PCS (/PCSS) t1 t5 t2 D[15:0](read) t10 A[7:0] t4 /WRITE (read) t8 t12 t13 PROC_RDY SYSCLK Figure 7: Host Processor Interface - Read Sequence 22 Rev. 1a Timing Diagrams MU9C8338 10/100Mb Ethernet Filter Interface t6 t3 t11 t9 /PCS (/PCSS) t10 A[7:0] t8 t12 t13 PROC_RDY t7 D[15:0](write) t4 /WRITE (write) SYSCLK Figure 8: Host Processor Interface - Write Sequence Result Port Interface Table 33: Result Port Interface Timing Data No. Symbol 16 tNLSH Parameter (ns) Min RP_NXT deassert to RP_SEL assert 17 tSHRPV RP_SEL to RP(15:0) Valid 18 tNHRPX RP_NXT to RP(15:0) invalid Max Notes 0 20 0 19 tNHSL RP_NXT to RP_SEL deassert 20 tNHPDL RP_NXT to RP_DV deassert 3*SYSCLK+5 21 tNHRPnV 22 tNLNH RP_NXT LOW Time 3*SYSCLK+5 23 tNHNL RP_NXT pulse width 3*SYSCLK+5 7*SYSCLK+10 RP_NXT to next Valid RP(15:0) 7*SYSCLK RP_DV 16 17 RP_SEL 21 18 RP[15:0] invalid valid 22 valid 23 RP_NXT Figure 9: Result Port - Additional Valid Data Packets 20 RP_DV 16 19 17 RP_SEL 18 RP[15:0] valid 22 invalid 23 RP_NXT Figure 10: Result Port - No Additional Valid Data Packets Rev. 1a 23 MU9C8338 10/100Mb Ethernet Filter Interface Timing Diagrams Table 34: RXD, RX_DV, and RX_ER Timing Data No. Symbol Parameter (ns) Min 14 tRDVRCLH Data setup prior to rising RX_CLK edge 10 15 tRCCHRDX Data hold after rising RX_CLK edge 10 Max Notes 14 15 RX_CLK RXD, RX_DV, RX_ER Control Port Interface Table 35: Control Port Interface Timing Data No. Symbol Parameter (ns) 24 tCHRH SYSCLK HIGH to /RESET HIGH Min Max Notes 2*SYSCLK 25 tRLRLCL /RESET LOW to RESET_LC LOW 10 4*SYSCLK+10 26 tCHRLCL SYSCLK to RESET_LC LOW 0 10 27 tCHIH SYSCLK to /INTR HIGH 0 10 28 tCHIL SYSCLK to /INTR LOW 0 10 VCC SYSCLK 25 24 /RESET 26 RESET_LC 27 28 /INTR 24 Rev. 1a Timing Diagrams MU9C8338 10/100Mb Ethernet Filter Interface Table 36: REJ (Base 10) Timing Data No. Symbol Parameter (ns) Min 36 tJLRCH REJ to rising edge of RX_CLK 400 37 tRCHJH Rising edge of RX_CLK to REJ (after SFD event) 4800 38 tJHJL Max Notes 50400 REJ assertion width 2*RX_CLK 39 tRCHJH RX_CLK rising edge to REJ HIGH 10 20 40 tRCHSL RX_CLK rising edge to REJ LOW 10 20 39 40 RX_CLK RXD[3:0] Preamble SFD DA0 DA1 DA2 DA3 DA4 DA5 DA6 DA7 DA8 DA9 DA10 DA11 SA0 SA1 36 RX_DV 37 38 /REJ Table 37: REJ (Base 100) Timing Data No. Symbol Parameter (ns) Min 41 tJLRCH REJ to rising edge of RX_CLK 40 42 tRCHJH Rising edge of RX_CLK to REJ (after SFD event) 480 Max Notes 5040 43 tJHJL 44 tRCHJH RX_CLK rising edge to REJ HIGH REJ assertion width 10 2*RX_CLK 20 45 tRHJL RX_CLK rising edge to REJ LOW 10 20 44 45 RX_CLK RXD[3:0] Preamble SFD DA0 DA1 DA2 DA3 DA4 DA5 DA6 DA7 DA8 DA9 DA10 DA11 SA0 SA1 41 RX_DV 42 43 /REJ Table 38: FRX_ER in Relation to REJ and RX_ER Timing Data No. Symbol Parameter (ns) 46 tJLFEH Delay REJ LOW to FRX_ER HIGH 47 tREHFEH Delay RX_ER HIGH to FRX_ER HIGH 0 20 48 tJHFEL Delay REJ HIGH to FRX_ER LOW 0 20 49 tRFLFEL Delay RX_ER LOW to RX_ER LOW 0 20 48 46 /REJ 47 49 RX_ER FRX_ER Rev. 1a 25 Min Max 0 20 Notes MU9C8338 10/100Mb Ethernet Filter Interface Timing Diagrams Table 39: Tag Ports TP_DV and TP_SD Timing Data No. Symbol Parameter (ns) Min Max 50 tRCJTOH Delay RX_CLK HIGH to TP_DV HIGH 0 20 51 tRCHTSH Delay RX_CLK HIGH to TP_SD HIGH 0 20 52 tRCHTDL Delay RX_CLK HIGH to TP_DV LOW 0 20 53 tRCHTSL Delay RX_CLK HIGH to TP_SD LOW 0 20 Notes RX_CLK 50 52 TP_DV 51 53 BIT5 (MSB) TP_SD BIT4 BIT3 BIT2 BIT1 BIT0 (LSB) Timing Data for LANCAM Interface Switching Characteristics LANCAM Compare Cycle Time No. Symbol Parameter 1 tELEL Chip Enable Compare Cycle Time 2 tELEH Chip Enable LOW Pulse Width 3 tEHEL Chip Enable HIGH Pulse Width 70 ns 90 ns 120 ns (90 ns) Typ Typ Typ Notes 7*SYSCLK 8*SYSCLK 8*SYSCLK 1 1,2 Short Cycle 1*SYSCLK 2*SYSCLK 2*SYSCLK Medium Cycle 2*SYSCLK 3*SYSCLK 4*SYSCLK Long Cycle 3*SYSCLK 4*SYSCLK 5*SYSCLK 1*SYSCLK 1*SYSCLK 1*SYSCLK 1 4 tEHELC Chip Enable HIGH Pulse Width (Compare) 4*SYSCLK 4*SYSCLK 4*SYSCLK 1 5 tELQV Chip Enable LOW to DQ Bus VALID (Read) 3*SYSCLK 4*SYSCLK 5*SYSCLK 1,3 Symbol Parameter (all times in nanoseconds) Max. Notes All No. Min. 6 tKHEL SYSCLK HIGH to Chip Enable LOW Delay Time 5 21 7 tKHEH SYSCLK HIGH to Chip Enable HIGH Delay Time 5 21 8 tKHGX SYSCLK HIGH to CAM Controls INVALID Delay Time 5 21 4 9 tKHGV SYSCLK HIGH to CAM Controls VALID Delay Time 5 21 4 10 tKHQV SYSCLK HIGH to DQ Bus VALID Delay Time 5 21 11 tKHQX SYSCLK HIGH to DQ Bus INVALID Delay Time 5 21 12 tFIVKH Full Input VALID to SYSCLK HIGH Setup Time 10 5 13 tMIVKH MATCH Input VALID to SYSCLK HIGH Setup Time 10 6 Notes: 1. 2. 3. 4. 5. 6. The MU9C8338 LANCAM interface must be configured to accept the speed grade of the LANCAM being used. Once it is configured for the appropriate speed grade (70 ns, 90 ns, or 120 ns (90 ns)) the cycle time will vary accordingly. The MU9C8338 contains built-in routines that include LANCAM short, medium, or long cycles. The cycle will vary depending upon what LANCAM cycle is being performed by the MU9C8338. A LANCAM read cycle initiated by the MU9C8338 could be to the internal memory array or to the LANCAM registers. The timing specified meets the requirements to successfully read from either source. CAM Control signals are /CM, /W, and /EC. The /FI input is latched by the MU9C8338 on every rising edge of SYSCLK. The LANCAM interface is designed to work properly with up to four LANCAMs. 26 Rev. 1a Timing Diagrams MU9C8338 10/100Mb Ethernet Filter Interface SYSCLK 6 7 2 6 3 /E 9 8 9 8 9 8 /W /CM /EC 5 DQ15-0 Figure 11: LANCAM Interface: Read SYSCLK 6 7 2 6 3 /E 8 9 /W 9 8 /CM 9 8 /EC 10 11 DQ15-0 12 /FI Figure 12: LANCAM Interface: Write SYSCLK 6 6 7 1 2 4 /E 9 8 9 8 9 8 /W /CM /EC 13 /MI Figure 13: LANCAM Interface: Compare Rev. 1a 27 MU9C8338 10/100Mb Ethernet Filter Interface Ordering Information ORDERING INFORMATION Part Number Package Temperature Voltage MU9C8338-TFC 144-Pin LQFP 0–70° C 3.3 MU9C8338-TFI 144-Pin LQFP -40–85° C 3.3 PACKAGE OUTLINE A He A2 E A1 D Hd L1 1 e b L Table 40: 144-Pin LQFP Dim. A Min. Dim. A1 Dim. A2 Dim. b Dim. D Dim. E 0.25 1.35 0.215 19.9 19.9 1.40 0.22 20.0 20.0 1.45 0.225 20.1 20.1 Nom. Max. 1.7 Dim. e 0.5 Dim. Hd Dim. He 21.8 21.8 22.0 22.0 22.2 22.2 Dim. L1 L 0.8 0.5 1.0 1.2 MUSIC Semiconductors reserves the right to make changes to its products and specifications at any time in order to improve on performance, manufacturability or MUSIC Semiconductors’ agent or distributor: reliability. Information furnished by MUSIC is believed to be accurate, but no responsibility is assumed by MUSIC Semiconductors for the use of said information, nor for any infringements of patents or of other third-party rights which may result from said use. No license is granted by implication or otherwise under any patent or patent rights of any MUSIC company. © Copyright 2000, MUSIC Semiconductors http://www.music-ic.com email: [email protected] Worldwide Headquarters MUSIC Semiconductors 1521 California Circle Milpitas, CA 95035 USA Tel: 408 869-4600 Fax: 408 942-0837 USA Only: 800 933-1550 Tech Support 888 226-6874 Product Info 28 Asian Headquarters MUSIC Semiconductors Special Export Processing Zone Carmelray Industrial Park Canlubang, Calamba, Laguna Philippines Tel: +63 49 549-1480 Fax: +63 49 549-1024 Sales Tel/Fax: +632 723-6215 European Headquarters MUSIC Semiconductors P. O. Box 184 6470 ED Eygelshoven The Netherlands Tel: +31 43 455-2675 Fax: +31 43 455-1573 Rev. 1a