WO1999023662A1 - Method and apparatus for cascading content addressable memory devices - Google Patents

Method and apparatus for cascading content addressable memory devices Download PDF

Info

Publication number
WO1999023662A1
WO1999023662A1 PCT/US1998/021805 US9821805W WO9923662A1 WO 1999023662 A1 WO1999023662 A1 WO 1999023662A1 US 9821805 W US9821805 W US 9821805W WO 9923662 A1 WO9923662 A1 WO 9923662A1
Authority
WO
WIPO (PCT)
Prior art keywords
cascade
cam
memory device
output
signal
Prior art date
Application number
PCT/US1998/021805
Other languages
French (fr)
Inventor
Varadarajan Srinivasan
Bindiganavale S. Nataraj
Sandeep Khanna
Original Assignee
Netlogic Microsystems, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US08/967,314 external-priority patent/US6199140B1/en
Priority claimed from US09/001,110 external-priority patent/US6148364A/en
Application filed by Netlogic Microsystems, Inc. filed Critical Netlogic Microsystems, Inc.
Priority to AU13611/99A priority Critical patent/AU1361199A/en
Publication of WO1999023662A1 publication Critical patent/WO1999023662A1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
    • G11C15/04Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores using semiconductor elements

Definitions

  • the present invention relates generally to content addressable memory (CAM) devices.
  • CAM content addressable memory
  • a content addressable memory (CAM) device is a storage device that can be instructed to compare a specific pattern of comparand data with data stored in its associative CAM array. The entire CAM array, or segments thereof, are searched in parallel for a match with the comparand data. If a match exists, the CAM device indicates the match by asserting a match flag. Multiple matches may also be indicated by asserting a multiple match flag.
  • the CAM device typically includes a priority encoder to translate the matched location into a match address or CAM index and outputs this address to a status register. The match address, the contents of the matched location, and other status information (e.g., skip bit, empty bit, .full flag, as well as, match and multiple match flags) may be output from the CAM device to an output bus.
  • CAM devices may be depth cascaded together to form a larger CAM device or system.
  • two Ik x 64 CAM devices may be depth cascaded together to form a 2k x 64 CAM.
  • Depth cascading may be implemented using match flag input and output pins.
  • a higher priority CAM device i.e., the CAM device with a lower physical addresses
  • each CAM device In response to a compare instruction, each CAM device simultaneously compares comparand with data stored in its respective CAM array.
  • the higher priority CAM device If the higher priority CAM device has a match, it will notify this result to the lower priority CAM device by asserting its match flag output signal. The higher priority CAM device may then output its match address to a common output bus, and the lower priority CAM device will be disabled from outputting data to the common output bus. If, however, the higher priority CAM device does not have a match, it will not assert its match flag output and the lower priority CAM device may provide its match address to the common output data bus (if it has a match). If there are many CAM devices depth cascaded together, then the lowest priority CAM device in the cascade will only be able to output its data to the common output bus if no other CAM devices in the cascade have a match. That is, the lowest priority CAM device will have to wait until the match flag signals from the previous CAM devices have rippled through the depth cascade chain. This may result in undesirably long response times for the depth cascaded CAM system to respond to a compare instruction.
  • CAM device that operate in a flow-through mode may be able to output a match address, data from a matched location in a CAM array, and other status information (e.g., match flag, multiple match flag, full flag, skip bit, empty bit, or a device identification) in a single clock cycle. For example, a higher priority CAM device that does not have a match will not assert its match flag during the single clock cycle.
  • a lower priority CAM with a match will not know if it can output its match address to the common output data bus during the clock cycle because it does not know whether the higher priority CAM device has a slow response time, or whether the higher prioirty CAM device does not have a match.
  • One possible solution may be to allow each of the CAM devices in the cascade to output its match address to the common output data bus and then allow each CAM device be disabled appropriately when the match flag results ripple through the cascade.
  • This solution may result in a number of disadvantages, including: (1) causing bus contention problems, (2) causing an undesirable amount of power to be drawn by the system as potentially all CAM devices may be driving the common output data bus at the same time, and (3) slowing down the system as capacitance may be increased on the common output data bus. Therefore, what is needed is a mechanism for depth cascading CAM devices that operate in a flow-through mode.
  • a method and apparatus for cascading content address memory (CAM) devices is disclosed.
  • the method and apparatus may be particularly useful when depth cascading CAM devices that operate in a flow-through mode.
  • a compare instruction may be simultaneously provided to each CAM device in the cascade, and the match address, data stored at the matched location, or other status information may then be output to a common output data bus by the highest priority matching CAM device in the same cycle that the instruction is provided to the CAM devices.
  • Each CAM device may have a cascade input and a cascade output to perform the cascade function.
  • the cascade output of a higher priority CAM device may be connected to the cascade input of the next lower priority CAM device.
  • the higher priority CAM device may assert a cascade signal on its cascade output at a predetermined time after receiving an input signal (e.g., a clock signal). Asserting the cascade signal may indicate that the higher priority CAM device has completed the compare instruction.
  • the lower priority CAM device may sample the match flag of the higher priority CAM device to determine if the lower priority CAM device may output its data to the common output data bus.
  • Figure 1 is a block diagram of two CAM devices cascaded together in depth expansion according to one embodiment of the present invention
  • Figure 2 is a timing diagram of one embodiment of the cascade signals generated by the CAM devices of Figure 1;
  • Figure 3 is a block diagram of one embodiment of one of the CAM devices of Figure 1 including flow-through circuitry and expansion circuitry;
  • Figure 4 is one embodiment of the flow-through circuitry of the CAM device of Figure 3;
  • Figure 5 is a logic diagram of one embodiment of the internal cascade signal generator of Figure 3;
  • Figure 6 is a timing diagram for the logic diagram of Figure 3.
  • Figure 7 is a circuit diagram of one embodiment of a delay circuit of Figure 6;
  • Figure 8 is a logic diagram of one embodiment of the cascade output logic of Figure 3.
  • Figure 9 is a timing diagram for the logic diagram of Figure 3.
  • Figure 10 is a logic diagram of one embodiment of the ADS bus control logic of Figure 3.
  • Figure 11 is one embodiment of the match flag output logic of Figure 3.
  • CAM content address memory
  • the method and apparatus of the present invention may be particularly useful when depth cascading CAM devices that operate in a flow-through mode.
  • a compare instruction may be simultaneously provided to each CAM device in the cascade, and the match address, data stored at the matched location, or other status information may then be output to a common output data bus by the highest priority matching CAM device in the same cycle that the instruction is provided to the CAM devices.
  • Each CAM device may have a cascade input and a cascade output to perform the cascade function.
  • the cascade output of a higher priority CAM device may be connected to the cascade input of the next lower priority CAM device.
  • the higher priority CAM device may assert a cascade signal on its cascade output at a predetermined time after receiving an input signal (e.g., a clock signal). Asserting the cascade signal may indicate that the higher priority CAM device has completed the compare instruction.
  • the lower priority CAM device may sample the match flag of the higher priority CAM device to determine if the lower priority CAM device may output its data to the common output data bus.
  • Figure 1 is a block diagram of system 100 that includes CAM devices 102 and 104 interconnected in a depth cascade configuration.
  • the total memory size of system 100 may be larger than the individual sizes of CAMs 102 and 104.
  • CAM 102 is a 4k x 64 CAM device
  • CAM 104 is a Ik x 64 CAM device
  • system 100 may operate as a 5k x 64 CAM device.
  • Any size of CAM devices may be used in the present invention.
  • CAMs of different widths may be cascaded together.
  • other memory devices besides CAM devices may also be used (e.g., SRAMs, multi-port RAMs, DRAMs, ROMs, EEPROMs, EPROMs, etc.).
  • system 100 may be formed from stand-alone CAM devices, or may be formed from integrated circuits on a common substrate.
  • Each CAM device receives in parallel clock signal CLK 106, comparand data from comparand bus CBUS 108, and instructions (e.g., write -and-compare or other compare instructions) from instruction bus IBUS 110.
  • CBUS 108 and IBUS 110 may be the same bus.
  • Other input signals may also be simultaneously provided to each of CAMs 102 and 104 including word enables signals, a reset signal, a chip enable signal, and the like.
  • CAMs 102 and 104 may also output data to a common associated data and status information bus ADS BUS 112.
  • the data output from CAMs 102 and 104 to ADS BUS 112 may include a match addresses, data stored in the CAM devices, or status information including a match flag, multiple match flag, full flag, skip bit, empty bit, device identification information, and /or other information.
  • CAM devices 102 and 104 may each include a cascade input pin /CSCDI, a cascade output pin /CSCDO, a match flag input pin /MFI, and a match flag output pin /MFO.
  • CAM device 102 may be designated as the higher priority CAM device by coupling its /CSCDI pin to a first power supply rail (e.g., ground or approximately zero volts), and coupling its /MFI pin to a second power supply rail VDD.
  • VDD may be from approximately 1.5 volts to approximately 7.0 volts. Other voltages may be used.
  • CAM 102 may have its /CSCDO pin coupled to the /CSCDI pin of CAM 104 via line 114, and CAM 102 may have its /MFO pin coupled to the /MFI pin of CAM 104 via line 116. If more CAM devices are included in the depth cascade of system 100, then each CAM device may similarly have its /CSCDI pin coupled to the /CSCDO pin of the next highest priority (or next lowest priority) CAM device, and its /MFI pin coupled to the /MFO pin of the next highest priority (or next lowest priority) CAM device.
  • system 100 may be illustrated with the aid of the illustrative timing diagram of Figure 2.
  • CLK 106 transitions to a high state enabling CAMs 102 and 104 to load an instruction from IBUS 110 and comparand data from CBUS 108.
  • the instruction may be an instruction that instructs CAMs 102 and 104 to compare the comparand data with data stored in CAM arrays of each of the CAM devices.
  • CAMs 102 and 104 may each deassert (e.g., drive to a logic high state) their respective /CSCDO signals at their /CSCDO output pins.
  • CAM 104 When CAM 102 deasserts its /CSCDO output pin and drives a high signal on line 114, CAM 104 may be disabled from asserting (e.g., driving to a logic low state) its /CSCDO output pin and from providing data to ADS BUS 112. CAM 102 (and CAM 104) may continue to deassert their respective /CSCDO output pins for a predetermined time sufficient to enable the instruction to be performed by the CAM device.
  • CAM 102 may deassert the signal on line 114 for a period of time sufficient for CAM 102 to compare the comparand data with data stored in its CAM array, and for CAM 102 and to generate a match flag indicating the results of the compare instruction (e.g., at time 2). After these internal operations have been completed, CAM 102 may assert the /CSCDO signal on line. CAM 102 may also deassert the signal on line 114 for a period of time sufficient for CAM 102 to generate a matching address, read data from the matching location of the CAM array of CAM 102, and/or to generate status information for the operation.
  • CAM 104 receives the asserted /CSCDO on line 114 as a /CSCDI input signal and may use the assertion as an indicator that the match flag signal on line 116 is in a valid state. That is, the cascade output signal /CSCDO indicates when CAM 102 has completed performing the compare instruction and the match flag signal on line is valid. If the match flag signal on line 116 is asserted (e.g., a logic low state) at time t3, higher priority CAM 102 has a match and CAM 104 will not output data to ADS bus 112.
  • match flag signal on line 116 is deasserted (e.g., a high logic state) at time t3
  • CAM 102 does not have match and CAM 104 may output data to ADS BUS 112 by time t5 if CAM 104 has determined that there is a match between the comparand data and data stored in its CAM array.
  • CAM 104 may output /CSCDO at a time t4 after receiving the asserted /CSCDO signal on line 114 at time t3.
  • CAM 104 may also assert and deassert /MFO on line 120 irrespective of whether CAM 102 has a match.
  • the /CSCDO signal on line 118 and the /MFO signal on line 120 may be generated for the benefit of any additional CAM devices that may be further depth cascaded with CAMs 102 and 104.
  • FIG. 3 is a block diagram of CAM 300.
  • CAM 300 is one embodiment of CAM 102 or CAM 104 of Figure 1.
  • CAM 300 includes flow-through CAM circuitry 302 and expansion circuitry 304.
  • Flow-through CAM circuitry 302 includes circuitry necessary for CAM 300 to operate in a flow-through mode.
  • circuitry 302 may be CAM circuitry that does not operate in a flow-through mode.
  • Expansion circuitry 304 may include internal cascade signal generator 306, cascade output logic 308, match flag output logic 313, and ADS BUS control logic 310.
  • CAM 300 may operate in a depth cascaded system as follows.
  • flow-through CAM circuitry 302 may load in the comparand data for comparison with a first group of CAM cell in its CAM array.
  • Flow-through CAM circuitry 302 may then send a signal on line 312 to indicate that a compare instruction is being performed by CAM 300.
  • Internal cascade signal generator 306 may then deassert (or assert) a signal on line 316 for a predetermined period of time sufficient to enable flow-through CAM circuitry 302 to determine if there is a match between the comparand data and data stored in the CAM array of flow-through CAM circuitry 302.
  • the internal cascade signal on line 316 (and/or /CSCDO on line 322) may also be generated for every instruction and not just a compare instruction.
  • cascade output logic 308 may cause /CSCDO on line 322 to be deasserted.
  • /CSCDO on line 322 When /CSCDO on line 322 is deasserted, the next lowest priority CAM device in the cascade may be inhibited from providing data to ADS BUS 112 and /or from asserting its /CSCDO output signal.
  • internal cascade signal generator 306 comprises a one-shot circuit that may deassert the signal on line 316 for the predetermined period of time in response to a rising edge (or falling edge) of CLK 106. Any one shot circuit may be used that can generate the signal on line 316 for the appropriate amount of time.
  • Flow-through CAM circuitry 302 may perform a comparison of the comparand data with a first group of CAM cell(s) in its CAM array. The results of the comparison may be reflected by the state of the internal match flag signals /MFINT on line 314. If there is no match with data stored in the CAM array and the comparand data, then /MFINT may be deasserted (e.g., to a high logic state) on line 314.
  • /MFINT may be asserted (e.g., to a low logic state) on line 314, and the match address of the location in the CAM array may be provided to bus 326.
  • Match flag output logic 313 may then generate the output match flag signal /MFO on line 324 in response to /MFINT on line 314 and /MFI on line 320.
  • /MFO may be asserted if /MFINT is asserted.
  • the state of /MFO on line 324 may be resolved before the predetermined period of time has transpired for which the signal on line 316 is deasserted. That is, CAM 300 may assert /CSCDO on line 322 after /MFO is resolved or valid for the compare instruction. Thus, /CSCDO on line 322 may indicate when CAM 300 has completed comparing the comparand data with data stored in its CAM array, and when the results of /MFO on line 324 are valid.
  • flow-through CAM circuitry 302 may sense data from the CAM array corresponding to the matched address, and may output the sensed data to ADS BUS control logic 310 via bus 326.
  • ADS BUS control logic 310 may output the match address, the sensed data, and other status information to ADS BUS 112 if CAM 300 contains the highest priority match address.
  • ADS BUS control logic 310 may determine if CAM 300 has the highest priority match address by monitoring the states of /CSCDI on line 318, /MFI on line 320, and/or /MFINT on line 314.
  • ADS BUS control logic 310 may determine that CAM 300 has the highest priority match address and may output data to ADS BUS 112.
  • FIG. 4 shows one embodiment of the flow-through CAM circuitry 400 disclosed in Application No. 08/967,314.
  • Flow-through CAM circuitry 400 is one embodiment of flow-through CAM circuitry 302 of Figure 3.
  • Flow-through CAM circuitry 400 may include CAM array 402, comparand register 404, sense amplifiers 406, timing generator 408, instruction decoder 410, match latch 412, priority encoder 414, address latch 416, address selector 418, and address decoder 420.
  • Flow-through CAM circuitry 400 may also include a clock buffer for CLK 106 and for providing one or more clock signals of the same or varying phases or frequencies to timing generator 408 and /or instruction decoder 410.
  • Flow-through CAM circuitry 400 may perform a compare instruction in one (or more) cycles as follows.
  • instruction decoder 410 decodes a write and compare (or compare) instruction on IBUS 110.
  • Instruction decoder 410 decodes the instruction and sends a signal on bus 444 to timing generator 408 indicating the nature of the instruction.
  • Instruction decoder 410 may also output a signal on line 312 that may be coupled to internal cascade signal generator 306 as shown in Figure 3.
  • timing generator 408 sends a signal on line 426 to cause the comparand data on CBUS 108 to be loaded into comparand register 404.
  • the comparand data may then be compared with data stored in CAM array 402 to determine if there is a match.
  • the states of match lines in CAM array 104 may then be latched by match latch 412 in response to a signal on line 430.
  • Priority encoder 116 may then latch the output of match latch 412 in response to a signal on line 432.
  • Priority encoder 414 may determine the highest priority match address from the comparison.
  • the match address may then be output by priority encoder 414 to bus 438, and may be latched by address latch 416 (to bus 442) in response to a signal on line 434.
  • Bus 438 may be a part of bus 326 of Figure 3.
  • priority encoder 116 may also generate an internal match flag signal /MFINT on line 314 if there is at least one match between the comparand data and the data stored in CAM array 402.
  • the match address on bus 442 may then be provided to address decoder 420 by address selector 418 in response to a signal on line 422.
  • Address selector 418 may couple either the address on address bus 436 or the match address on bus 442 to address decoder 420.
  • address selector 418 may be omitted and bus 442 may be directly connected to address decoder 420.
  • Address decoder 420 may decode the match address and output the decoded match address in response to a signal on line 424.
  • the decoded match address may select a row of CAM cells in CAM array 402 corresponding to the match address.
  • One or more CAM cells at the high priority match address may then be sensed by sense amplifiers 406 and coupled to bus 440.
  • Bus 440 may be a part of bus 326 of Figure 3. Before the end of the clock cycle(s) of CLK 106, the match address on bus 438, the internal match flag on line 314, and the sensed data from CAM array 402 may be provided to expansion circuitry.
  • FIG. 5 is a logic diagram of internal cascade signal generator 500.
  • Internal cascade signal generator 500 is one embodiment of internal cascade signal generator 306 of Figure 3 and generates CSCINT on line 316 for a predetermined period of time sufficient for CAM 300 to generate /MFINT on line 314.
  • Other embodiments for internal cascade signal generator 306 may be used.
  • Generator 500 is a one-shot circuit that may have a first delay path including inverting delay elements 502, 504, and 506 coupled in series between CLK 106 and the first input of NAND gate 514. Any odd number of inverting delay elements may be used. For an alternative embodiment, any combination of inverting and /or non-inverting delay elements may also be used. Additionally, each delay element may have the same amount of delay or different amounts of delay. For one embodiment, delay elements 502 and 504 have approximately the same amounts of delay, and delay element 504 has a different amount of delay.
  • the total amount of delay through delay element 502, 504, and 506 may be sufficient to cause NAND gate 514 to deassert CSCINT on line 316 for a sufficient amount of time such that flow-through circuitry 302 resolves /MFINT on line 314.
  • Each delay element may include a resistor, RC network, inverter, or other delay circuitry.
  • Generator 500 may also include a second delay path that may include inverting delay element 508, inverter 510 and NAND gate 512.
  • Inverting delay element 508 may have its input coupled to CLK 106 and its output coupled to the first input of NAND gate 512.
  • Inverter 510 may have its input coupled to CLK 106 and its output coupled to the second input of NAND gate 512.
  • the output of NAND gate 512 may be coupled to the second input of NAND gate 514.
  • the output of NAND gate 514 may provide the internal cascade signal CSCINT on line 316.
  • Delay element 508 may comprise the same delay element as any of delay elements 502, 504, or 506.
  • generator 500 may be described with the aid of the illustrative timing diagram of Figure 6.
  • CLK 106 transitions to a high state causing the signal on line 516 to transition to a low state at time tl and the signal on line 520 to transition to a high state at time t2.
  • the low signal on line 520 will cause CSCINT on line 316 to be deasserted and transition to a low state at time t3.
  • the signal on line 518 will also transition to a low state at time t4.
  • the signal on line 522 will transition to a low state at time t7 and cause NAND gate 514 to assert CSCINT to a high state at time t8.
  • CSCINT may be deasserted for a predetermined amount of time from time t3 to time t8.
  • the second delay path may function to not allow the falling edge of CLK 106 at time t5 to assert CSCINT on line 316 before the rising edge of CLK 106 has propagated through the first delay path of delay element 502, 504, and 506.
  • the signal on line 312 of Figure 3 may be used to gate CLK 106 into delay elements 502 and 508 and inverter 510.
  • CLK 106 may be logically ANDed with the signal on line 312.
  • CSCINT on line 316 may be gated with the signal on line 312 before coupling CSCINT to cascade output logic 308 of Figure 3.
  • CSCINT may be logically ANDed with the signal on line 312.
  • FIG. 7 is a circuit diagram of delay element 700.
  • Delay element 700 is one embodiment any of delay circuits 502, 504, 506, or 508 of Figure 5.
  • Delay element 700 includes a CMOS inverter formed by PMOS transistor 706 and NMOS transistor 708. Any other inverter in any other process technology may also be used.
  • the inverter inverts the signal at line 702 and couples the inverted signal to line 704 after a delay caused by resistor 710 and capacitors 712 and 714.
  • Resistor 710 may be of any size. For one embodiment, resistor 710 is approximately from 100 ohms to approximately 1 kohms. Resistor 710 is optional. One, both, or none of capacitors 712 and 714 may be included in delay element 700.
  • Capacitor 712 may be formed from a PMOS transistor, and capacitor 714 may be formed from an NMOS transistor.
  • capacitor 712 may have a width-to-length ratio of approximately 3.2 microns ( ⁇ m) to approximately 7.8 ⁇ m
  • capacitor 714 may have a width-to-length ratio of approximately 7.8 ⁇ m to approximately 3.2 ⁇ m.
  • FIG 8 is a logic diagram of cascade output logic 800.
  • Cascade output logic 800 is one embodiment of cascade output logic 308 of Figure 3. Other embodiments for cascade output logic 308 may be used.
  • Cascade output logic 800 may include NAND gates 804 and 810, inverters 802, 806, and 812, PMOS transistor 808, and NMOS transistor 814.
  • Inverter 802 has its input coupled to /CSCDI on line 318 and its output coupled to the first inputs of NAND gates 804 and 810.
  • NAND gates 804 and 810 each have their second inputs coupled to CSCINT on line 316.
  • Inverter 806 has its input coupled to the output of NAND gate 804, and its output coupled to the gate of PMOS transistor 808.
  • Inverter 812 has its input coupled to the output of NAND gate 810, and its output coupled to the gate of NMOS transistor 814.
  • PMOS transistor 808 further has its source coupled to a power supply rail VDD, and its drain coupled to /CSCDO at line 322.
  • NMOS transistor 814 further has its drain coupled to line 322, and its source coupled to rail ground or approximately zero volts.
  • cascade output logic 800 may be illustrated with reference to Figure 3 and the aid of the illustrative timing diagram of Figure 9. Assume that cascade output logic 800 is included in a lower priority CAM device such as CAM 104 of Figure 1.
  • internal cascade signal generator 306 may then generate a one-shot signal on line 316 from time tl to t5. This may cause /CSCDO on line 322 to transition to a high state at time t2 as PMOS transistor 808 may be on and NMOS transistor 814 may be off.
  • /CSCDI on line 318 may transition to a high state at time t3.
  • the one-shot signal on line 316 may transition to a high state after the internal match flag signal on line 314 has transitioned to a valid state at time t4.
  • /CSCDI on line 318 When /CSCDI on line 318 is asserted to a low state indicating that the higher priority CAM device has completed its comparison operation, PMOS transistor 808 will be turned off and NMOS transistor 814 will be turned on to pull /CSCDO on line 322 to a low state.
  • the low state on line 322 may indicate that CAM 300 has completed its comparison operation and the match flag output signal /MFO on line 324 is valid.
  • FIG 10 is a logic diagram of ADS BUS control logic 1000.
  • ADS BUS control logic 1000 is one embodiment of the ADS bus control logic 310 of Figure 3. Other embodiments for ADS bus control logic 310 may be used.
  • ADS BUS control logic 1000 may include match flag validating circuitry 1002, output enable control circuitry 1004, and output buffer 1024.
  • Match flag validating circuitry 1002 may include NAND gate 1012 having its first input coupled to the logical complement of /CSCDI via inverter 1006, and its second input coupled to /MFI via series connected inverters 1008 and 1010. Match flag validating circuitry 1002 may then provide the logical complement of NAND gate 1012 to line 1016 via inverter 1014.
  • NAND gate 1012 may be replaced with an AND gate and inverters 1008, 1010, and 1014 may be removed.
  • Match flag validating control circuitry 1002 outputs the state of /MFI on line 1016 only when /CSCDI is asserted to a low state on line 318.
  • Output enable control circuitry 1004 may include NAND gate 1020 that has its first input coupled to line 1016, and its second input coupled to the logical complement of /MFINT via inverter 1018. Inverter 1022 may couple the logical complement of NAND gate 1020 to output buffer 1024. When /MFINT on line 314 is deasserted to a high state indicating no match for the comparison operation, output enable control circuitry 1004 may disable output buffer 1024 such that no data is provided from bus 326 to ADS BUS 112.
  • Output enable control circuitry 1004 may enable output buffer 1024 to output data from bus 326 to ADS BUS 112 when: (1) /MFINT on line 314 is asserted to a low state indicating a match; and (2) /MFI on line 320 is high indicating that no higher priority CAM device has a match.
  • Output buffer 1024 may be any output buffer including a three-state output buffer that buffers signals from bus 326 to ADS BUS 112.
  • FIG 11 is a logic diagram of the match flag output logic 1100.
  • Match flag output logic 1100 is one embodiment of match flag output logic 313 of Figure 3.
  • Match flag logic 1100 may include NAND gate 1102, inverters 1104, 1106, 1108, and 1110, PMOS transistor 1112, and NMOS transistor 1114.
  • inverters 1104, 1106, 1108, and 1110 may be omitted.
  • NAND gate 1102 has its first input coupled to /MFI on line 320, and its second input coupled to /MFINT on line 314. The output of NAND gate 1102 is coupled to the gate of PMOS transistor 1112 via the series connected inverters 1104 and 1106.
  • NAND gate 1102 is also coupled to the gate of NMOS transistor 1114 via series connected inverters 1108 and 1110.
  • PMOS transistor 1112 further has its source coupled to VDD and its drain coupled to /MFO at line 324.
  • NMOS transistor 1114 further has its drain coupled to line 324 and its source coupled to ground or approximately zero volts.
  • /MFO will only be deasserted to a high state if neither /MFI or /MFINT is asserted to a low state.
  • This embodiment may be used in depth cascade systems that generate a composite match flag from the lowest priority CAM device in the cascade. Other embodiments for match flag output logic 313 of Figure 3 may be used.
  • an alternative embodiment for generating /CSCDO on line 114 may be to generate an internal match flag signal from an extra row of memory cells in the CAM array of CAM 102 (or CAM 104).
  • the extra row may be appropriately masked to always generate a match condition that may then be provided out to /CSCDO on line 114.
  • CAM 104 may always see /CSCDI transition states and may then know when to sample /MFO on line 116.

