# US 2019/0319636 A1 · Component-efficient cyclic-redundancy-check-code-computation circuit

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

- Number: US 2019/0319636 A1
- Document ID: US20190319636A1
- Status: Published application
- Kind: A1
- Application number: 15/954,101
- Filed: 2018-04-16
- Published: 2019-10-17
- Earliest claimed: 2018-04-16
- Assignees: Kazan Networks Corporation
- Applicants: Kazan Networks Corporation
- Inventors: Martin Daniel Stainbrook; Michael Ivan Thompson
- Web page: https://patentgrep.com/patent/US20190319636A1

## CPC

- H03M 13/09: Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit
- H03M 13/091: {Parallel or block-wise CRC computation}
- H03M 13/157: {Polynomial evaluation, i.e. determination of a polynomial sum at a given value}
- H03M 13/616: {Matrix operations, especially for generator matrices or check matrices, e.g. column or row permutations}
- H03M 13/6575: {Implementations based on combinatorial logic, e.g. Boolean circuits}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

The current document is directed to component-efficient CRC-code-computation logic used in electronic-communications hardware. Many current implementations employ a number n of XOR matrices equal to the number of bytes in the fundamental data unit, or word, operated on by the CRC-code-computation logic. As the size, in bytes, of the fundamental-data-unit increases, due to increases in the widths of internal data-transmission components, the number n of XOR matrices in CRC-code-computation logic has correspondingly increased. The currently disclosed CRC-code-computation logic employs message-padding logic in order to compute CRC codes using only a single XOR matrix. The message-padding logic takes advantage of certain characteristics of CRC codes to transform original input messages having lengths, in bytes, that are not evenly divisible by the length of the fundamental data unit into messages that are evenly divisible by the length of the fundamental data unit by prepending padding bytes to the original messages.

## Claims

### Claim 1

A CRC-code-computation circuit that generates a CRC code for an indicated portion of a message, the CRC-code-computation circuit comprising:
a single XOR matrix that processes words input through a first input;
an output register which receives the results produced by the XOR matrix; and
a pad-logic component that receives the message, extracts message data over which to compute the CRC code from the message, prepends padding to the message when needed for word alignment, and outputs to the XOR matrix, word-by-word, the extracted data with prepended padding.

### Claim 2 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein the pad-logic component receives, in addition to the message,
a message-offset input that specifies the first byte within the message over which CRC-code computation is to be carried out; and
a message-length input that specifies the number of bytes within the message.

### Claim 3 (depends on 2)

The CRC-code-computation circuit of claim 2 wherein the pad-logic component outputs an indication when CRC-code computation is complete and a result is ready for output from the output register.

### Claim 4 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein the output register outputs an intermediate result to the XOR matrix and outputs a final result through an inverter to a CRC-code-receiving component.

### Claim 5 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein the XOR matrix initially receives, as a second input, a word containing 0-valued bits and thereafter receives, as the second input, an intermediate result output by the output register.

### Claim 6 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein in addition to prepending padding to the message data when needed for word alignment, the pad-logic component prepends a special initialization value to the message data.

### Claim 7 (depends on 6)

The CRC-code-computation circuit of claim 6 wherein the special initialization value is computed as the remainder following modulo-2 division of a word containing all 1-valued bits, that is left-shifted with zero fill, by a CRC polynomial.

### Claim 8 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein the pad-logic component receives the message word-by-word.

### Claim 9 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein the padding comprises one or more bytes containing only 0-valued bits.

### Claim 10 (depends on 1)

The CRC-code-computation circuit of claim 1 wherein the XOR matrix iteratively carries out division of the message data with prepended padding and a prepended special initialization value by a CRC polynomial.

### Claim 11

A method, embodied in a CRC-code-computation circuit containing only a single XOR matrix having a characteristic special initialization value, that computes a CRC code for an input message, the method comprising:
receiving a message-offset input;
receiving a message-length input; and
iteratively
receiving a next message word,
processing the next message word, and
when a fully processed word is available, outputting the fully processed word to the XOR matrix, which outputs a result to an output register,
until a final result has been output by the XOR matric to the output register.

### Claim 12 (depends on 11)

The method of claim 11 wherein the special initialization value is computed as the remainder following modulo-2 division of a word containing all 1-valued bits, that is left-shifted with zero fill, by a CRC polynomial.

### Claim 13 (depends on 11)

The method of claim 11 wherein processing a next message word further comprises:
when the next message word is the first message word containing a message byte at an offset from the beginning of message equal to or greater than the received message-offset input, generating one or two initial words that are output to the XOR matrix prior to output of any additional processed words.

### Claim 14 (depends on 13)

The method of claim 13 wherein, when two initial words are generated, the first initial word contains one or more leading 0-valued bits followed by a first portion of the special initialization value and is a fully processed word and the second initial word contains a second portion of the special initialization value and is a partially processed word.

### Claim 15 (depends on 13)

The method of claim 13 wherein, when one initial word is generated, the initial word is one of:
a partially processed word that includes leading 0-valued bits followed by the special initialization value;
a fully processed word that includes leading 0-valued bits followed by the special initialization value; and
a partially processed word that includes the special initialization value.

### Claim 16

The method of claim wherein processing a next message word following generation of the one or two initial words further comprises:
when a partially processed word is available, extracting a first portion of the next message word for inclusion in the partially processed word to generate a fully processed word and using a second portion of the next message word as a next partially processed word; and
when a partially processed word is not available, using the next message word as a fully processed word.

### Claim 17 (depends on 11)

The method of claim 11 wherein the final result is inverted when output from the output register to a CRC-code-receiving entity.

### Claim 18 (depends on 11)

The method of claim 11 wherein a word containing 0-valued bits is output to the XOR matrix along with the first fully processed word output to the XOR matrix to produce a first result output to the output register.

### Claim 19 (depends on 11)

The method of claim 11 wherein, following production of a first result by the XOR matrix, the contents of the output register are output to the XOR matrix along with a next fully processed word.

### Claim 20 (depends on 11)

The method of claim 11 wherein the final result is produced by the XOR message when any initial words generated for the message and the final byte of the message with an offset greater than or equal to the received message-offset, indicated by the message-length input, has been included in a fully processed word output to the XOR matrix.
