# US 2009/0267811 A1 · Code design with decreased transition density and reduced running digital sum

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

- Number: US 2009/0267811 A1
- Document ID: US20090267811A1
- Status: Published application
- Kind: A1
- Application number: 12/108,088
- Filed: 2008-04-23
- Published: 2009-10-29
- Earliest claimed: 2008-04-23
- Assignees: Seagate Technology LLC
- Inventors: Kinhing Paul Tsang
- Web page: https://patentgrep.com/patent/US20090267811A1

## CPC

- H03M 5/145: {Conversion to or from block codes or representations thereof}
- 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

In accordance with one or more embodiments data may be encoded into a code word that meets run length constraints and has a reduced running digital sum by encoding (N-y)−1 data bits and y flag bits into m first n-bit patterns that form a first N-bit code word, producing a second N-bit code word by encoding the (N-y)−1 data bits and the y flag bits into m second n-bit patterns in which corresponding first and second n-bit patterns combine to meet a first predetermined running digital sum threshold, and selecting the code word that satisfies selection criteria. The selection criteria may, for example, be the word with the fewest transitions, the word with the smallest running digital sum, and so forth.

## Claims

### Claim 1

A method including the steps of:
producing a first N-bit code word by encoding (N-y)−1 data bits and y flag bits into first m n-bit patterns;
producing a second N-bit code word by encoding the (N-y)−1 data bits and the y flag bits into second m n-bit patterns in which corresponding first and second n-bit patterns combine to meet a first predetermined running digital sum threshold; selecting the code word that satisfies selection criteria.

### Claim 2 (depends on 1)

The method of claim 1 wherein the step of selecting includes selecting the code word with the fewest transitions if all code words meet a second predetermined running digital sum threshold.

### Claim 3 (depends on 2)

The method of claim 2 wherein the step of selecting further includes selecting the code word with the smallest running digital sum if any code word exceeds the second predetermined running digital sum threshold.

### Claim 4 (depends on 1)

The method of claim 1 wherein the step of selecting includes selecting the codeword with the smallest running digital sum.

### Claim 5 (depends on 1)

The method of claim 1 wherein the step of producing the second codeword includes modifying the data and flag bits and encoding the modified bits.

### Claim 6 (depends on 5)

The method of claim 5 wherein the data and flag bits and the modified data and flag bits are encoded in a similar manner.

### Claim 7 (depends on 1)

The method of claim 1 further including producing 2y−1 additional N-bit code words by encoding the (N-y)−1 data bits and y flag bits into 2y−1 respective additional m n-bit patterns in which corresponding n-bit patterns from the first code word and respective additional code words combine to meet a first predetermined running digital sum threshold.

### Claim 8 (depends on 7)

The method of claim 7 wherein the step of producing the additional code words includes modifying the data and flag bits differently for each additional code word and encoding the modified bits.

### Claim 9 (depends on 8)

The method of claim 8 wherein the respective modified data and flag bits are encoded in the same manner as the (N-y)−1 and y flag bits.

### Claim 10 (depends on 7)

The method of claim 7 wherein the step of selecting includes determining which code words meet a second predetermined running digital sum threshold and if more than one code word meets the threshold selecting the code word that both meets the threshold and has the fewest transitions.

### Claim 11 (depends on 10)

The method of claim 10 wherein the step of selecting further includes selecting the code word with the smallest running digital sum if all of the code words exceed the second predetermined running digital sum threshold.

### Claim 12 (depends on 7)

The method of claim 7 wherein the step of selecting includes selecting the codeword with the smallest running digital sum.

### Claim 13 (depends on 1)

The method of claim 1 wherein the first and second n-bit patterns meet run length constraints and a running-digital-sum threshold.

### Claim 14 (depends on 1)

The method of claim 1 wherein the first and second corresponding n-bit patterns combine by adding together the absolute values of the running-digital-sums of the two patterns.

### Claim 15

An encoding system comprising
a first encoder for encoding (N-y)−1 data bits and y flag bits to produce an N-bit code word that consists of first m n-bit patterns;
a second encoder for encoding the (N-y)−1 data bits and y flag bits to produce a second N-bit code word that consists of second m n-bit patterns that are companions of corresponding first n-bit patterns, the respective patterns and companions having running-digital-sum absolute values that added together meet a first predetermined running digital sum threshold; and
a selector for selecting the code word that satisfies selection criteria.

### Claim 16 (depends on 15)

The system of claim 15 wherein the first encoder produces n-bit patterns that meet run length limited constraints and a running digital sum threshold set for the patterns.

### Claim 17 (depends on 16)

The system of claim 16 wherein the first encoder produces the n-bit patterns by encoding (m*n1)−1 bits into m n1-bit constrained segments and concatenating the constrained segments with m segments of n2 unconstrained data bits.

### Claim 18 (depends on 17)

The system of claim 17 wherein the second encoder produces the second n-bit patterns by modifying the n-bit patterns produced by the first encoder.

### Claim 19 (depends on 16)

The system of claim 16 wherein the first encoder produces the n1-bit constrained pattern in a multiple stage encoder that in each stage maps constrained segments and appended user bits to pairs of constrained segments.

### Claim 20 (depends on 19)

The system of claim 19 further including a decoding subsystem that comprises
a segment decoder that segments the N-bit codeword into n-bit segments,
a data modifier that modifies the n-bit segments if one or more included flag bits are set to states other than a first state, and
a decoder that decodes N bits to (N-y)−1 bits.

### Claim 21 (depends on 20)

The system of claim 20 wherein the decoder
maps the n-bit patterns to n1-bit constrained segments and n2-bits of user data,
in multiple stages maps the constrained segments to user bits and smaller constrained segments, and
in a last stage maps a constrained segment to user bits.

### Claim 22

An encoding system comprising
a first encoder for encoding (N-y)−1 data bits and y flag bits to produce an N-bit code word that consists of first m n-bit patterns that meet run length constraints and a running digital sum threshold;
a second encoder for encoding the (N-y)−1 data bits and y flag bits to produce a second N-bit code word that consists of second m n-bit patterns that are companions of corresponding first n-bit patterns, the respective patterns and companions having running-digital-sum absolute values that added together meet a companion running digital sum constraint;
2y−1 additional encoders that respectively encode the (N-y)−1 data bits and the y flag bits to produce 2y−1 additional N-bit code words with respective code words including m next n-bit patterns that are companions of corresponding first n-bit patterns, the respective patterns and companions having running-digital-sum absolute values that added together meet a companion running digital sum constraint; and
a selector for selecting the code word that satisfies selection criteria.
