# US 6,883,021 B2 · Programmable and multiplierless Viterbi accelerator

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

- Number: US 6,883,021 B2
- Document ID: US6883021B2
- Status: Granted
- Kind: B2
- Application number: 09/951,348
- Filed: 2001-09-10
- Published: 2002-07-18
- Granted: 2005-04-19
- Earliest claimed: 2000-09-08
- Assignees: Quartics, Inc.
- Inventors: Zaheer Ahmed; Shoab A. Khan
- Web page: https://patentgrep.com/patent/US6883021B2

## CPC

- H03M 13/25: Error detection or forward error correction by signal space coding, i.e. adding redundancy in the signal constellation, e.g. Trellis Coded Modulation [TCM] {(modulation codes H03M13/31)}
- H03M 13/00: Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes (error detection or error correction for analogue/digital, digital/analogue or code conversion H03M1/00 – H03M11/00; specially adapted for digital computers G06F11/08; for information storage based on relative movement between record carrier and transducer G11B, e.g. G11B20/18; for static stores G11C)
- H03M 13/256: {with trellis coding, e.g. with convolutional codes and TCM}
- H03M 13/41: using the Viterbi algorithm or Viterbi processors
- H03M 13/4169: {using traceback (H03M13/4192 takes precedence)}
- H03M 13/6362: {by puncturing}
- H03M 13/6502: {Reduction of hardware complexity or efficient processing}
- H03M 13/6569: {Implementation on processors, e.g. DSPs, or software implementations}
- 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 invention is related to methods and apparatus that decode convolutionally encoded data, including trellis-coded modulation (TCM) systems. One embodiment of the invention shares a memory device with a main processor, such as a microprocessor or a DSP, and advantageously relieves the main processor of the relatively time-consuming task of decoding the convolutionally encoded data. This frees up the main processor to execute other tasks. One embodiment of the invention includes a micro-coded state machine that can be programmed to control the decoding of the convolutional codes.

## Claims

### Claim 1

A communications peripheral adapted to transfer data received from a first system to a second system, the communications peripheral comprising:
a local interface to the second system;
a remote interface to the first system;
a codec coupled to the remote interface, wherein the codec is adapted to convert an analog representation of a first data from the first system to a first digital data;
a shared memory adapted to temporarily store the first digital data retrieved by a host processor;
a Viterbi Accelerator adapted to retrieve the first digital data from the shared memory, the Viterbi Accelerator further adapted to decode the first digital data to a second digital data by application of a Viterbi algorithm, the Viterbi Accelerator further adapted to store the second digital data in the shared memory; and
the host processor coupled to the codec and to the shared memory, wherein the host processor is configured to retrieve the first digital data from the codec and to move the first digital data to the shared memory, where the host processor is further configured to retrieve the second digital data from the shared memory and to provide the second digital data to the second system via the local interface.

### Claim 2 (depends on 1)

The communications peripheral as defined in claim 1, wherein:
the Viterbi Accelerator is further configured to retrieve a third digital data from the shared memory end to convolutionally encode the third digital data to a fourth digital data; and
the host processor is further configured to receive a third digital data from the second system via the local interface, to transfer the third digital data to the shared memory, to move the fourth digital data from the shared memory to the codec to enable the second system to transfer data to the first system.

### Claim 3 (depends on 1)

The communications peripheral as defined in claim 1, wherein the host processor is a digital signal processor.

### Claim 4 (depends on 1)

The communications peripheral as defined in claim 1, wherein the communications peripheral is a telephone modem.

### Claim 5 (depends on 1)

The communications peripheral as defined in claim 1, wherein the communications peripheral transfers data from the first system to the second system with a wireless connection.

### Claim 6 (depends on 1)

The communications peripheral as defined in claim 1, wherein the communications peripheral further includes a bus arbiter that manages access to the shared memory, wherein the bus arbiter provides the host processor with higher priority access to the shared memory than the Viterbi Accelerator.

