# US 2017/0324425 A1 · Embedded parity matrix generator

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

- Number: US 2017/0324425 A1
- Document ID: US20170324425A1
- Status: Published application
- Kind: A1
- Application number: 15/148,599
- Filed: 2016-05-06
- Published: 2017-11-09
- Earliest claimed: 2016-05-06
- Assignees: Infineon Technologies AG
- Applicants: Infineon Technologies AG
- Inventors: Holger Busch
- Web page: https://patentgrep.com/patent/US20170324425A1

## CPC

- H03M 13/1174: {Parity-check or generator matrices built from sub-matrices representing known block codes such as, e.g. Hamming codes, e.g. generalized LDPC codes}
- G06F 11/1012: {using codes or arrangements adapted for a specific type of error (G06F11/1048 takes precedence)}
- G11C 29/42: using error correcting codes [ECC] or parity check
- H03M 13/036: {Heuristic code construction methods, i.e. code construction or code search based on using trial-and-error}
- H03M 13/13: Linear codes
- H03M 13/616: {Matrix operations, especially for generator matrices or check matrices, e.g. column or row permutations}
- 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)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A circuit, including an embedded parity matrix generator configured to generate a parity matrix for a data word of any data width; an encoder configured to add a redundancy word to the data word based on the parity matrix; a sub-circuit coupled to the encoder, and configured to receive the data word and the redundancy word from the encoder; and a decoder coupled to the sub-circuit, and configured to receive the data word and the redundancy word from the sub-circuit, and to detect any errors in the data word based on the parity matrix.

## Claims

### Claim 1

A circuit, comprising:
an embedded parity matrix generator configured to generate a parity matrix for a data word of any data width;
an encoder configured to add a redundancy word to the data word based on the parity matrix;
a sub-circuit coupled to the encoder, and configured to receive the data word and the redundancy word from the encoder; and
a decoder coupled to the sub-circuit, and configured to receive the data word and the redundancy word from the sub-circuit, and to detect any errors in the data word based on the parity matrix.

### Claim 2 (depends on 1)

The circuit of claim 1, wherein the sub-circuit is selected from a group of sub-circuits consisting of a memory, a register, a bus, and an interface.

### Claim 3 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is embedded in both the encoder and the decoder.

### Claim 4 (depends on 1)

The circuit of claim 1, wherein the decoder is further configured to correct the data word based on the parity matrix.

### Claim 5 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix to enable the decoder to correct any single-bit errors in the data word, to detect any double bit-errors in the data word, and to detect but not correct up to three bit errors.

### Claim 6 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix with a minimum number of modify-bits allowing the width of the data word plus redundancy word to be equal to a parity matrix that is balanced and asymmetric.

### Claim 7 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix to comprise column sums balanced according to a balancing vector.

### Claim 8 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to perform a fast test for feasibility of a balancing or dis-balancing specification for column sums of the parity matrix.

### Claim 9 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix to comprise column sums balanced according to a balancing vector and dis-balancing of column sums to differences greater than one.

### Claim 10 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to compute automatically a minimum required width of the redundancy word.

### Claim 11 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix to be symmetric.

### Claim 12 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix to be symmetric with constrained sub-matrices having odd and even row Hamming weights, and having a same code word width as the parity matrix when in asymmetric form.

### Claim 13 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix to be symmetric by adding a minimum number of ones to an asymmetric parity matrix while preserving a data width.

### Claim 14 (depends on 13)

The circuit of claim 13, wherein the party matrix generator is further configured to balance the parity matrix by adding ones to the parity matrix until the parity matrix has an xor-tree depth that is less than a predetermined limit.

### Claim 15 (depends on 14)

The circuit of claim 14, wherein the party matrix generator is further configured to increase a width of the redundancy word by just enough so that xor-tree depths are below a predetermined value.

### Claim 16 (depends on 1)

The circuit of claim 1, wherein the parity matrix generator is further configured to generate the parity matrix having a predefined set of row Hamming weights.

### Claim 17

A method, comprising:
generating, by an embedded parity matrix generator, a parity matrix for a data word of any data width;
adding, by an encoder, a redundancy word to the data word based on the parity matrix;
receiving, by a sub-circuit coupled to the encoder, the data word and the redundancy word from the encoder;
receiving, by a decoder coupled to the sub-circuit, the data word and the redundancy word from the sub-circuit; and
detecting, by the decoder, any errors in the data word based on the parity matrix.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
generating, by the parity matrix generator, two sub-matrices with leading-one-rows and leading-zero-rows; and
recursively balancing, by the parity matrix generator, the parity matrix into a balanced parity matrix.

### Claim 19 (depends on 17)

The method of claim 17, wherein the generating the parity matrix step comprises:
recursively generating constrained sub-configurations with individual sub-data widths, row-Hamming weights, balancing vectors, and constraint patterns.

### Claim 20 (depends on 17)

The method of claim 17, wherein the generating the parity matrix step comprises:
repartitioning sub-matrices with different row-Hamming weights and/or constraint patterns; and
multi-balancing the sub-matrices,
wherein an initial asymmetric parity matrix is transformed into a symmetric parity matrix.
