# US 6,944,709 B2 · Content addressable memory with block-programmable mask write mode, word width and priority

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 6,944,709 B2
- Document ID: US6944709B2
- Status: Granted
- Kind: B2
- Application number: 09/999,798
- Filed: 2001-10-31
- Published: 2002-09-12
- Granted: 2005-09-13
- Earliest claimed: 1999-09-23
- Assignees: NetLogic Microsystems, Inc.
- Inventors: Bindiganavale S. Nataraj; Nilesh A. Gharia; Rupesh R. Roy; Jose P. Pereira; Varadarajan Srinivasan; Sandeep Khanna; Hok F. Wong
- Web page: https://patentgrep.com/patent/US6944709B2

## CPC

- H03K 3/356139: {with synchronous operation}
- G11C 15/00: Digital 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
- G11C 15/04: using semiconductor elements
- H03K 23/56: Reversible counters (H03K23/52 {and H03K23/548} take precedence)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A content addressable memory (CAM) device comprising a plurality of CAM blocks and a block control circuit. The plurality of CAM blocks each includes an array of CAM cells to store data words and an array of priority number storage circuits to store priority numbers. Each priority number indicates a priority of a respective one of the data words relative to others of the data words. The block control circuit has an input to receive a class code and circuitry to output a plurality of select signals to the plurality of CAM blocks. Each select signal selectively disables a respective one of the plurality of CAM blocks from participating in a compare operation according to the class code.

## Claims

### Claim 1

A content addressable memory (CAM) device comprising:
a plurality of CAM blocks, each CAM block having an array of CAM cells to store data words and an array of priority number storage circuits to store priority numbers, each priority number indicating a priority of a respective one of the data words relative to others of the data words; and
a block control circuit having an input to receive a class code and circuitry to output a plurality of select signals to the plurality of CAM blocks, each select signal to selectively disable a respective one of the plurality of CAM blocks from participating in a compare operation according to the class code.

### Claim 2 (depends on 1)

The CAM device of claim 1 wherein the circuitry to output a plurality of select signals to the plurality of CAM blocks includes a plurality of compare circuits, each compare circuit being adapted to compare the class code to a respective stored code that corresponds to one of the plurality of CAM blocks and to output a respective one of the plurality of select signals in either a first state or a second state according to whether the class code matches the stored code.

### Claim 3 (depends on 1)

The CAM device of claim 1 wherein the block control circuit comprises a plurality of block configuration registers to store respective block configuration values, each block configuration value corresponding to a respective one of the CAM blocks and indicating the number of constituent bits of the data words stored within the corresponding CAM block.

### Claim 4 (depends on 3)

The CAM device of claim 3 wherein each block configuration value further indicates the number of constituent bits of the priority numbers stored within the corresponding CAM block.

### Claim 5 (depends on 4)

The CAM device of claim 4 wherein each block configuration value includes a mode value, and wherein each CAM block includes a circuit to generate, during a priority number write operation, a mask value for storage in the array of CAM cells of the CAM block if the mode value indicates a first mode.

### Claim 6 (depends on 5)

The CAM device of claim 5 wherein the circuit to generate the mask value is a decoder circuit to decode a priority number into the mask value, the mask value having more constituent bits than the priority number.

### Claim 7 (depends on 4)

The CAM device of claim 4 wherein each block configuration register includes a storage circuit to store a mode value, and wherein each CAM block includes a write circuit to generate, during a mask word write operation, a priority number for storage in the array of priority number storage circuits of the CAM block if the mode value indicates a first mode.

### Claim 8 (depends on 7)

The CAM device of claim 7 wherein the write circuit to generate the priority number is an encoder circuit to encode a mask value to generate the priority number, the priority number having fewer constituent bits than the mask value.

### Claim 9 (depends on 4)

The CAM device of claim 4 wherein each block configuration value includes a mode value that is indicative of a class of data to be stored within the corresponding CAM block.

### Claim 10 (depends on 4)