### Claim 7 (depends on 1)

The communications peripheral as defined in claim 1, wherein the Viterbi Accelerator is configured to interrupt the host processor in response to an availability of the second digital data in the shared memory.

### Claim 8

A decoder for decoding convolutionally encoded data comprising:
an interface circuit adapted to share a memory device with a host processor, where the interface circuit is further configured to read encoded data from the memory device, and configured to write decoded data to the memory device;
a decoding circuit configured to decode convolutionally encoded data by application of a Viterbi algorithm; and
configuration registers adapted to receive initialization parameters from the host processor, and to determine the decoding parameters of the decoder circuit.

### Claim 9 (depends on 8)

The decoder as defined in claim 8, further comprising an algorithmic state machine that controls the operation of the decoders wherein the algorithmic state machine is configurable by loading configuration parameters in registers.

### Claim 10 (depends on 8)

The decoder as defined in claim 8, wherein the decoding circuit is multiplierless.

### Claim 11 (depends on 8)

The decoder as defined in claim 8, wherein the interface circuit accesses the memory device over an address bus and a data bus that is shared with a host processor.

### Claim 12

A method of decoding convolutionally encoded data, the method comprising:
receiving the convolutionally encoded data into a main processor from a remote computer;
arranging and storing the convolutionally encoded data in a memory device;
instructing a coprocessor to decode the convolutionally encoded data stored in the memory device;
retrieving the convolutionally encoded data from the memory device to the coprocessor;
decoding the convolutionally encoded data to a decoded data; and
storing the decoded data in the memory device to make the decoded data available to the main processor.

### Claim 13 (depends on 12)

The method as defined in claim 12, further comprising applying a Viterbi algorithm to decode the convolutionally encoded data.

### Claim 14 (depends on 12)

The method as defined in claim 12, further comprising setting an interrupt to the main processor in response to decoding at least a portion of the convolutionally encoded data to inform the main processor of the availability of the decoded data.

### Claim 15 (depends on 12)

The method as defined in claim 12, further comprising:
selecting coefficients of an encoder polynomial;
storing unencoded data in the memory device;
instructing the coprocessor to encode the unencoded data;
providing a memory location of the unencoded data;
retrieving the unencoded data from the memory device to the coprocessor;
applying the encoder polynomial to the unencoded data to generate a second encoded data; and
storing the second encoded data to the memory device.

### Claim 16 (depends on 15)

The method as defined in claim 15, further comprising: selecting a puncturing pattern; and applying the puncturing pattern to the second encoded to increase a code rate of the second encoded data.

### Claim 17

A method of providing data decoded from convolutionally encoded data comprising:
receiving an indication of a memory location of convolutionally encoded data;
retrieving the convolutionally encoded data;
applying a Viterbi algorithm to decode the convolutionally encoded data; storing the decoded data; and
setting an interrupt to indicate a readiness of the decoded data.

### Claim 18 (depends on 17)

The method as defined in claim 17, wherein the indication of the memory location comprises a pointer to a memory address.

### Claim 19 (depends on 17)

The method as defined in claim 17, further comprising: receiving a depuncturing pattern; and inserting null characters to the convolutionally encoded data in response to the depuncturing pattern.

### Claim 20 (depends on 17)

The method as defined in claim 17, further comprising:
receiving a depuncturing pattern; and
inserting low value numbers to the convolutionally encoded data in response to the depuncturing pattern, wherein the low value numbers alternate from positive to negative.

### Claim 21 (depends on 20)

The method as defined in claim 20, wherein the low value numbers are the lowest value numbers that are supported by the computing hardware.

### Claim 22

A method of configuring a decoder that decodes convolutionally decoded data, the method comprising:
receiving an indication of a code rate, a constraint length, and a puncturing pattern of the convolutionally decoded data; and
programing a micro-coded state machine that controls a Viterbi algorithm implemented by the decoder in response to the code rate, the constraint length, and the puncturing pattern.
