# US 2019/0317674 A1 · Efficient Content-Addressable Memory Entry Integrity Checking Including for Protecting the Accuracy of Packet Processing Operations

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

- Number: US 2019/0317674 A1
- Document ID: US20190317674A1
- Status: Published application
- Kind: A1
- Application number: 15/954,539
- Filed: 2018-04-16
- Published: 2019-10-17
- Earliest claimed: 2018-04-16
- Assignees: Cisco Technology, Inc., a corporation of California
- Applicants: Cisco Technology, Inc.
- Inventors: Doron Shoham; Ilan Lisha
- Web page: https://patentgrep.com/patent/US20190317674A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 16/90339: {by using parallel associative memories or content-addressable memories}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, efficient content-addressable memory entry integrity checking is performed that protects the accuracy of lookup operations. Single-bit position lookup operations are performed resulting in match vectors that include a match result for each of the content-addressable memory entries at the single-bit position. An error detection value is determined for the match vector, and compared to a predetermined detection code for the single-bit position to identify whether an error is detected in at least one of the content-addressable memory entries. In one embodiment, a particular cumulative entry error detection vector storing entry error detection information for each of the content-addressable memory entries is updated based on the match vector. The particular cumulative entry error detection vector is compared to a predetermined entry error detection vector to determine which, if any, of the content-addressable memory entries has an identifiable error, which is then corrected.

## Claims

### Claim 1

A method, comprising:
performing a single-bit position lookup operation in a plurality of content-addressable memory entries against a particular bit value at a single-bit position within a lookup word resulting in a match vector that includes an entry match result at the single-bit position for each of the plurality of content-addressable memory entries;
determining an error detection value for the match vector; and
comparing the error detection value to a predetermined detection code for the single-bit position to identify whether an error is detected in the single-bit position of at least one of the plurality of content-addressable memory entries.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
based on the match vector, a lookup unit updating a particular cumulative entry error detection vector storing entry error detection information for each of the plurality of content-addressable memory entries; and
the lookup unit comparing the particular cumulative entry error detection vector to a predetermined entry error detection vector to determine which, if any, of the plurality of content-addressable memory entries has an identifiable error.

### Claim 3 (depends on 2)

The method of claim 2, wherein said comparing the particular cumulative entry error detection vector to the predetermined entry error detection vector identifies a specific entry of the plurality of content-addressable memory entries as having an error; and the method includes responsive to said identifying the specific entry as having an error, writing the specific entry with a correct programming vector.

### Claim 4 (depends on 1)

The method of claim 1, wherein responsive to said comparing the error detection value to a predetermined detection code identifying at least one error in the single-bit position, correcting said at least one error in the single-bit position of at least one of the plurality of content-addressable memory entries.

### Claim 5 (depends on 1)

The method of claim 1, wherein each of the error detection value for the match vector and the predetermined detection code is a parity bit.

### Claim 6 (depends on 5)

The method of claim 5, wherein each of the plurality of content-addressable memory entries is a ternary content-addressable memory entry.

### Claim 7 (depends on 1)

The method of claim 1, wherein said performing the lookup operation includes using a global mask value to mask all bit positions except the single-bit position.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
performing a specific single-bit position lookup operation in the plurality of content-addressable memory entries against a bit value opposite the particular bit value at the single-bit position within a specific lookup word resulting in a specific match vector that includes a specific entry match result at the single-bit position for each of the plurality of content-addressable memory entries;
determining a specific error detection value for the specific match vector; and
comparing the specific error detection value to a specific predetermined detection code at the single-bit position for the bit value opposite the particular bit to identify whether a specific error is detected in the single-bit position of at least one of the plurality of content-addressable memory entries;

### Claim 9 (depends on 8)

The method of claim 8, wherein each of said comparing the error detection value operation and comparing the specific error detection operation identified an error in the single-bit position of at least one of the plurality of content-addressable memory entries.

### Claim 10 (depends on 8)

The method of claim 8, wherein exactly one of said comparing the error detection value operation and comparing the specific error detection operation identified an error in the single-bit position of at least one of the plurality of content-addressable memory entries.

### Claim 11 (depends on 8)