Landscapes

  • Logic Circuits (AREA)

Abstract

A method and apparatus for cascading content address memory (CAM) devices are disclosed. The method and apparatus may be particularly useful when depth cascading CAM devices that operate in a flow-through mode. In the flow-through mode, a compare instruction may be simultaneously provided to each CAM device in the cascade, and the match address, data stored at the matched location, or other status information may then be output to a common output data bus by the highest priority matching CAM device in the same cycle that the instruction is provided to the CAM devices. Each CAM device may have a cascade input and a cascade output to perform the cascade function. The cascade output of a higher priority CAM device may be connected to the cascade input of the next lower priority CAM device. The higher priority CAM device may assert a cascade signal on its cascade output at a predetermined time after receiving an input signal (e.g., a clock signal). Asserting the cascade signal may indicate that the higher priority CAM device has completed the compare instruction. When the lower priority CAM device detects that the cascade signal has been asserted on its cascade input, the lower priority CAM device may sample the match flag of the higher priority CAM device to determine if the lower priority CAM device may output its data to the common output data bus.

Description

METHOD AND APPARATUS FOR CASCADING CONTENT ADDRESSABLE MEMORY DEVICES FIELD OF THE INVENTION
The present invention relates generally to content addressable memory (CAM) devices. BACKGROUND
A content addressable memory (CAM) device is a storage device that can be instructed to compare a specific pattern of comparand data with data stored in its associative CAM array. The entire CAM array, or segments thereof, are searched in parallel for a match with the comparand data. If a match exists, the CAM device indicates the match by asserting a match flag. Multiple matches may also be indicated by asserting a multiple match flag. The CAM device typically includes a priority encoder to translate the matched location into a match address or CAM index and outputs this address to a status register. The match address, the contents of the matched location, and other status information (e.g., skip bit, empty bit, .full flag, as well as, match and multiple match flags) may be output from the CAM device to an output bus.
CAM devices may be depth cascaded together to form a larger CAM device or system. For example, two Ik x 64 CAM devices may be depth cascaded together to form a 2k x 64 CAM. Depth cascading may be implemented using match flag input and output pins. A higher priority CAM device (i.e., the CAM device with a lower physical addresses) may have its match flag output pin coirinected to the match flag input pin of the lower priority CAM device (i.e. the CAM device with the higher physical addresses). In response to a compare instruction, each CAM device simultaneously compares comparand with data stored in its respective CAM array. If the higher priority CAM device has a match, it will notify this result to the lower priority CAM device by asserting its match flag output signal. The higher priority CAM device may then output its match address to a common output bus, and the lower priority CAM device will be disabled from outputting data to the common output bus. If, however, the higher priority CAM device does not have a match, it will not assert its match flag output and the lower priority CAM device may provide its match address to the common output data bus (if it has a match). If there are many CAM devices depth cascaded together, then the lowest priority CAM device in the cascade will only be able to output its data to the common output bus if no other CAM devices in the cascade have a match. That is, the lowest priority CAM device will have to wait until the match flag signals from the previous CAM devices have rippled through the depth cascade chain. This may result in undesirably long response times for the depth cascaded CAM system to respond to a compare instruction.
It may not be desirable to use only the match flag input and output pins when depth cascading CAM devices that operate in a flow-through mode. CAM device that operate in a flow-through mode may be able to output a match address, data from a matched location in a CAM array, and other status information (e.g., match flag, multiple match flag, full flag, skip bit, empty bit, or a device identification) in a single clock cycle. For example, a higher priority CAM device that does not have a match will not assert its match flag during the single clock cycle. A lower priority CAM with a match will not know if it can output its match address to the common output data bus during the clock cycle because it does not know whether the higher priority CAM device has a slow response time, or whether the higher prioirty CAM device does not have a match.
One possible solution may be to allow each of the CAM devices in the cascade to output its match address to the common output data bus and then allow each CAM device be disabled appropriately when the match flag results ripple through the cascade. This solution, however, may result in a number of disadvantages, including: (1) causing bus contention problems, (2) causing an undesirable amount of power to be drawn by the system as potentially all CAM devices may be driving the common output data bus at the same time, and (3) slowing down the system as capacitance may be increased on the common output data bus. Therefore, what is needed is a mechanism for depth cascading CAM devices that operate in a flow-through mode. SUMMARY OF THE INVENTION
A method and apparatus for cascading content address memory (CAM) devices is disclosed. The method and apparatus may be particularly useful when depth cascading CAM devices that operate in a flow-through mode. In the flow-through mode, a compare instruction may be simultaneously provided to each CAM device in the cascade, and the match address, data stored at the matched location, or other status information may then be output to a common output data bus by the highest priority matching CAM device in the same cycle that the instruction is provided to the CAM devices. Each CAM device may have a cascade input and a cascade output to perform the cascade function. The cascade output of a higher priority CAM device may be connected to the cascade input of the next lower priority CAM device. The higher priority CAM device may assert a cascade signal on its cascade output at a predetermined time after receiving an input signal (e.g., a clock signal). Asserting the cascade signal may indicate that the higher priority CAM device has completed the compare instruction. When the lower priority CAM device detects that the cascade signal has been asserted on its cascade input, the lower priority CAM device may sample the match flag of the higher priority CAM device to determine if the lower priority CAM device may output its data to the common output data bus.
Other objects, features, and advantages of the present invention will be apparent from the accompanying drawings and from the detailed description which follows below. BRIEF DESCRIPTION OF THE DRAWINGS
The features and advantages of the present invention are illustrated by way of example and are by no means intended to limit the scope of the present invention to the particular embodiments shown, and in which:
Figure 1 is a block diagram of two CAM devices cascaded together in depth expansion according to one embodiment of the present invention; Figure 2 is a timing diagram of one embodiment of the cascade signals generated by the CAM devices of Figure 1;
Figure 3 is a block diagram of one embodiment of one of the CAM devices of Figure 1 including flow-through circuitry and expansion circuitry;
Figure 4 is one embodiment of the flow-through circuitry of the CAM device of Figure 3;
Figure 5 is a logic diagram of one embodiment of the internal cascade signal generator of Figure 3;
Figure 6 is a timing diagram for the logic diagram of Figure 3;
Figure 7 is a circuit diagram of one embodiment of a delay circuit of Figure 6;
Figure 8 is a logic diagram of one embodiment of the cascade output logic of Figure 3;
Figure 9 is a timing diagram for the logic diagram of Figure 3;
Figure 10 is a logic diagram of one embodiment of the ADS bus control logic of Figure 3; and
Figure 11 is one embodiment of the match flag output logic of Figure 3. DETAILED DESCRIPTION
A method and apparatus for cascading content address memory (CAM) device is disclosed. In the following description, for purposes of explanation, specific nomenclature is set forth to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art that these specific details may not be required to practice the present invention. In other instances, well known circuits and devices are shown in block diagram form to avoid obscuring the present invention unnecessarily. The interconnection between circuit elements or blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be single signal lines, and each of the single signal lines may alternatively be buses. Additionally, signal or pin names preceded by the symbol "/" are active low signals or pins. However, these signals or pins may be alternatively be replaced with active high signals or pins.
The method and apparatus of the present invention may be particularly useful when depth cascading CAM devices that operate in a flow-through mode. In the flow-through mode, a compare instruction may be simultaneously provided to each CAM device in the cascade, and the match address, data stored at the matched location, or other status information may then be output to a common output data bus by the highest priority matching CAM device in the same cycle that the instruction is provided to the CAM devices. Each CAM device may have a cascade input and a cascade output to perform the cascade function. The cascade output of a higher priority CAM device may be connected to the cascade input of the next lower priority CAM device. The higher priority CAM device may assert a cascade signal on its cascade output at a predetermined time after receiving an input signal (e.g., a clock signal). Asserting the cascade signal may indicate that the higher priority CAM device has completed the compare instruction. When the lower priority CAM device detects that the cascade signal has been asserted on its cascade input, the lower priority CAM device may sample the match flag of the higher priority CAM device to determine if the lower priority CAM device may output its data to the common output data bus.
Figure 1 is a block diagram of system 100 that includes CAM devices 102 and 104 interconnected in a depth cascade configuration. The total memory size of system 100 may be larger than the individual sizes of CAMs 102 and 104. For example, if CAM 102 is a 4k x 64 CAM device and CAM 104 is a Ik x 64 CAM device, then system 100 may operate as a 5k x 64 CAM device. Any size of CAM devices may be used in the present invention. Also, CAMs of different widths may be cascaded together. For alternative embodiments, other memory devices besides CAM devices may also be used (e.g., SRAMs, multi-port RAMs, DRAMs, ROMs, EEPROMs, EPROMs, etc.). Additionally, system 100 may be formed from stand-alone CAM devices, or may be formed from integrated circuits on a common substrate. Each CAM device receives in parallel clock signal CLK 106, comparand data from comparand bus CBUS 108, and instructions (e.g., write -and-compare or other compare instructions) from instruction bus IBUS 110. For alternative embodiments, CBUS 108 and IBUS 110 may be the same bus. Other input signals may also be simultaneously provided to each of CAMs 102 and 104 including word enables signals, a reset signal, a chip enable signal, and the like. CAMs 102 and 104 may also output data to a common associated data and status information bus ADS BUS 112. The data output from CAMs 102 and 104 to ADS BUS 112 may include a match addresses, data stored in the CAM devices, or status information including a match flag, multiple match flag, full flag, skip bit, empty bit, device identification information, and /or other information.
CAM devices 102 and 104 may each include a cascade input pin /CSCDI, a cascade output pin /CSCDO, a match flag input pin /MFI, and a match flag output pin /MFO. CAM device 102 may be designated as the higher priority CAM device by coupling its /CSCDI pin to a first power supply rail (e.g., ground or approximately zero volts), and coupling its /MFI pin to a second power supply rail VDD. For one embodiment, VDD may be from approximately 1.5 volts to approximately 7.0 volts. Other voltages may be used. CAM 102 may have its /CSCDO pin coupled to the /CSCDI pin of CAM 104 via line 114, and CAM 102 may have its /MFO pin coupled to the /MFI pin of CAM 104 via line 116. If more CAM devices are included in the depth cascade of system 100, then each CAM device may similarly have its /CSCDI pin coupled to the /CSCDO pin of the next highest priority (or next lowest priority) CAM device, and its /MFI pin coupled to the /MFO pin of the next highest priority (or next lowest priority) CAM device.
The operation of system 100 may be illustrated with the aid of the illustrative timing diagram of Figure 2. At time tO, CLK 106 transitions to a high state enabling CAMs 102 and 104 to load an instruction from IBUS 110 and comparand data from CBUS 108. The instruction may be an instruction that instructs CAMs 102 and 104 to compare the comparand data with data stored in CAM arrays of each of the CAM devices. At time tl, CAMs 102 and 104 may each deassert (e.g., drive to a logic high state) their respective /CSCDO signals at their /CSCDO output pins. When CAM 102 deasserts its /CSCDO output pin and drives a high signal on line 114, CAM 104 may be disabled from asserting (e.g., driving to a logic low state) its /CSCDO output pin and from providing data to ADS BUS 112. CAM 102 (and CAM 104) may continue to deassert their respective /CSCDO output pins for a predetermined time sufficient to enable the instruction to be performed by the CAM device. For example, CAM 102 may deassert the signal on line 114 for a period of time sufficient for CAM 102 to compare the comparand data with data stored in its CAM array, and for CAM 102 and to generate a match flag indicating the results of the compare instruction (e.g., at time 2). After these internal operations have been completed, CAM 102 may assert the /CSCDO signal on line. CAM 102 may also deassert the signal on line 114 for a period of time sufficient for CAM 102 to generate a matching address, read data from the matching location of the CAM array of CAM 102, and/or to generate status information for the operation.
At time t3, CAM 104 receives the asserted /CSCDO on line 114 as a /CSCDI input signal and may use the assertion as an indicator that the match flag signal on line 116 is in a valid state. That is, the cascade output signal /CSCDO indicates when CAM 102 has completed performing the compare instruction and the match flag signal on line is valid. If the match flag signal on line 116 is asserted (e.g., a logic low state) at time t3, higher priority CAM 102 has a match and CAM 104 will not output data to ADS bus 112. If the match flag signal on line 116 is deasserted (e.g., a high logic state) at time t3, CAM 102 does not have match and CAM 104 may output data to ADS BUS 112 by time t5 if CAM 104 has determined that there is a match between the comparand data and data stored in its CAM array. CAM 104 may output /CSCDO at a time t4 after receiving the asserted /CSCDO signal on line 114 at time t3.
CAM 104 may also assert and deassert /MFO on line 120 irrespective of whether CAM 102 has a match. The /CSCDO signal on line 118 and the /MFO signal on line 120 may be generated for the benefit of any additional CAM devices that may be further depth cascaded with CAMs 102 and 104.
Figure 3 is a block diagram of CAM 300. CAM 300 is one embodiment of CAM 102 or CAM 104 of Figure 1. CAM 300 includes flow-through CAM circuitry 302 and expansion circuitry 304. Flow-through CAM circuitry 302 includes circuitry necessary for CAM 300 to operate in a flow-through mode. For other embodiments, circuitry 302 may be CAM circuitry that does not operate in a flow-through mode. Expansion circuitry 304 may include internal cascade signal generator 306, cascade output logic 308, match flag output logic 313, and ADS BUS control logic 310.
CAM 300 may operate in a depth cascaded system as follows. In response to a write and compare or any other compare instruction on IBUS 110, flow-through CAM circuitry 302 may load in the comparand data for comparison with a first group of CAM cell in its CAM array. Flow-through CAM circuitry 302 may then send a signal on line 312 to indicate that a compare instruction is being performed by CAM 300. Internal cascade signal generator 306 may then deassert (or assert) a signal on line 316 for a predetermined period of time sufficient to enable flow-through CAM circuitry 302 to determine if there is a match between the comparand data and data stored in the CAM array of flow-through CAM circuitry 302. The internal cascade signal on line 316 (and/or /CSCDO on line 322) may also be generated for every instruction and not just a compare instruction. During the predetermined period of time that the signal on line 316 is deasserted, cascade output logic 308 may cause /CSCDO on line 322 to be deasserted. When /CSCDO on line 322 is deasserted, the next lowest priority CAM device in the cascade may be inhibited from providing data to ADS BUS 112 and /or from asserting its /CSCDO output signal.
For one embodiment, internal cascade signal generator 306 comprises a one-shot circuit that may deassert the signal on line 316 for the predetermined period of time in response to a rising edge (or falling edge) of CLK 106. Any one shot circuit may be used that can generate the signal on line 316 for the appropriate amount of time. Flow-through CAM circuitry 302 may perform a comparison of the comparand data with a first group of CAM cell(s) in its CAM array. The results of the comparison may be reflected by the state of the internal match flag signals /MFINT on line 314. If there is no match with data stored in the CAM array and the comparand data, then /MFINT may be deasserted (e.g., to a high logic state) on line 314. If there is a match, then /MFINT may be asserted (e.g., to a low logic state) on line 314, and the match address of the location in the CAM array may be provided to bus 326. Match flag output logic 313 may then generate the output match flag signal /MFO on line 324 in response to /MFINT on line 314 and /MFI on line 320. For one embodiment, /MFO may be asserted if /MFINT is asserted.
The state of /MFO on line 324 may be resolved before the predetermined period of time has transpired for which the signal on line 316 is deasserted. That is, CAM 300 may assert /CSCDO on line 322 after /MFO is resolved or valid for the compare instruction. Thus, /CSCDO on line 322 may indicate when CAM 300 has completed comparing the comparand data with data stored in its CAM array, and when the results of /MFO on line 324 are valid.
If a match is determined, flow-through CAM circuitry 302 may sense data from the CAM array corresponding to the matched address, and may output the sensed data to ADS BUS control logic 310 via bus 326. ADS BUS control logic 310 may output the match address, the sensed data, and other status information to ADS BUS 112 if CAM 300 contains the highest priority match address. ADS BUS control logic 310 may determine if CAM 300 has the highest priority match address by monitoring the states of /CSCDI on line 318, /MFI on line 320, and/or /MFINT on line 314. If /MFI on line 320 is asserted, then a higher priority CAM device may have a match and ADS BUS control logic 310 may not output data to ADS BUS 112. If, however, /CSCDI on line 318 is asserted, /.MFINT on line 314 is asserted, and /MFI on line 320 is deasserted, then ADS BUS control logic 310 may determine that CAM 300 has the highest priority match address and may output data to ADS BUS 112. One embodiment of flow-through CAM circuitry 302 is disclosed in U.S. Patent Application No. 08/967,314, entitled SYNCHRONOUS CONTENT ADDRESSABLE MEMORY WITH SINGLE CYCLE OPERATION filed on October 30, 1997 which is hereby incorporated by reference. Figure 4 shows one embodiment of the flow-through CAM circuitry 400 disclosed in Application No. 08/967,314. Flow-through CAM circuitry 400 is one embodiment of flow-through CAM circuitry 302 of Figure 3. Flow-through CAM circuitry 400 may include CAM array 402, comparand register 404, sense amplifiers 406, timing generator 408, instruction decoder 410, match latch 412, priority encoder 414, address latch 416, address selector 418, and address decoder 420. Flow-through CAM circuitry 400 may also include a clock buffer for CLK 106 and for providing one or more clock signals of the same or varying phases or frequencies to timing generator 408 and /or instruction decoder 410.
Flow-through CAM circuitry 400 may perform a compare instruction in one (or more) cycles as follows. At the start of a clock cycle of CLK 106, instruction decoder 410 decodes a write and compare (or compare) instruction on IBUS 110. Instruction decoder 410 decodes the instruction and sends a signal on bus 444 to timing generator 408 indicating the nature of the instruction. Instruction decoder 410 may also output a signal on line 312 that may be coupled to internal cascade signal generator 306 as shown in Figure 3.
In response to the signal on line 444, timing generator 408 sends a signal on line 426 to cause the comparand data on CBUS 108 to be loaded into comparand register 404. The comparand data may then be compared with data stored in CAM array 402 to determine if there is a match. The states of match lines in CAM array 104 may then be latched by match latch 412 in response to a signal on line 430. Priority encoder 116 may then latch the output of match latch 412 in response to a signal on line 432. Priority encoder 414 may determine the highest priority match address from the comparison. The match address may then be output by priority encoder 414 to bus 438, and may be latched by address latch 416 (to bus 442) in response to a signal on line 434. Bus 438 may be a part of bus 326 of Figure 3. As generally known in the art, priority encoder 116 may also generate an internal match flag signal /MFINT on line 314 if there is at least one match between the comparand data and the data stored in CAM array 402. The match address on bus 442 may then be provided to address decoder 420 by address selector 418 in response to a signal on line 422. Address selector 418 may couple either the address on address bus 436 or the match address on bus 442 to address decoder 420. For an alternative embodiment, address selector 418 may be omitted and bus 442 may be directly connected to address decoder 420. Address decoder 420 may decode the match address and output the decoded match address in response to a signal on line 424. The decoded match address may select a row of CAM cells in CAM array 402 corresponding to the match address. One or more CAM cells at the high priority match address may then be sensed by sense amplifiers 406 and coupled to bus 440. Bus 440 may be a part of bus 326 of Figure 3. Before the end of the clock cycle(s) of CLK 106, the match address on bus 438, the internal match flag on line 314, and the sensed data from CAM array 402 may be provided to expansion circuitry.
Figure 5 is a logic diagram of internal cascade signal generator 500. Internal cascade signal generator 500 is one embodiment of internal cascade signal generator 306 of Figure 3 and generates CSCINT on line 316 for a predetermined period of time sufficient for CAM 300 to generate /MFINT on line 314. Other embodiments for internal cascade signal generator 306 may be used.
Generator 500 is a one-shot circuit that may have a first delay path including inverting delay elements 502, 504, and 506 coupled in series between CLK 106 and the first input of NAND gate 514. Any odd number of inverting delay elements may be used. For an alternative embodiment, any combination of inverting and /or non-inverting delay elements may also be used. Additionally, each delay element may have the same amount of delay or different amounts of delay. For one embodiment, delay elements 502 and 504 have approximately the same amounts of delay, and delay element 504 has a different amount of delay. The total amount of delay through delay element 502, 504, and 506 may be sufficient to cause NAND gate 514 to deassert CSCINT on line 316 for a sufficient amount of time such that flow-through circuitry 302 resolves /MFINT on line 314. Each delay element may include a resistor, RC network, inverter, or other delay circuitry.
Generator 500 may also include a second delay path that may include inverting delay element 508, inverter 510 and NAND gate 512. Inverting delay element 508 may have its input coupled to CLK 106 and its output coupled to the first input of NAND gate 512. Inverter 510 may have its input coupled to CLK 106 and its output coupled to the second input of NAND gate 512. The output of NAND gate 512 may be coupled to the second input of NAND gate 514. The output of NAND gate 514 may provide the internal cascade signal CSCINT on line 316. Delay element 508 may comprise the same delay element as any of delay elements 502, 504, or 506.
The operation of generator 500 may be described with the aid of the illustrative timing diagram of Figure 6. At time tO, CLK 106 transitions to a high state causing the signal on line 516 to transition to a low state at time tl and the signal on line 520 to transition to a high state at time t2. The low signal on line 520 will cause CSCINT on line 316 to be deasserted and transition to a low state at time t3. After a delay through delay element 508, the signal on line 518 will also transition to a low state at time t4. After a delay through delay elements 502, 504, and 506, the signal on line 522 will transition to a low state at time t7 and cause NAND gate 514 to assert CSCINT to a high state at time t8. Thus, CSCINT may be deasserted for a predetermined amount of time from time t3 to time t8. It will be appreciated that the second delay path may function to not allow the falling edge of CLK 106 at time t5 to assert CSCINT on line 316 before the rising edge of CLK 106 has propagated through the first delay path of delay element 502, 504, and 506. For an alternative embodiment, the signal on line 312 of Figure 3 may be used to gate CLK 106 into delay elements 502 and 508 and inverter 510. For example, CLK 106 may be logically ANDed with the signal on line 312. For yet another embodiment, CSCINT on line 316 may be gated with the signal on line 312 before coupling CSCINT to cascade output logic 308 of Figure 3. For example, CSCINT may be logically ANDed with the signal on line 312.
Figure 7 is a circuit diagram of delay element 700. Delay element 700 is one embodiment any of delay circuits 502, 504, 506, or 508 of Figure 5. Delay element 700 includes a CMOS inverter formed by PMOS transistor 706 and NMOS transistor 708. Any other inverter in any other process technology may also be used. The inverter inverts the signal at line 702 and couples the inverted signal to line 704 after a delay caused by resistor 710 and capacitors 712 and 714. Resistor 710 may be of any size. For one embodiment, resistor 710 is approximately from 100 ohms to approximately 1 kohms. Resistor 710 is optional. One, both, or none of capacitors 712 and 714 may be included in delay element 700. Capacitor 712 may be formed from a PMOS transistor, and capacitor 714 may be formed from an NMOS transistor. For one embodiment, capacitor 712 may have a width-to-length ratio of approximately 3.2 microns (μm) to approximately 7.8 μm, and capacitor 714 may have a width-to-length ratio of approximately 7.8 μm to approximately 3.2 μm.
Figure 8 is a logic diagram of cascade output logic 800. Cascade output logic 800 is one embodiment of cascade output logic 308 of Figure 3. Other embodiments for cascade output logic 308 may be used.
Cascade output logic 800 may include NAND gates 804 and 810, inverters 802, 806, and 812, PMOS transistor 808, and NMOS transistor 814. Inverter 802 has its input coupled to /CSCDI on line 318 and its output coupled to the first inputs of NAND gates 804 and 810. NAND gates 804 and 810 each have their second inputs coupled to CSCINT on line 316. Inverter 806 has its input coupled to the output of NAND gate 804, and its output coupled to the gate of PMOS transistor 808. Inverter 812 has its input coupled to the output of NAND gate 810, and its output coupled to the gate of NMOS transistor 814. PMOS transistor 808 further has its source coupled to a power supply rail VDD, and its drain coupled to /CSCDO at line 322. NMOS transistor 814 further has its drain coupled to line 322, and its source coupled to rail ground or approximately zero volts.
The operation of cascade output logic 800 may be illustrated with reference to Figure 3 and the aid of the illustrative timing diagram of Figure 9. Assume that cascade output logic 800 is included in a lower priority CAM device such as CAM 104 of Figure 1. When the compare instruction is loaded into the CAM device in response to the rising edge of CLK 106 at time tO, internal cascade signal generator 306 may then generate a one-shot signal on line 316 from time tl to t5. This may cause /CSCDO on line 322 to transition to a high state at time t2 as PMOS transistor 808 may be on and NMOS transistor 814 may be off. /CSCDI on line 318 may transition to a high state at time t3. The one-shot signal on line 316 may transition to a high state after the internal match flag signal on line 314 has transitioned to a valid state at time t4. When /CSCDI on line 318 is asserted to a low state indicating that the higher priority CAM device has completed its comparison operation, PMOS transistor 808 will be turned off and NMOS transistor 814 will be turned on to pull /CSCDO on line 322 to a low state. The low state on line 322 may indicate that CAM 300 has completed its comparison operation and the match flag output signal /MFO on line 324 is valid.
Figure 10 is a logic diagram of ADS BUS control logic 1000. ADS BUS control logic 1000 is one embodiment of the ADS bus control logic 310 of Figure 3. Other embodiments for ADS bus control logic 310 may be used.
ADS BUS control logic 1000 may include match flag validating circuitry 1002, output enable control circuitry 1004, and output buffer 1024. Match flag validating circuitry 1002 may include NAND gate 1012 having its first input coupled to the logical complement of /CSCDI via inverter 1006, and its second input coupled to /MFI via series connected inverters 1008 and 1010. Match flag validating circuitry 1002 may then provide the logical complement of NAND gate 1012 to line 1016 via inverter 1014. For an alternative embodiment, NAND gate 1012 may be replaced with an AND gate and inverters 1008, 1010, and 1014 may be removed. Match flag validating control circuitry 1002 outputs the state of /MFI on line 1016 only when /CSCDI is asserted to a low state on line 318.
Output enable control circuitry 1004 may include NAND gate 1020 that has its first input coupled to line 1016, and its second input coupled to the logical complement of /MFINT via inverter 1018. Inverter 1022 may couple the logical complement of NAND gate 1020 to output buffer 1024. When /MFINT on line 314 is deasserted to a high state indicating no match for the comparison operation, output enable control circuitry 1004 may disable output buffer 1024 such that no data is provided from bus 326 to ADS BUS 112. Output enable control circuitry 1004 may enable output buffer 1024 to output data from bus 326 to ADS BUS 112 when: (1) /MFINT on line 314 is asserted to a low state indicating a match; and (2) /MFI on line 320 is high indicating that no higher priority CAM device has a match. Output buffer 1024 may be any output buffer including a three-state output buffer that buffers signals from bus 326 to ADS BUS 112.
Figure 11 is a logic diagram of the match flag output logic 1100. Match flag output logic 1100 is one embodiment of match flag output logic 313 of Figure 3. Match flag logic 1100 may include NAND gate 1102, inverters 1104, 1106, 1108, and 1110, PMOS transistor 1112, and NMOS transistor 1114. For an alternative embodiment, inverters 1104, 1106, 1108, and 1110 may be omitted. NAND gate 1102 has its first input coupled to /MFI on line 320, and its second input coupled to /MFINT on line 314. The output of NAND gate 1102 is coupled to the gate of PMOS transistor 1112 via the series connected inverters 1104 and 1106. The output of NAND gate 1102 is also coupled to the gate of NMOS transistor 1114 via series connected inverters 1108 and 1110. PMOS transistor 1112 further has its source coupled to VDD and its drain coupled to /MFO at line 324. NMOS transistor 1114 further has its drain coupled to line 324 and its source coupled to ground or approximately zero volts. /MFO will only be deasserted to a high state if neither /MFI or /MFINT is asserted to a low state. This embodiment may be used in depth cascade systems that generate a composite match flag from the lowest priority CAM device in the cascade. Other embodiments for match flag output logic 313 of Figure 3 may be used.
With reference to Figure 1, an alternative embodiment for generating /CSCDO on line 114 (or line 118) may be to generate an internal match flag signal from an extra row of memory cells in the CAM array of CAM 102 (or CAM 104). The extra row may be appropriately masked to always generate a match condition that may then be provided out to /CSCDO on line 114. In this manner, CAM 104 may always see /CSCDI transition states and may then know when to sample /MFO on line 116.
In the foregoing specification the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than restrictive sense.