The CAM device of claim 4 wherein each block configuration value includes a mode value that indicates whether internet protocol (IP) prefixes or policy statements are to be stored within the corresponding CAM block.

### Claim 11 (depends on 1)

The CAM device of claim 1 wherein the array of CAM cells within at least one of the CAM blocks comprises ternary CAM cells.

### Claim 12 (depends on 1)

The CAM device of claim 1 wherein the block control circuit is adapted to selectively disable the one of the plurality of CAM blocks from participating in the compare operation by preventing a comparand value from being input to the one of the plurality of CAM blocks.

### Claim 13 (depends on 1)

The CAM device of claim 1 wherein each CAM block further includes a block match circuit to generate a block match flag signal if the CAM block is not disabled from participating in the compare operation and if at least one data word stored within the array of CAM cells of the CAM block is determined to match a comparand value.

### Claim 14 (depends on 13)

The CAM device of claim 13 wherein the block control circuit comprises a plurality of block configuration registers to store respective block configuration values, each block configuration value corresponding to a respective one of the CAM blocks and indicating the number of constituent bits of the data words stored within the corresponding CAM block, and wherein within each of the CAM blocks, the array of CAM cells is coupled to the array of priority number storage circuits via a first plurality of match lines, and the array of priority number storage circuits is coupled to the block match circuit via a second plurality of match lines, the block match circuit including circuitry to generate a plurality of configuration-dependent match flag signals according to match signals asserted on the second plurality of match lines, the block match circuit further including circuitry to select, in accordance with the block configuration value for the corresponding CAM block, one the plurality of configuration-dependent match flag signals to be output from the CAM block as the block match flag signal.

### Claim 15 (depends on 1)

The CAM device of claim 1 wherein each CAM block further includes a block multiple match circuit to generate a block match signal if the CAM block is not disabled from participating in the compare operation and if at least two data words stored within the array of CAM cells of the CAM block are determined to match a comparand value.

### Claim 16 (depends on 1)

The CAM device of claim 1 further comprising a priority encoder circuit to generate an index indicative of a storage location within one of the plurality of CAM blocks not disabled from participating in the compare operation.

### Claim 17

A method of operation within a content addressable memory (CAM) device that includes a plurality of CAM blocks, the method comprising:
selecting a subset of the CAM blocks according to a class code;
comparing a comparand value to data words stored in the selected subset of CAM blocks to identify matching data words; and
generating an index according to priority values stored in the selected subset of CAM blocks and associated with the matching data words.

### Claim 18 (depends on 17)

The method of claim 17 further comprising receiving an instruction that includes the class code.

### Claim 19 (depends on 17)

The method of claim 17 wherein selecting a subset of the CAM blocks according to the class code comprises:
comparing the class code to a plurality of configuration values, each configuration value corresponding to a respective one of the plurality of CAM blocks; and
selecting each of the plurality of CAM blocks for which the corresponding configuration value matches the class code.

### Claim 20 (depends on 19)

The method of claim 19 wherein selecting each of the plurality of CAM blocks for which the corresponding configuration value matches the class code comprises outputting a respective block select signal to each of the plurality of CAM blocks for which the corresponding configuration value matches the class code.

### Claim 21 (depends on 19)

The method of claim 19 further comprising storing the plurality of configuration values within respective configuration storage circuits within the CAM device.

### Claim 22 (depends on 21)

The method of claim 21 wherein each of the plurality of configuration values indicates a width, in bits, of data words stored in the corresponding CAM block.

### Claim 23 (depends on 19)

The method of claim 19 further comprising:
receiving an instruction to store a priority number within one of the plurality of CAM blocks;
decoding the priority number to generate a mask word if a mode value within the configuration value that corresponds to the one of the plurality of CAM blocks indicates a first operating mode;
storing the priority number in an array of priority number storage circuits within the one of the CAM blocks; and
storing the mask word in an array of CAM cells within the one of the CAM blocks.

### Claim 24 (depends on 19)