The method of claim 8, comprising:
based on the match vector, a lookup unit updating a particular cumulative entry error detection vector storing entry error detection information for each of the plurality of content-addressable memory entries;
the lookup unit comparing the particular cumulative entry error detection vector to a predetermined entry error detection vector to determine which, if any, of the plurality of content-addressable memory entries has an identifiable error;
based on the specific match vector, a lookup unit updating a specific cumulative entry error detection vector storing entry error detection information for each of the plurality of content-addressable memory entries; and
comparing the specific cumulative entry error detection vector to a predetermined specific entry error detection vector to determine which, if any, of the plurality of content-addressable memory entries has an identifiable error.

### Claim 12 (depends on 8)

The method of claim 8, wherein a predetermined detection code vector at the single-bit position includes the predetermined detection code; and wherein the method includes:
updating a particular entry of the plurality of content-addressable memory entries with a new programmed vector; and
updating the predetermined detection code vector based on pre-update values, prior to said updating the particular entry, of both of the predetermined detection code vector and the particular entry, and based on the new programmed vector.

### Claim 13

A method, comprising:
for each particular single-bit position of a lookup word, a lookup unit performing a single-bit position lookup operation in a plurality of content-addressable memory entries against a first particular bit value at said particular single-bit position within the lookup word resulting in a particular match vector that includes an entry match result at the single-bit position for each of the plurality of content-addressable memory entries; and the lookup unit updating a first cumulative entry error detection vector storing entry error detection information for each of the plurality of content-addressable memory entries based on the particular match vector; and
performing first error entry position processing based on the first cumulative entry error detection vector to detect and then correct which, if any, of said entries of the plurality of content-addressable memory entries have an identifiable error.

### Claim 14 (depends on 13)

The method of claim 13, wherein said performing first error entry position processing includes comparing the first cumulative entry error detection vector with a predetermined first entry error detection vector to determine a first said entry having an identifiable error, and a first errored single-bit position determined based on a corresponding said particular match vector; and wherein the method includes the lookup unit correcting the first errored single-bit position of the first said entry.

### Claim 15 (depends on 14)

The method of claim 14, wherein each of the plurality of content-addressable memory entries are ternary content-addressable memory entries; and wherein the lookup unit said correcting the first errored single-bit position of the first said entry, includes storing a correct mask bit value and a data bit value of the first errored single-bit position of the first said entry

### Claim 16 (depends on 13)

The method of claim 13, comprising:
for each specific single-bit position of a lookup word, the lookup unit performing a single-bit position lookup operation in the plurality of content-addressable memory entries against a second particular bit value, opposite the first particular bit value, at said particular single-bit position within the lookup word resulting in a specific match vector that includes an entry match result at the single-bit position for each of the plurality of content-addressable memory entries; and the lookup unit updating a second cumulative entry error detection vector storing entry error detection information for each of the plurality of content-addressable memory entries based on the specific match vector; and
performing second error entry position processing based on the second cumulative entry error detection vector to detect and then correct which specific, if any, of said entries of the plurality of content-addressable memory entries have an identifiable error.

### Claim 17 (depends on 16)

The method of claim 16, wherein said performing second error entry position processing includes comparing the second cumulative entry error detection vector with a predetermined second entry error detection vector in said detecting which specific, if any, of said entries of the plurality of content-addressable memory entries have an identifiable error.

### Claim 18 (depends on 17)

The method of claim 17, wherein responsive to said performing first error entry position processing determining a first said entry to have an identifiable error, a first errored single-bit position determined based on a corresponding said particular match vector, to said performing second error entry position processing determining the first said entry to have an identifiable error, the first errored single-bit position determined based on a corresponding said specific match vector, the lookup unit correcting the first errored single-bit position of the first said entry.

### Claim 19

An apparatus, comprising:
a content-addressable memory performing a single-bit position lookup operation in a plurality of content-addressable memory entries against a particular bit value at a single-bit position within a lookup word resulting in a match vector that includes an entry match result at the single-bit position for each of the plurality of content-addressable memory entries;
bit-operation hardware determining an error detection value for the match vector; and
comparison hardware that compares the error detection value to a predetermined detection code for the single-bit position to identify whether an error is detected in the single-bit position of at least one of the plurality of content-addressable memory entries.

### Claim 20 (depends on 19)

The apparatus claim 19, wherein the apparatus, based on the match vector, updates a particular cumulative entry error detection vector storing entry error detection information for each of the plurality of content-addressable memory entries, and compares comparing the particular cumulative entry error detection vector to a predetermined entry error detection vector to determine which, if any, of the plurality of content-addressable memory entries has an identifiable error.
