The present invention relates to integrated circuit memory devices and, more particularly, to content addressable memory (CAM) devices and methods of operating same.
In many memory devices, including random access memory (RAM) devices, data is typically accessed by supplying an address to an array of memory cells and then reading data from the memory cells that reside at the supplied address. However, in content addressable memory (CAM) devices, data within a CAM array is not accessed by initially supplying an address, but rather by initially applying data (e.g., search words) to the array and then performing a search operation to identify one or more entries within the CAM array that contain data equivalent to the applied data and thereby represent a “match” condition. In this manner, data is accessed according to its content rather than its address. Upon completion of the search operation, the identified location(s) containing the equivalent data is typically encoded to provide an address (e.g., block address+row address within a block) at which the matching entry is located. If multiple matching entries are identified in response to the search operation, then local priority encoding operations may be performed to identify a location of a best or highest priority matching entry. Such priority encoding operations frequently utilize the relative physical locations of multiple matching entries within the CAM array to identify a highest priority matching entry. An exemplary CAM device that utilizes a priority encoder to identify a highest priority matching entry is disclosed in commonly assigned U.S. Pat. No. 6,370,613 to Diede et al., entitled “Content Addressable Memory with Longest Match Detect,” the disclosure of which is hereby incorporated herein by reference. Additional CAM devices are described in U.S. Pat. Nos. 5,706,224, 5,852,569 and 5,964,857 to Srinivasan et al. and in U.S. Pat. Nos. 6,101,116, 6,256,216, 6,128,207 and 6,262,907 to Lien et al., assigned to the present assignee, the disclosures of which are hereby incorporated herein by reference.
CAM cells are frequently configured as binary CAM cells that store only data bits (as “1” or “0” logic values) or as ternary (or quaternary) CAM cells that store data bits and mask bits. As will be understood by those skilled in the art, when a mask bit within a ternary CAM cell is inactive (e.g., set to a logic 1 value), the ternary CAM cell may operate as a conventional binary CAM cell storing an “unmasked” data bit. When the mask bit is active (e.g., set to a logic 0 value), the ternary CAM cell is treated as storing a “don't care” (X) value, which means that all compare operations performed on the actively masked ternary CAM cell will result in a cell match condition. Thus, if a logic 0 data bit is applied to a ternary CAM cell storing an active mask bit and a logic 1 data bit, the compare operation will indicate a cell match condition. A cell match condition will also be indicated if a logic 1 data bit is applied to a ternary CAM cell storing an active mask bit and a logic 0 data bit. Accordingly, if a data word of length N, where N is an integer, is applied to a ternary CAM array having a plurality of entries therein of logical width N, then a compare operation will yield one or more match conditions whenever all the unmasked data bits of an entry in the ternary CAM array are identical to the corresponding data bits of the applied search word. This means that if the applied search word equals {1011}, the following entries will result in a match condition in a CAM comprising ternary CAM cells: {1011}, {X011}, {1X11}, {10X1}, {101X}, {XX11}, {1XX1}, . . . , {1XXX}, {XXXX}. As will be understood by those skilled in the art, conventional “quaternary” CAM cells, which have four valid combinations of states: ((data=0, mask=active), (data=1, mask=active), (data=0, mask=inactive), (data=1, mask=inactive)), are frequently treated as “ternary” CAM cells because two of the four states represent an equivalent active mask condition. In contrast, ternary CAM cells may include CAM cells having two bits of data that are configurable in only three valid combinations: ((0,1)=0, (1,0)=1, (0,0)=mask and (1,1)=invalid). Both types of cells will be referred to herein as ternary CAM cells.
CAM devices may also use coding techniques to detect and correct one-bit soft errors in entries within a CAM array. One such CAM device that uses a parity comparator to detect errors is described in U.S. Pat. No. 6,067,656 to Rusu et al., entitled “Method and Apparatus for Detecting Soft Errors in Content Addressable Memory Arrays.” Another such CAM device that uses dynamic content addressable memory (DCAM) cells is disclosed in U.S. Pat. No. 6,430,073 to Batson et al., entitled “DRAM CAM Cell with Hidden Refresh.” In particular, the '073 patent discloses a technique for performing hidden refresh of dynamic CAM entries using non-destructive read operations that may be performed during match line (ML) precharge operations. Upon reading, the entries may be checked for errors and possibly corrected before undergoing a refresh write operation.
U.S. Pat. No. 6,597,595 to Ichiriu et al. discloses a CAM device that performs error detection signaling operations. These error detection signaling operations are described as background error checking operations that consume little if any compare bandwidth. This is because any operation to read an entry from a CAM array for error checking purposes may be performed concurrently with the performance of compare operations on the same CAM array. As illustrated by
Referring now to
Notwithstanding the disclosure of the '595 patent, the performance of a background operation to read an entry from a CAM array while a foreground compare operation is being performed concurrently on the same CAM array may impact the reliability of the compare operation. This is because the performance of a read operation on a row of CAM cells within a CAM array may operate to “stress” the memory elements within the row of CAM cells and cause the logic levels of signals within the memory elements to fluctuate. Such fluctuations can represent a significant disturbances to the outputs of the memory elements, particularly if the CAM cells are powered at low voltage levels (e.g., Vdd˜1 Volt), and may result in erroneous compare operations. Accordingly, it may be more advantageous to perform read operations for error checking purposes as foreground operations that consume at least some degree of compare bandwidth.
Unfortunately, if the read operations used for error checking purposes in the error detector/corrector 501 of
Search engine devices according to embodiments of the present invention include a content addressable memory (CAM) core having a plurality of CAM array blocks therein and a control circuit that is electrically coupled to the CAM core. The control circuit may include, among other things, an instruction FIFO, instruction loading and execution logic and check bit generation and error correction logic. Alternatively, the instruction loading and execution logic may perform instruction pipelining operations that eliminate the need for an instruction FIFO, or the instruction loading and execution logic may be configured to support no-op cycle generation even when the instruction FIFO is partially full. The control circuit is configured to support internal error detection and correction operations that can operate without significant impact on the compare bandwidth of the search engine device, even when operations to read entries from the CAM core are performed as foreground operations that may block concurrent search operations. The control circuit may perform the error detection and correction operations by issuing multiple read instructions. These instructions include a first instruction (e.g., error check instruction) to read at least a first entry within the CAM core for the purpose of error detection and then, in response to detecting the first entry as erroneous, issuing a second instruction to read the first entry from the CAM core.
In particular, the first read operation may be performed as a “high bandwidth” error checking operation that causes many CAM entries to be read in parallel from a plurality of CAM array blocks and checked in parallel for parity errors. The second read operation (or sequence of read operations) is a much more selective operation because it is directed at only those entries that have already been detected as erroneous. In many instances, the second read operation will not need to be performed because many of the first “high bandwidth” read operations will result in the detection of no errors in a group of CAM entries.
To respond to the second read operation, an erroneous entry is transferred to the error correction logic within the control circuit. The error correction logic may operate to detect the presence of one or more errors (e.g, 2–4 errors) within the entry and, if possible, correct the entry. In a typical embodiment, the error correction logic may be configured to detect as many as four errors within an entry and correct one error within the entry. If two or more errors are present and cannot be corrected, then the search engine device may notify a command host of the erroneous entry and the corresponding entry may be invalidated within the CAM core. This notification operation may also include notification of all entries detected as erroneous, even if they are subject to correction within the search engine device.
The ability to detect a high number of errors within an entry and also correct the entry without requiring a check word having an excessive number of check bits is achieved using a modified Hamming code word that combines parity and non-parity check bits. In particular, the Hamming code word may consist of P parity bits and H non-parity bits, where H is a positive integer greater than one and P is a positive even integer greater than two and the following relationship is met: 2(H+1/2P)≧N+H+½P+1≧2(H+1/2P−1), where N is a length of the data word (including validity bit, etc.).
Further embodiments of the present invention include methods of operating a CAM-based search engine device. These methods include issuing a parity check instruction and a multi-block row address to a CAM core within a search engine device. This instruction may be issued in response to detecting a presence of a no-op cycle within an instruction pipeline within the search engine device. In response to this instruction, a plurality of entries may be read in parallel from a plurality of CAM array blocks within the CAM core. A local parity check operation is then performed on the plurality of entries in order to detect a presence of at least a first entry in the plurality of entries that is erroneous. This operation may also include the generation of an error indication word at a read data port of the CAM core. The error indication word may be encoded so that each bit of the word indicates whether or not a corresponding one of the plurality of entries is erroneous.
In response to this detection, an internally generated instruction is issued to read the first entry from the CAM core. This instruction causes a “second” reading of the first entry from the CAM core into error correction logic within the search engine device. The first entry is then corrected within the search engine device using an error correction code that is held by the first entry. Once corrected, the first entry is rewritten into the CAM core. The latter operations are repeated until all entries that have been detected as erroneous are corrected. Once all erroneous entries have been corrected, the multi-block row address is incremented and another parity-check instruction is issued to the CAM core to repeat the error checking and correcting operations.
The present invention now will be described more fully herein with reference to the accompanying drawings, in which preferred embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like reference numerals refer to like elements throughout and signal lines and signals thereon may be referred to by the same reference characters. Signals may also be synchronized and/or undergo minor boolean operations (e.g., inversion) without being considered different signals.
The instructions provided to the instruction buffer 12 may be generated by a command host (not shown), such as a network processing unit (NPU), and received by an instruction mapped interface (not shown) of the search engine device 10. The search engine device 10 is also illustrated as including an instruction execution module 14 having instruction loading and execution logic therein. This instruction execution module 14 performs operations of a finite state machine (FSM), including, among other things, instruction scheduling and arbitration. As illustrated, the instruction execution module 14 may issue instructions to the CAM core 16 via an instruction interface. In response, the CAM core 16 performs operations and generates results that are provided to a result module 18 via a CAM core result interface. Some of these results may be processed by the result module 18 and passed to results mailboxes (not shown), for subsequent reporting to the command host, or passed to a results bus for immediate reporting. Other results may be fed back to the instruction execution module 14, as illustrated. A detailed description of operations performed by the instruction buffer 12, instruction execution module 14 and result module 18 is also provided in commonly assigned U.S. application Ser. No. 10/721,036, filed Nov. 21, 2003, the disclosure of which is hereby incorporated herein by reference. These devices, which surround the CAM core 16 on an integrated circuit chip, collectively define a control circuit as described herein.
The instruction execution module 14 is illustrated as including check bit generation and error correction logic therein. In some embodiments of the present invention, the check bit generation logic may be configured to generate check bits that support error detection and error correction operations, which may be performed independently inside and outside the CAM core 16. The check bit generation logic may be configured to generate a modified Hamming code word for each entry that is written into the CAM core 16. This modified Hamming code word may be attached to each entry when it is written into the CAM core 16 or stored in a separate check bit memory (not shown) that maps to each entry within the CAM core 16. The use of separate check bit memory is described more fully in commonly assigned U.S. application Ser. No. 10/619,635, filed Jul. 15, 2003. The modified Hamming code supports limited 4-bit error detection and 1-bit error correction operations. In particular, a maximum of four errors may be detected so long as the four errors are distributed over the Xe, Xo, Ye and Yo bits of an entry, as described below.
The 80-bit wide CAM entry 21 of
The CAM entry 21 is also illustrated as including an entry valid bit (EV) and a force no-hit bit (FNH). The entry valid bit (EV) is a searchable bit that may be set low to represent an invalid entry or set high to represent a valid entry. The force no-hit bit (FNH) may be set to force a corresponding entry to register a miss condition whenever a search operation is performed on the entry. An active FNH bit will also operate to cause all lower priority matching entries within the same CAM segment, if any, to register a miss condition(s). The entry valid bit (EV) and force no-hit bit (FNH) may be stored within binary CAM cells. Both of these bits can be used in the parity bit calculation, which means any operations to change these bits within an entry in the CAM core 16 may need to be accompanied by or followed by operations to correct the check bit information in the entry. Accordingly, if an EV bit is switched from a valid value to an invalid value to thereby age out a corresponding entry during CAM aging operations, for example, the check bits associated with the entry will also need to be updated. This will prevent a formerly aged out entry from subsequently being detected as erroneous and then corrected (i.e., reborn) by switching back the value of the EV bit. This correction of the check bit information when switching the EV bit to an invalid state can be achieved by writing a default entry with generic data and FNH values (e.g., all 0's), an invalid EV bit and check bits that are properly determined for these values. Operations to perform aging on CAM core entries is more fully illustrated and described in U.S. application Ser. No. 10/714,680, filed Nov. 14, 2003, the disclosure of which is hereby incorporated herein by reference.
The entry 21 of
The six Hamming code bits H2–H7 and four parity bits (Xe, Ye, Xo and Yo) may be generated within the check bit generation logic using circuitry that is configured to perform the following boolean operations:
A more detailed explanation of the characteristics and layout of the entry 21 within a segmented CAM array block is provided in U.S. application Ser. No. 10/701,048, filed Nov. 4, 2003.
Communication to and from the CAM core 16 is made by the CAM core instruction and result interfaces. As illustrated by
The CAM core result interface is configured to generate one or more hit signals, which indicate the presence of matching entries within the CAM core 16 during search operations, and index data that identifies addresses of matching entries. The result interface is also configured with a read data port, as shown. As described more fully hereinbelow, this read data port may be used as a multi-function port that is active during parity check operations.
As illustrated by
In response to the parallel read operation, two entries 21 (left and right) from each CAM array block will be read into the parity check logic circuits associated with each CAM array block. The parity check logic circuits will generate a parity result (PARITY RESULT) upon receipt of each entry 21. The parity result may be determined using logic that performs the following boolean operations:
Each parity check logic circuit in the illustrated CAM core 16 of
In this manner, the two bits of parity result that are generated from an entry will indicate whether the error is in the X bits, Y bits, or both X and Y bits. This indication of X bit or Y bit error may be useful when reporting erroneous entries to the command host.
As illustrated by
Referring again to
The error detection and correction operations 600 performed by the search engine device 10 of
As illustrated by Block 610, a parity check instruction and the counter value (row address) are forwarded to the CAM core 16. In response to this parity check instruction, a plurality of entries are read in parallel from the CAM array blocks into the parity check logic that is embedded within the CAM core 16, Block 612. In the embodiments described above, this parity check read operation results in the parallel transfer of 64 entries 21 into the parity check logic. (See, e.g.,
If the error indication word indicates the presence of one or more parity errors when it is initially processed by the block address decoder 15, Block 618, then it is decoded into one or more corresponding addresses. The addresses of the erroneous entries are then added to the error address FIFO 17, Block 620, and control is returned to Block 602. If the error indication word does not indicate at least one error at Block 618, then control is returned directly to Block 602 without any further processing of the error indication word.
Once control is returned to Block 602 and an opening in the instruction pipeline is detected, a check is made to determine whether there are any corrected entries pending in the instruction execution module, Block 604. If the answer is no, then a check is made at Block 606 to determine whether the error address FIFO 17 is empty. Assuming that the two entry errors illustrated by
The erroneous entry is then forwarded by the result module 18 to the instruction execution module 14, Block 628. At Block 630, the erroneous entry is evaluated further for the presence of errors and corrected by the error correction logic within the instruction execution module 14 if possible. These error correction operations identified by Block 630 may be performed as background operations without impacting the compare bandwidth of the search engine device 10.
Thereafter, the corrected entry is stored in a buffer memory (not shown) in the instruction execution logic 14 pending rewriting into the CAM core 16. As described above, the four bits of parity associated with each entry in the CAM core 16 support the detection of as many as four parity errors. Each of these parity bits, Xe, Ye, Xo and Yo, is a function of the data bits and at least some of the Hamming code bits H2–H7. For example, the parity bit Xe is a function of the even X bits, the FNH bit and Hamming code bit H4, as illustrated above. The parity bit Yo is a function of the odd Y bits and Hamming code bits H3 and H7. The functions performed by the parity bits and Hamming code bits may also be combined as a check word to support the correction of a single bit error within the entry. If desired, a greater number of check bits can be used in some embodiments to support correction of a greater number of errors. In the event the parity checking operation indicates the presence of two or as many as four errors within the entry 21 that cannot be corrected, then the entry 21 and its address within the CAM core 16 may be reported to the command host for further processing and the entry 21 may be invalidated within the CAM core 16. These reporting operations may also apply to erroneous entries that are subject to correction. These reporting operations may be facilitated by the use of an error FIFO that retains the erroneous entries and/or their addresses. This error FIFO may be subject to periodic reading operations by the command host.
After the operations of Block 630, control is passed back to Blocks 602 and 604. Accordingly, upon detection of an opening (e.g., no-op cycle) within the instruction pipeline, the check of whether a corrected entry is pending results in an affirmative answer, Block 604, and control is passed to Block 632. The corrected entry, corresponding address and a write instruction are then passed to the CAM core 16. In response, the corrected entry is written over the corresponding erroneous entry in the designated CAM array block, Block 634, and the address is removed from the error address FIFO 17. Operations (not shown) may also be performed to compare each incoming write address (e.g., those issued by a command host) against the entries of the error address FIFO 17 to detect a match. If a match is present, the externally generated write instruction is submitted to the CAM core 16 and the matching address within the error address FIFO 17 is removed so that no overwrite operation to correct an “erroneous” entry is performed on a newly written entry. In this manner, the error address FIFO 17 operates as a searchable cache memory. Similar compare operations may also be performed with respect to an incoming read address. In the event a match is detected, the corresponding read operation may be suspended until such time as the erroneous entry has been corrected. Alternatively, the read operation may be marked so that any read result will be accompanied by a flag or other indication that the entry is erroneous.
Upon completion of the write operation illustrated by Block 634, control is passed to Block 602 and the sequence of operations is repeated. In particular, control is again passed through Blocks 602, 604 and 606 and the next error address in the FIFO is set as the current error address, Block 622. The operations associated with Blocks 624–630 are then performed and the error address FIFO 17, which was originally filled with two addresses as described above, is emptied. Control is then passed through Blocks 602, 604, 606 to Block 608 where the multi-block row address counter is incremented before performing the next parity check operation and repeating the above described operations in sequence for all of the rows (e.g., 2048 rows in
In the drawings and specification, there have been disclosed typical preferred embodiments of the invention and, although specific terms are employed, they are used in a generic and descriptive sense only and not for purposes of limitation, the scope of the invention being set forth in the following claims.
This application is a continuation-in-part (CIP) of U.S. application Ser. No. 10/619,635, filed Jul. 15, 2003, now U.S. Pat. No. 6,870,749 and a continuation-in-part (CIP) of U.S. application Ser. No. 10/701,048, filed Nov. 4, 2003, the disclosures of which are hereby incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
3665422 | McCoy et al. | May 1972 | A |
4112502 | Scheuneman | Sep 1978 | A |
4747080 | Yamada | May 1988 | A |
4779226 | Haraszti | Oct 1988 | A |
4791606 | Threewitt et al. | Dec 1988 | A |
4903268 | Hidaka et al. | Feb 1990 | A |
4958352 | Noguchi et al. | Sep 1990 | A |
4991136 | Mihara | Feb 1991 | A |
5046046 | Sweha et al. | Sep 1991 | A |
5127014 | Raynham | Jun 1992 | A |
5184325 | Lipovski | Feb 1993 | A |
5233614 | Singh | Aug 1993 | A |
5319589 | Yamagata et al. | Jun 1994 | A |
5450424 | Okugaki et al. | Sep 1995 | A |
5455834 | Chang et al. | Oct 1995 | A |
5469450 | Cho et al. | Nov 1995 | A |
5491703 | Barnaby et al. | Feb 1996 | A |
5561429 | Halberstam et al. | Oct 1996 | A |
5570377 | Merino Gonzalez et al. | Oct 1996 | A |
5572460 | Lien | Nov 1996 | A |
5604753 | Bauer et al. | Feb 1997 | A |
5629950 | Godiwala et al. | May 1997 | A |
5642320 | Jang | Jun 1997 | A |
5644583 | Garcia et al. | Jul 1997 | A |
5682394 | Blake et al. | Oct 1997 | A |
5699369 | Guha | Dec 1997 | A |
5724296 | Jang | Mar 1998 | A |
5727003 | Zook | Mar 1998 | A |
5761222 | Baldi | Jun 1998 | A |
5796671 | Wahlstrom | Aug 1998 | A |
5796758 | Levitan | Aug 1998 | A |
5872802 | Knaack et al. | Feb 1999 | A |
6009548 | Chen et al. | Dec 1999 | A |
6032214 | Farmwald et al. | Feb 2000 | A |
6058500 | DesJardins et al. | May 2000 | A |
6067656 | Rusu et al. | May 2000 | A |
6134631 | Jennings, III | Oct 2000 | A |
6137707 | Srinivasan et al. | Oct 2000 | A |
6151247 | Estakhri et al. | Nov 2000 | A |
6154384 | Nataraj et al. | Nov 2000 | A |
6188629 | Kaplinsky | Feb 2001 | B1 |
6199140 | Srinivasan et al. | Mar 2001 | B1 |
6216246 | Shau | Apr 2001 | B1 |
6219815 | DesJardins et al. | Apr 2001 | B1 |
6233717 | Choi | May 2001 | B1 |
6243281 | Pereira | Jun 2001 | B1 |
6289471 | Gordon | Sep 2001 | B1 |
6324087 | Pereira | Nov 2001 | B1 |
6362990 | Gibson et al. | Mar 2002 | B1 |
6374325 | Simpson et al. | Apr 2002 | B1 |
6381191 | Ooishi | Apr 2002 | B2 |
6397290 | Williams et al. | May 2002 | B1 |
6408417 | Moudgal et al. | Jun 2002 | B1 |
6421265 | Lien et al. | Jul 2002 | B1 |
6430073 | Batson et al. | Aug 2002 | B1 |
6434033 | Chien | Aug 2002 | B1 |
6445628 | Pereira et al. | Sep 2002 | B1 |
6477615 | Tanaka | Nov 2002 | B1 |
6538911 | Allan et al. | Mar 2003 | B1 |
6542391 | Pereira et al. | Apr 2003 | B2 |
6560156 | Lien et al. | May 2003 | B2 |
6563754 | Lien et al. | May 2003 | B1 |
6564754 | Cohen | May 2003 | B1 |
6597595 | Ichiriu et al. | Jul 2003 | B1 |
6618281 | Gordon | Sep 2003 | B1 |
6661687 | Lien et al. | Dec 2003 | B1 |
6690595 | Srinivasan | Feb 2004 | B1 |
6700810 | Ichiriu et al. | Mar 2004 | B1 |
6700827 | Lien et al. | Mar 2004 | B2 |
6707693 | Ichiriu et al. | Mar 2004 | B1 |
6711703 | MacLaren et al. | Mar 2004 | B2 |
6715116 | Lester et al. | Mar 2004 | B2 |
6728124 | Ichiriu et al. | Apr 2004 | B1 |
6741253 | Radke et al. | May 2004 | B2 |
6754093 | Lien | Jun 2004 | B2 |
6760881 | Batson et al. | Jul 2004 | B2 |
6775168 | Park et al. | Aug 2004 | B1 |
6845472 | Walker et al. | Jan 2005 | B2 |
6870749 | Park et al. | Mar 2005 | B1 |
6879504 | Lien et al. | Apr 2005 | B1 |
6888732 | Hu | May 2005 | B2 |
6922751 | Regev et al. | Jul 2005 | B2 |
20020067632 | Batson et al. | Jun 2002 | A1 |
20020075714 | Pereira et al. | Jun 2002 | A1 |
20020159320 | Lien et al. | Oct 2002 | A1 |
20030007408 | Lien et al. | Jan 2003 | A1 |
20030074630 | Batson et al. | Apr 2003 | A1 |
20030081464 | Vlasenko | May 2003 | A1 |
Number | Date | Country | |
---|---|---|---|
Parent | 10619635 | Jul 2003 | US |
Child | 10738264 | US | |
Parent | 10701048 | Nov 2003 | US |
Child | 10619635 | US |