Claims

ClaimsWhat is claimed is:
1. A content addressable memory (CAM) device having a cascade output.
2. The CAM device of claim 1, further comprising a cascade input.
3. The CAM device of claim 1, further comprising a match flag output.
4. The CAM device of claim 1, further comprising a match flag input.
5. A memory device comprising: a first circuit configured to receive an instruction to be performed by the memory device; and a second circuit coupled to the first circuit, the second circuit configured to generate a first output signal indicating when the memory device has executed the instruction.
6. The memory device of claim 5, wherein the first and second output signals are generated in a single clock cycle.
7. The memory device of claim 5, wherein the second circuit is further configured to generate a second output signal indicating a result of executing the instruction.
8. The memory device of claim 7, wherein the memory device comprises a content address memory (CAM) device, the first output signal comprises a cascade output signal, and the second output signal comprises a match flag signal, and wherein the cascade output signal indicates when the match flag signal is valid.
9. The memory device of claim 5, wherein the first circuit comprises: a content address memory (CAM) array; and an instruction decoder coupled to the CAM array.
10. The memory device of claim 9, wherein the memory device further includes a timing generator coupled to the CAM array and the instruction decoder.
11. The memory device of claim 5, wherein the second circuit comprises: a cascade signal generator coupled to the first circuit, the cascade signal generator configured to output an internal cascade signal in response to an input signal to the memory device; and cascade output logic coupled to the cascade signal generator, the cascade output logic configured to generate the output signal from the memory device in response to the internal cascade signal and a cascade input signal to the memory device.
12. A memory device comprising: a memory array; an input coupled to the memory array and configured to receive input data to be compared with data stored in the memory array; and cascade circuitry coupled to the memory array, the cascade circuitry configured to generate a cascade output signal indicating when the memory device has completed comparing the input data with data stored in the memory array.
13. The memory device of claim 12, wherein the second circuit is further configured to generate a match flag output signal indicating a result of executing the instruction.
14. The memory device of claim 13, wherein the cascade output signal indicates when the match flag output signal is valid.
15. The memory device of claim 13, wherein the cascade output signal and the match flag output are generated in a single cycle.
16. The memory device of claim 12, wherein the cascade circuitry comprises: a cascade signal generator configured to output an internal cascade signal in response to an input signal; and cascade output logic coupled to the cascade signal generator, the cascade output logic configured to generate the cascade output in response to the internal cascade signal and a cascade input signal to the memory device.
17. The memory device of claim 12, further comprising bus control logic coupled to the memory array, the bus control logic enabling data stored in the memory array to be output from the memory device in response to the cascade input signal.
18. The memory device of claim 12, wherein the memory array is a content addressable memory (CAM) array.
19. A system comprismg: a first content addressable memory (CAM) device having a cascade output and a match flag output; and a second content addressable memory (CAM) device coupled in a depth cascade configuration with the first CAM device, the second CAM device having a cascade input, a match flag input, and a cascade output, the cascade input of the second CAM device coupled to the cascade output of the first CAM device, the match flag input of the second CAM device coupled to the match flag output of the first CAM device.
20. The system of claim 19, wherein the system is incorporated into an integrated circuit.
21. The system of claim 19, wherein the second CAM device outputs an asserted cascade output signal from its cascade output a predetermined amount of time after its cascade input receives an asserted cascade input signal from the first CAM device.
22. The system of claim 21, wherein the first and second CAM device each comprise a CAM array and an input configured to receive comparand data, and wherein the second CAM device outputs data stored in its CAM array when the comparand data matches data stored in its CAM array and the comparand data does not match data stored in the CAM array of the first CAM device.
23. A method of depth cascading a first and second memory device, comprising the steps of: instructing the first and second memory devices to execute an operation; and providing a cascade output signal from the first memory device to the second memory device, the cascade output signal indicating when the first memory device has completed executing the instruction.
24. The method of claim 23, wherein the operation instructs the first and second memory device to perform a comparison of input data with data stored in at least one memory cell of each of the first and second memory devices.
25. The method of claim 24, further comprising the step of providing a match flag signal from the first memory device to the second memory device, the match flag signal indicating whether the input data matches the data stored in the first memory device.
26. The method of claim 25, wherein the cascade output signal is asserted by the first memory device when the match flag signal is valid.
27. The method of claim 26, wherein the first and second memory devices have outputs coupled to an output bus, and wherein only the first memory device outputs data to the output bus if the input data matches the data stored in the first memory device.
28. The method of claim 26, wherein in one clock cycle the operation is performed by the first and second memory devices, the cascade output signal is asserted by the first memory device, and the first memory device outputs data to the output bus.
29. The method of claim 26, wherein in response to the cascade signal, only the second memory device outputs data to the output bus if the input data matches the data stored in the second memory device and does not match the data stored in the first memory device.
30. The method of claim 29, wherein in one clock cycle the operation is performed by the first and second memory devices, the cascade output signal is asserted by the first memory device, and the second memory device outputs data to the output bus.
31. A method of operating a memory device comprising the steps of: receiving an instruction for the memory device to perform; and generating an output signal from the memory device, the output signal indicating when the memory device has completed executing the instruction.
PCT/US1998/021805 1997-10-30 1998-10-14 Method and apparatus for cascading content addressable memory devices WO1999023662A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU13611/99A AU1361199A (en) 1997-10-30 1998-10-14 Method and apparatus for cascading content addressable memory devices

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US08/967,314 US6199140B1 (en) 1997-10-30 1997-10-30 Multiport content addressable memory device and timing signals
US08/967,314 1997-10-30
US09/001,110 1997-12-30
US09/001,110 US6148364A (en) 1997-12-30 1997-12-30 Method and apparatus for cascading content addressable memory devices