The method of claim 19 further comprising:
receiving an instruction to store a mask word within one of the plurality of CAM blocks;
encoding the mask word to generate a priority number if a mode value within the configuration value that corresponds to the one of the plurality of CAM blocks indicates a first operating mode;
storing the priority number in an array of priority number storage circuits within the one of the CAM blocks; and
storing the mask word in an array of CAM cells within the one of the CAM blocks.

### Claim 25 (depends on 17)

The method of claim 17 wherein comparing a comparand value to data words stored in the selected subset of CAM blocks to identify matching data words comprises generating a plurality of match signals to identify the matching data words.

### Claim 26 (depends on 17)

The method of claim 17 wherein generating an index according to priority values associated with the matching data words comprises:
comparing the priority values to one another to determine a highest priority value of the priority values; and
generating an index that corresponds to a storage location of the highest priority value.

### Claim 27 (depends on 26)

The method of claim 26 wherein comparing the priority values to one another comprises:
comparing a first subset of the priority values with one another within a first one of the selected CAM blocks to determine a first block priority value;
comparing a second subset of the priority values with one another within a second one of the selected CAM blocks to determine a second block priority value; and
comparing the first block priority value and the second block priority value to determine the highest priority value.

### Claim 28

A content addressable memory (CAM) device comprising:
a plurality of CAM blocks; and
means for selecting a subset of the CAM blocks according to a class code, wherein each CAM block includes means for comparing a comparand value to data words stored in the CAM block to identify matching data words and means for generating an index according to priority values stored in the CAM block and associated with the matching data words.

### Claim 29 (depends on 28)

The CAM device of claim 28 further comprising means for receiving an instruction that includes the class code.

### Claim 30 (depends on 28)

The CAM device of claim 28 wherein the means for selecting the subset of CAM blocks comprises:
means for comparing the class code to a plurality of configuration values, each configuration value corresponding to a respective one of the plurality of CAM blocks; and
means for selecting each of the plurality of CAM blocks for which the corresponding configuration value matches the class code.

### Claim 31 (depends on 30)

The CAM device of claim 30 wherein the means for selecting each of the plurality of CAM blocks for which the corresponding configuration value matches the class code comprises means for outputting a respective block select signal to each of the plurality of CAM blocks for which the corresponding configuration value matches the class code.

### Claim 32 (depends on 30)

The CAM device of claim 30 further comprising means for storing the plurality of configuration values within respective configuration storage circuits within the CAM device.

### Claim 33 (depends on 28)

The CAM device of claim 28 wherein the means for generating an index according to priority values associated with the matching data words comprises:
means for comparing the priority values to one another to determine a highest priority value of the priority values; and
means for generating an index that corresponds to a storage location of the highest priority value.

### Claim 34 (depends on 33)

The CAM device of claim 33 wherein the means for comparing the priority values to one another comprises:
means for comparing a first subset of the priority values with one another within a first one of the selected CAM blocks to determine a first block priority value;
means for comparing a second subset of the priority values with one another within a second one of the selected CAM blocks to determine a second block priority value; and
means for comparing the first block priority value and the second block priority value to determine the highest priority value.

### Claim 35

A system comprising:
a processor; and
a CAM device coupled to the processor, the CAM device including:
a plurality of CAM blocks, each CAM block having an array of CAM cells to store data words and an array of priority number storage circuits to store priority numbers, each priority number indicating a priority of a respective one of the data words relative to others of the data words; and
a block control circuit having an input to receive a class code and circuitry to output a plurality of select signals to the plurality of CAM blocks, each select signal to selectively disable a respective one of the plurality of CAM blocks from participating in a compare operation according to the class code.

### Claim 36 (depends on 35)

The system of claim 35 wherein the processor is programmed to output the class code to the CAM device.

### Claim 37 (depends on 35)

The system of claim 35 wherein the processor is programmed to output a compare instruction to the CAM device, the compare instruction including the class code.

### Claim 38 (depends on 37)

The system of claim 37 wherein the class code is included in an operand portion of the instruction.

### Claim 39 (depends on 37)

The system of claim 37 wherein the class code is included in an operation code portion of the instruction.
