The present invention relates generally to content addressable memory devices, and more particularly to error detection and correction within content addressable memory devices.
Content addressable memory (CAM) devices are often used in network switching and routing applications to determine forwarding destinations for data packets. A CAM device can be instructed to compare a selected portion of an incoming packet, typically a destination field within the packet header, with data values, called CAM words, stored in an associative storage array within the CAM device. If the destination field matches a CAM word, the CAM device records a CAM index that identifies the location of the matching CAM word within the storage array, and asserts a match flag to signal the match. The CAM index is then typically used to index another storage array, either within or separate from the CAM device, to retrieve a destination address or other routing information for the packet.
As process geometries shrink, the associative storage arrays of CAM devices, i.e., CAM arrays, become increasingly susceptible to errors induced by alpha-particle bombardment. Such errors are commonly referred to as soft errors and may result in false match or mismatch determinations and ultimately in non-delivery of packets or delivery of packets to incorrect destinations. Accordingly it is desirable to provide some technique for detecting and correcting errors within a CAM device.
In one error detection and correction technique, referred to herein as host-based scanning, a host processor reads the CAM array entry by entry, and compares the array content to an image stored in a backing store (i.e., another memory). Unfortunately this is a relatively slow operation that consumes significant system resources (i.e., in terms of host processing and access port utilization). In another error detection and correction scheme, an error correction code is stored along with each entry within the CAM array and used to detect and correct errors that occur within the entry. Unfortunately, such error correction codes typically require storage of multiple code bits per storage row, significantly reducing the available data storage space within the CAM array.
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
In the following description and in the accompanying drawings, specific nomenclature and drawing symbols are set forth to provide a thorough understanding of the present invention. In some instances, the nomenclature and symbols may imply specific details that are not required to practice the present invention. For example, the interconnection between circuit elements or circuit blocks may be shown or described as multi-conductor or single conductor signal lines. Each of the multi-conductor signal lines may alternatively be single-conductor signal lines, and each of the single-conductor signal lines may alternatively be multi-conductor signal lines. A signal is said to be “asserted” when the signal is driven to a low or high logic state (or charged to a high logic state or discharged to a low logic state) to indicate a particular condition. Conversely, a signal is said to be “deasserted” to indicate that the signal is driven (or charged or discharged) to a state other than the asserted state (including a high or low logic state, or the floating state that may occur when the signal driving circuit is transitioned to a high impedance condition, such as an open drain or open collector condition). A signal driving circuit is said to “output” a signal to a signal receiving circuit when the signal driving circuit asserts (or deasserts, if explicitly stated or indicated by context) the signal on a signal line coupled between the signal driving and signal receiving circuits. A signal line is said to be “activated” when a signal is asserted on the signal line, and “deactivated” when the signal is deasserted. Additionally, the prefix symbol “/” attached to signal names indicates that the signal is an active low signal (i.e., the asserted state is a logic low state). A line over a signal name (e.g., ‘{overscore (<signal name>)}’) is also used to indicate an active low signal. Active low signals may be changed to active high signals and vice-versa as is generally known in the art.
In embodiments of the present invention, row and column parity values that correspond to rows and columns of CAM cells within a CAM device are used to detect and automatically correct soft errors. In one embodiment, a row parity bit is associated with each row of CAM cells, and a column parity bit is associated with each column of CAM cells. A scan controller within the CAM device systematically reads each row of CAM cells within a CAM array, generates a parity check bit based on the content of the row (i.e., the row value) and compares the parity check bit against the corresponding row parity bit. If the check bit and the row parity bit do not match, a parity error is signaled and the scan controller stores the address of the row in an error address register.
In addition to checking for row parity errors, the scan controller applies each row value to a column parity calculation to enable detection of column parity errors. In one embodiment, each row value is added to a partial column parity word in an excellent-OR operation such that, after all row values have been added, the partial column parity word represents an exclusive-OR combination of the content of all the rows within the CAM array, and each bit within the partial column parity word represents an exclusive-OR of all the bits within a corresponding column of the CAM array. Thus, after each completed scan of the CAM array (i.e., reading all rows of CAM cells and adding the row values to the partial column parity word), the partial column parity word constitutes a newly generated column parity word which may be compared with a previously stored column parity word to detect the presence of a column parity error. If a soft error has occurred within a given cell of the CAM array, the row address of the error (i.e., detected through row parity checking and stored in the error address register), and the bit position of the error (i.e., the column offset of the error detected through column parity checking) constitute row and column error coordinates that uniquely identify the bit in error. Accordingly, the row value containing the bit in error may be read, and the bit in error changed (e.g., complemented) to generate a corrected row value. The corrected row value may then be written back to the CAM array at the error address to clear the error.
In one embodiment of the invention, the total number of parity bits used to provide error detection and correction is N row parity bits plus M column parity bits, where N is the number of rows of storage to be error corrected, and M is the number of bits per row. By contrast, error correction codes typically require storage of log2(M) bits per row such that the total number of error correction code bits to be stored is N*log2(M). Considering a 1024 row×72 bit CAM array, as an example, such an error correction code scheme would require storage of 1024*log2(72)=7,168 error correction code bits (i.e., after rounding log2(72) up to 7). By contrast, embodiments of the present invention enable error correction for the same storage array using as few as 1024+72=1096 bits. The storage savings grows as the number of rows in the array increases. Note that for other embodiments, each row of storage in the CAM array may use more than one row parity bit and/or each column of storage in the CAM array may use more than one column parity bit.
The CAM array 101 includes a plurality of CAM cells arranged in rows for storing CAM words. In one embodiment, each row of CAM cells includes at least one validity cell to store a value that indicates whether the row contains a valid CAM word. Each such value is referred to herein as a validity bit, though more than one bit may be used to indicate whether a given row of CAM cells contains a valid entry. Also, additional bits may be stored within each row to enable per-row control of search and row access operations. The CAM array 101 is coupled to (i.e., connected directly to or through one or more intervening circuits) the address circuit 103, priority encoder 114, flag circuit 112, comparand register 115, and read/write circuit 161. The comparand register 115 is used to store a comparand received via the comparand bus 143, and outputs respective bits of the comparand value onto corresponding comparand lines of the CAM array 101. In alternative embodiments, the comparand register 115 may be omitted and the comparand applied directly to comparand lines from the comparand bus 143. During a compare operation, the comparand may be masked by a global mask value (not shown), then compared simultaneously with all the CAM words stored in the CAM array 101. Each of the rows of CAM cells is coupled to a corresponding match line 182, and any match between the comparand and a valid CAM word results in the corresponding match line 182 being driven (or left charged or discharged) to a match state to signal the match condition to the priority encoder 114 and flag circuit 112. In an embodiment that includes validity cells, each validity bit that indicates an empty condition (i.e., no valid value stored in the row) prevents a match from being signaled on the corresponding match line, for example, by discharging the match line or otherwise driving the match line to a mismatch state.
When a match condition is signaled on one or more of the match lines 182, the priority encoder 114 determines a highest priority one of the match signals and outputs a corresponding CAM index 174 (i.e., address of the CAM word that generated the highest priority match signal). The flag circuit 112 also receives the match signals on match lines 182, and asserts a match flag 176 (i.e., a match signal) to indicate that a match has been detected. If more than one match is signaled on match lines 182, the flag circuit 112 may additionally assert a multiple-match flag to indicate that multiple matches have been detected.
The instruction decoder 105 includes decode circuitry to decode incoming instructions, and control circuitry to respond to the decoded instructions by issuing control and timing signals to other circuit blocks within the CAM device 100. The instruction decoder 105 may be implemented, for example, by a state machine that transitions from state to state in response to transitions of a clock signal (not shown), and incoming instructions and signals received from other circuit blocks within the CAM device 100. In an alternative implementation, the instruction decoder 105 is a lookup table or read only memory (ROM).
During a read or write access to the CAM array 101, the instruction decoder 105 outputs a select signal 118 (SEL) to the address circuit to select a read or write address source. Addresses may be supplied, for example, from the address bus 141, the scan controller 107 or from other registers within the CAM device (e.g., next free address register which contains an address of an empty row within the CAM array, a highest priority match register which contains an address of a row within the CAM array that yielded a highest priority match with a comparand value, etc.). The address circuit 103 receives an address from the selected address source and decodes the address to activate a corresponding word line 181. Each word line 181 is coupled to a corresponding row of CAM cells within the CAM array 101 and, when activated, enables a CAM word to be read from or written to the row.
The scan controller 107 is provided to detect and correct errors in the CAM array 101 under control of the instruction decoder 105. In one embodiment, the scan controller 107 outputs a predetermined sequence of scan addresses to the address circuit 103 to systematically read rows of the CAM array 101 for error detection purposes; an operation referred to herein as error scanning. The instruction decoder 105 may suspend error scanning from time to time, for example, to execute a host-requested write or read access to the CAM array 101. In the embodiment of
The scan controller 107 is additionally coupled to the address circuit 103 and read/write circuit 161. During error scanning, the scan controller 107 outputs a systematic sequence of scan addresses (SA) to the address circuit 103 via path 144. The select signal 118 from the instruction decoder 105 selects the scan controller 107 as the address source, and each scan address is decoded by the address circuit 103 to activate a corresponding one of the word lines 181. The read/write circuit is set to a read mode by the instruction decoder 105 and senses the row value within the scan-address-selected row of the CAM array 101 (i.e., the row of CAM cells coupled to the activated word line). The row value is output by the read/write circuit 161 to the scan controller 107 which checks for a row parity error and updates the column parity calculation. In one embodiment, when a row parity error is detected, the scan controller 107 asserts an error signal 132 (EFLAG) and outputs the scan address as an error address (EADDR). The error signal 132 and error address 131 may be recorded in a device status register, output to another device (e.g., network processor or host processor), or used for other purposes. For example, the error address 131 may be compared with each search-generated index 174 to determine whether the index has resulted from a match between the comparand and a corrupted CAM word. In the embodiment of
In a ternary CAM embodiment, each of the CAM cells 201 includes a mask storage element to store a mask bit. The mask bit is supplied to the comparator circuit to selectively mask (i.e., according to the state of the mask bit) the detection of a mismatch condition or at least prevent the CAM cell 201 from affecting the state of the match line 182. The mask values stored within a row of CAM cells form a CAM word referred to herein as a mask word. The mask word may be treated as a separate dedicated row for parity checking purposes, or as a logical extension of the data word stored within the data storage elements.
The CAM array 101 also includes a column of validity cells 202 and a column of row parity cells 203. The validity cells 202 operate in generally the same manner as the CAM cells 201 to compare a stored validity bit with a validity-check bit applied on comparand lines 184 and 185 (CL and /CL) and to affect the state of the match line 182 for the corresponding row. In one embodiment, the validity-check bit has a state that corresponds to a valid row entry so that, if the validity-check bit matches the content of a given validity cell 202, match indication is enabled (or not suppressed) on the corresponding match line. That is, a match may be signaled on the match line if the comparand value otherwise matches the contents of the corresponding row of CAM cells 201. If the validity-check bit does not match the content of a validity cell, match indication is disabled on the corresponding match line, thereby preventing false match indications that might otherwise result from comparison of a comparand and invalid CMA word. The comparand lines coupled to the column of validity cells may be driven by predetermined voltage sources (e.g., a supply voltage and ground voltage) rather than comparand data. Also, in the embodiment of
In one embodiment, the row parity cells 203 do not participate in compare operations, but rather are storage elements for storing row parity values that reflect the row parity of the corresponding rows of the CAM array 101. In one embodiment, referred to herein as a modulo-sum embodiment, row parity equates to a modulo-2 sum of bits stored within a given row of CAM cells and, optionally, the corresponding validity cell. Thus, if a given row contains an odd number of 1's, the row parity value is a 1. If the row contains an even number of 1's, the row parity value is a 0. In an alternative embodiment, the row parity may be a modulo-2 count of the number of 0's stored within the row such that, if the row contains an odd number of 0's, the row parity value is a 1, and if the row contains an even number of 0's, the row parity value is a 0. Although embodiments are described below as implementing the modulo-sum embodiment, any type of parity calculation may be used without departing from the scope of the present invention. As discussed below, the row parity value may be generated within the CAM device as part of an array write operation or supplied by a host device as part of a data write request.
The read/write circuit 161 includes a bank of write drivers 163 for writing to the CAM array 101, and a bank of sense amplifiers 162 for reading from the CAM array 101. In the embodiment of
The scan controller 107 includes scan control logic 221, scan address sequencer 225, error address register 223, column parity register 237, column parity checker 235, row parity checker 229 and row correction circuit 231. In one embodiment, the scan control logic 221 is a state machine that responds to enable and read/write signals from an instruction decoder to carry out error scanning and correction operations. The scan address sequencer 225 maintains a scan address value and increments the scan address through a systemic scan sequence in response to an increment signal from the scan control logic 221. In one embodiment, the scan address is incremented by one from the lowest address to the highest address of the CAM array. In other embodiments, the scan address may be incremented by amounts other than one (including a negative amount to achieve a down count) and the scan sequence may be started or ended at addresses other than the lowest and highest address. In any case, after the scan address sequencer 225 reaches a final address in the scan sequence, the error scan cycle is concluded and the scan address is reset (or rolls over) to a starting address within the sequence.
For each scan address in the scan sequence, the corresponding row value is read from the CAM array by the read/write circuit 161 and input to the row parity checker 229. The row parity checker 229 generates a row parity-check value, compares the row parity-check value with the stored parity value for the row (i.e., the row parity value read from the row parity cell 203), and signals a row parity error to the scan control logic 221 if the generated and stored row parity values do not match. In one embodiment, the row parity checker 229 includes a bank of exclusive-OR gates to generate the row-parity check value (e.g., by modulo-2 summation of all the bits within the row value), and an exclusive-OR gate to generate a row parity error indicator by modulo-2 summation of the row parity-check value and the row value. Because the row parity-check value and the row parity value are generated by the same logical combination of the constituent bits of the row value, the modulo-2 sum (i.e., exclusive-OR combination) of the row parity-check value and the row parity value will be nonzero in the event of a single bit error (or an odd number of bit errors) within the row and zero if there are no bit errors (or possibly multiple bit errors that yield the same modulo-2 sum as in the absence of bit errors). Accordingly, by exclusive-ORing all the bits of the row value with one another and with the row parity value, a type of row parity error indicator referred to herein as a row syndrome (RSYND) is generated; the row syndrome being nonzero in the event of a parity error and zero in absence of a parity error. The row syndrome is supplied to the scan control logic 221. If the row syndrome indicates an error (e.g., RSYND is high), the scan control logic 221 outputs a load signal (LDE) to the error address register 223 to enable the scan address from the scan address sequencer 225 to be loaded into the error address register 223, and outputs a load signal (LDR) to the row correction circuit 231 to store the corrupted row value in a row correction register within the row correction circuit. Alternatively, the corrected row value may be read in a second read operation from the CAM array 101 instead of being stored in the row correction register. In one embodiment, the scan control logic 221 also increments an internally maintained count value in response to the row parity error indication to keep track of the number of row parity errors detected during a given error scan cycle. In alternative embodiments, the number of row parity errors detected during an error scan cycle is determined by the number of entries in the error address register 223.
In addition to being checked for row parity errors, each row value read during an error scan cycle is input to the column parity checker 235 where it is included in a running column parity word calculation. In one embodiment, the column parity checker 235 includes a partial column parity register to store the partial column parity word (i.e., intermediate sum of row values), and a bank of exclusive-OR gates to update the partial column parity word in response to each incoming row value. The partial column parity word is zeroed at the beginning of each error scan cycle, then exclusive-ORred with each incoming row value in succession by the bank of exclusive-OR gates. The application of each incoming row value to the column parity word calculation yields an updated partial column parity word which is loaded into the partial column parity register, overwriting the previous value.
When the final row value of an error scan cycle is applied to the column parity word calculation, the resulting partial column parity word constitutes a newly generated column parity word which is compared with the previously generated column parity word stored within the column parity register 237. If the newly generated column parity word does not match the previously stored column parity word, the column parity checks 235 outputs a column parity error signal (CPE) to the scan control logic 221 to signal an error condition. In one embodiment, the column parity checker generates a column syndrome value (CSYND) by exclusive-ORing the generated and stored column parity values and outputs the column syndrome to the row correction circuit 231. The row correction circuit 231 combines the column syndrome value with the corrupted row value (i.e., stored in the row correction register) in an exclusive-OR operation to generate a corrected row value. The corrected row value is output to a mutliplexer 227 which, during a row correction operation, selects the corrected row value to be a write data value. The error address register 223 is selected (e.g., by the address circuit 103 of
CP[M:1]=RV[N]⊕RV[N-1]⊕ . . . ⊕RV[1], where RV is a given row value and each exclusive-OR operation is a bit-wise exclusive-OR operation between the respective data values within the rows. That is:
RV[i]⊕RV[i-1]=D[i, M]⊕D[i-1,M], D[i, M-1]⊕D[i-1,M-1], . . . , D[i, 1]⊕D[i-1,1] As discussed above, different types of parity calculations may be used in alternative embodiments.
At this point, a row check operation of the error scan cycle is completed. If the scan address is not the final scan address within the scan sequence (i.e., determined at 289), the scan address is incremented (or decremented) and a row check operation is performed on the next address in the scan sequence starting at 277.
If, at 289, the scan address is determined to be the final address of the scan sequence, then the error count value indicates the number of row errors detected during the sequence of row check cycles, and the partial column parity word constitutes a newly generated column parity word (i.e., generated in the manner described in reference to
If a row parity error has been detected, then the error count is evaluated at 295 to determine whether more than one row parity error has been detected. If more than one row parity error has been detected (i.e., error count greater than one), then more than one bit error has occurred, and a multi-bit error is signaled by the scan controller at 303, for example, by setting a status value within a status register of the CAM device, and/or outputting an error signal to a processor or other device.
If the error count is determined at 295 not to be greater than one, then a single-bit parity error has occurred and the corrupted row value stored within the row correction circuit and the newly generated column parity word are used to generate a corrected row value. More specifically, at 297, the newly generated column parity word (PCP) is exclusive-ORed, bit for bit, with the column parity word stored within the column parity register (i.e., the column parity word generated during the previous scan cycle) to generate a column syndrome value (CSYND). Assuming that no errors have occurred within the stored column parity word and that the row parity error was not caused by an error within a row parity cell, an exclusive OR combination of the newly generated column parity word and the stored column parity word will yield a column syndrome value in which all the constituent bits are zero except the bit that corresponds to the column that produced the column parity error. Accordingly, at 299, the column syndrome is exclusive-ORed with the corrupted row value within the row correction circuit to complement the bit in error, restoring the bit to its proper state and thereby generating a corrected row value. At 301 the corrected row value is written to the CAM array at the address indicated by the scan address stored within the error address register, overwriting the corrupted row value.
Referring briefly to
In an alternative embodiment, the row parity values themselves may be included in the column parity word calculation, thereby enabling detection of an error within the column of row parity cells and generation of a row-parity-correcting column syndrome value. The column syndrome value may then be exclusive-ORed with the row value (including the row parity value) within the row correction circuit to correct an error either in the data/mask/validity portion of the row value or the row parity bit of the row value. This embodiment is particularly useful in a CAM device that does not otherwise require row parity generation circuitry in its read/write circuit (e.g., row parity values are provided from an external source during host-requested data write operations).
Referring to
Note that the corrupted column parity word described in reference to
In the embodiment of
Because of the separate mask and data word lines, 181M and 181D, reading a row value from row 401 for parity checking purposes involves two read accesses to the array. Referring to
Accordingly, a nonzero row syndromic indicates a row parity error for the row value. Note that the logic circuit 428 may be implemented in alternative embodiments by any circuit (including a different combinatorial logic circuit, or a state machine, look-up table etc.) which generates a row syndrome result according to the above expression.
Because the column parity word is calculated based on a logical combination of all the rows of the CAM array (or, as discussed below, at least a logical subdivision of the CAM array), a write to the CAM array disrupts the coherency between the CAM array contents and the column parity word. The write operation may also disrupt the coherency between the CAM array contents and the partial column parity word, depending on whether the write address (i.e., the address to which the write operation is directed) has already been subjected to a row check operation within the current error scan cycle. In one embodiment, these complications are resolved by aborting the error scan cycle in progress in response to a host-requested a write operation. After the write operation is completed, the column parity word is registered based on the updated array contents and the error scan cycle is restarted at the beginning of the scan sequence. In an alternative embodiment, the error scan cycle in progress is temporarily halted (i.e., suspended) in response to a host-requested write operation, but not aborted. As part of the write operation, the column parity word is updated by removing the parity contribution of the row value to be overwritten (referred to herein as the target row value), and applying the parity contribution of the row value to be written (i.e., the write data). The partial column parity word is conditionally updated (i.e., by removing the parity contribution of the target row value to be overwritten and applying the parity contribution of the write data) depending on whether a row check operation has been executed at the write address in the current error scan cycle.
Still referring to
At this point the stored column parity word reflects the column parity of the updated CAM array but, depending on whether the current error scan cycle has progressed beyond the write address, the partial column parity word may still contain a contribution of the target row value. Thus, at 511, the scan address is compared with the write address to determine whether a row-check operation has been performed at the write address. If the scan address is greater than the write address, then a row check operation has been performed at the write address and the partial column parity word includes a contribution from the target row value. Accordingly, at 513, the parity contribution of the target row value is removed from the partial column parity word, for example, by exclusive-ORing the target row value with the partial column parity word. At 515, the parity condition of the write data is applied to the column parity word in an exclusive-OR operation, thereby updating the partial column parity word to reflect the parity of the updated CAM array. At 525, the scan controller is enabled to continue with the parity scan cycle and the write operation is concluded. Note that the comparison operation at 511 reflects an embodiment in which the scan address is sequenced from low- to high-numbered addresses. Other addresses may be used in alternative embodiments.
If, at 511, the scan address is determined not to be greater than the write address, then the scan address is compared for equality with the write address at 517. If the scan address is not equal to the write address, then the scan address has not yet progressed to the write address. Consequently, the target value has not been applied to the calculation of the partial column parity word (and therefore need not be removed) and the write data value, now stored at the write address, will be applied to the partial column parity word in the normal course of the error scan cycle. Accordingly, at 525 the scan controller is enabled to continue the parity scan cycle, and the write operation is concluded.
If the scan address is determined to be equal to the write address (517), then the write operation is inspected at 519 to determine whether the write operation is a mask write or a data write (i.e., if the mask data and write data are not written at the same time). If the write operation is a data write operation, the scan controller state is evaluated at 521 to determine how far the current row check operation has progressed. That is, if the error scan cycle was suspended before the data value was read, then the target row value has not been applied to the column parity calculation and the updated data value (i.e., the write value) will be read and applied to the partial column parity word in the normal course when the error-scan cycle is resumed. Accordingly, if the scan controller state indicates that the data value at the scan address has not yet been read (521), the scan controller is re-enabled at 525 and the write operation concluded. If the parity scan state indicates that the data value at the scan address has been read, then the operation at 513 and 515 are performed to remove the parity contribution of the data value component of the target row value from the partial column parity word and to apply the parity contribution of the write value to the partial column parity word. The scan controller is then re-enabled at 525 and write operation concluded.
If, at 519, the write operation is determined to be a mask write operation rather than a data write operation, then at 523 the parity scan state is evaluated to determine whether the mask value at the scan address has been read. If the mask value has been read, then the operations at 513 and 515 are performed to remove the contribution of the mask value component of the target row value from the partial column parity word, and to apply the parity contribution of the write value to the partial column parity word. The scan controller is then re-enabled at 525 and the write operation concluded.
It should be noted that in an embodiment in which both a mask value and a data value are read from the CAM array and concatenated to form a unified row value for the purpose of updating the column parity word, then the determinations at 519, 521 and 523 may be simplified to a determination of whether the latter-read of the mask and data values has been read as part of the current row check operation. For example, in an embodiment in which the mask value is read first, and the data value is read second prior to updating the column parity value, then the determinations at 519, 521 and 523 may be replaced by a single decision block that determines whether the current row check operation has progressed beyond the data read. If the row check operation has progressed beyond the data read, then the parity contribution of the portion of the unified row value to be overwritten (i.e., the mask or data portion) is removed from the corresponding portion of the partial column parity word and the write value contribution added to the portion of the column parity word.
It should be noted that numerous other architectures may be used to implement an error address register. For example, the error address register may be a single-entry rather than multi-entry storage. Also, the error address register may itself be a CAM (i.e., an error CAM) to permit indices generated during search operations to be compared with error addresses stored within the error address register. Matches between a search-generated index and an error address value within the error address register would indicate that the search-generated index resulted from a match with a corrupted CAM word. Thus, any match signal generated by the error CAM may be used to qualify the corresponding search-generated index.
The block-based read/write circuit 605 includes a plurality of read/write sub-circuits 6071–607N to provide and write access to the CAM blocks 6031–603N, respectively. The block-based scan controller 609 similarly includes a plurality of scan sub-controllers 6111–611N to perform error scanning operations on the CAM blocks 6031–603N. That is, each scan sub-controller 611 operates generally as described in reference to
In one embodiment, referred to herein as a unified address embodiment, the CAM device 600 includes a single address circuit (not shown in
As indicated above, the various embodiments described above can also be adapted to use more than one row parity error bit per row and/or more than one column parity error bit per columns. For example, if more than one row parity error bit is used per row (e.g., multiple columns of row parity cells each storing row parity bits corresponding to a group of bits in a corresponding row of CAM cells), separate scan controllers may be used to process the row parity bits, update the partial column parity word, column parity word and access the CAM cells in the CAM array. Processing of the row parity bits may be performed simultaneously or sequentially. For other embodiments, a common scan controller may be used and the row parity bits processed in a time-multiplexed manner. Separate variables for the row parity check, row correction, and error count, may be maintained for each column of parity error bits.
Multiple column parity bits per column of CAM cells may also be used. For example, multiple rows of column parity cells, each for storing column parity bits corresponding to a group of bits in a corresponding column of CAM cells, may be used (e.g., odd and even rows in the CAM array may each have a corresponding column parity word, or any other logical subdivisions or rows within the CAM array). In these embodiments, separate column parity words are formed by the multiple column bits per row, and each column parity word can be separately maintained by a common scan controller or by a separate scan controllers. The scan controller(s) would update the partial column parity word and column parity words based on whether the scan address indicated that a particular address is within the address space associated with a corresponding column parity word. The scan controller(s) can access the corresponding CAM cells in the CAM array either simultaneously or sequentially. Similarly, the scan controller(s) can access the row parity bits simultaneously or sequentially. Note that other embodiments may have multiple column parity words and multiple columns of row parity bits.
Although the invention has been described with reference to specific exemplary embodiments thereof, it will be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
| Number | Name | Date | Kind |
|---|---|---|---|
| 4112502 | Scheuneman | Sep 1978 | A |
| 4747080 | Yamada | May 1988 | A |
| 5450424 | Okugaki et al. | Sep 1995 | A |
| 5491703 | Barnaby et al. | Feb 1996 | A |
| 5796758 | Levitan | Aug 1998 | A |
| 5872802 | Knaack et al. | Feb 1999 | A |
| 5999450 | Dallabora et al. | Dec 1999 | A |
| 6014755 | Wells et al. | Jan 2000 | A |
| 6067262 | Irrinki et al. | May 2000 | A |
| 6085334 | Giles et al. | Jul 2000 | A |
| 6154384 | Nataraj et al. | Nov 2000 | A |
| 6199140 | Srinivasan et al. | Mar 2001 | B1 |
| 6243281 | Pereira | Jun 2001 | B1 |
| 6657878 | Lien et al. | Dec 2003 | B2 |
| 6690595 | Srinivasan et al. | Feb 2004 | B1 |
| 20020083421 | Simons | Jun 2002 | A1 |
| 20020120887 | Hughes et al. | Aug 2002 | A1 |