Publications (1)

Publication Number Publication Date
WO1999023662A1 true WO1999023662A1 (en) 1999-05-14

Family

ID=26668573

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1998/021805 WO1999023662A1 (en) 1997-10-30 1998-10-14 Method and apparatus for cascading content addressable memory devices

Country Status (2)

Country Link
AU (1) AU1361199A (en)
WO (1) WO1999023662A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007097712A1 (en) * 2006-02-27 2007-08-30 Trek 2000 International Ltd Method and apparatus for cascade memory

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08167295A (en) * 1994-12-14 1996-06-25 Kawasaki Steel Corp Associative memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08167295A (en) * 1994-12-14 1996-06-25 Kawasaki Steel Corp Associative memory

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GHOSE K ET AL: "RESPONSE PIPELINED CAM CHIPS: THE FIRST GENERATION AND BEYOND", PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON VLSI DESIGN, 5 January 1994 (1994-01-05), pages 365 - 368, XP002049055 *
PATENT ABSTRACTS OF JAPAN vol. 096, no. 010 31 October 1996 (1996-10-31) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007097712A1 (en) * 2006-02-27 2007-08-30 Trek 2000 International Ltd Method and apparatus for cascade memory
US8443132B2 (en) 2006-02-27 2013-05-14 Trek 2000 International Ltd Method and apparatus for cascade memory

Also Published As

Publication number Publication date
AU1361199A (en) 1999-05-24

Similar Documents

Publication Publication Date Title
US6148364A (en) Method and apparatus for cascading content addressable memory devices
US6219748B1 (en) Method and apparatus for implementing a learn instruction in a content addressable memory device
US6240485B1 (en) Method and apparatus for implementing a learn instruction in a depth cascaded content addressable memory system
US6678786B2 (en) Timing execution of compare instructions in a synchronous content addressable memory
US6564289B2 (en) Method and apparatus for performing a read next highest priority match instruction in a content addressable memory device
US6317350B1 (en) Hierarchical depth cascading of content addressable memory devices
US6243280B1 (en) Selective match line pre-charging in a partitioned content addressable memory array
US6191969B1 (en) Selective match line discharging in a partitioned content addressable memory array
US6460112B1 (en) Method and apparatus for determining a longest prefix match in a content addressable memory device
US6137707A (en) Method and apparatus for simultaneously performing a plurality of compare operations in content addressable memory device
US6499081B1 (en) Method and apparatus for determining a longest prefix match in a segmented content addressable memory device
US6178133B1 (en) Method and system for accessing rows in multiple memory banks within an integrated circuit
US6539455B1 (en) Method and apparatus for determining an exact match in a ternary content addressable memory device
US20030028713A1 (en) Method and apparatus for determining an exact match in a ternary content addressable memory device
US6493793B1 (en) Content addressable memory device having selective cascade logic and method for selectively combining match information in a CAM device
US6301322B1 (en) Balanced dual-edge triggered data bit shifting circuit and method
US6415374B1 (en) System and method for supporting sequential burst counts in double data rate (DDR) synchronous dynamic random access memories (SDRAM)
WO1999023663A1 (en) Synchronous content addressable memory with single cycle operation
KR100619204B1 (en) Content addressable memory system
GB2302972A (en) Burst length detection circuit for a memory device
WO2005091934A2 (en) Sense amplifier systems and methods
US6892272B1 (en) Method and apparatus for determining a longest prefix match in a content addressable memory device
WO1999023662A1 (en) Method and apparatus for cascading content addressable memory devices
US6072746A (en) Self-timed address decoder for register file and compare circuit of a multi-port CAM
US6408411B1 (en) Two pass multi-state parallel test for semiconductor device

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AL AM AT AT AU AZ BA BB BG BR BY CA CH CN CU CZ CZ DE DE DK DK EE EE ES FI FI GB GD GE GH GM HR HU ID IL IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SK SL TJ TM TR TT UA UG US UZ VN YU ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW SD SZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

NENP Non-entry into the national phase

Ref country code: KR

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: CA