This patent application is related to pending application Ser. No. 07/829,655 filed Feb. 3, 1992, for Serial Data Encoder, now U.S. Pat. No. 5,285,455 assigned to LSI Logic Corporation, the present assignee.
Background of the Invention
This invention relates generally to the encoding of data for transmission and storage, more particularly the invention relates to the encoding and decoding of Reed-Solomon (RS) codes.
The trend towards higher densities and data rates in magnetic data recording has required error control coding and modulation techniques. Error detection and correction coding can use a polynomial with binary coefficients to represent a sequence of binary bits and with a plurality of check bits determined by a coding process which requires that every code word be divisible by a preselected polynomial with zero remainder. A plurality of cyclic codes can be interleaved to form a cyclic code for further error reduction. Further, the binary base field can be extended to a finite field of 2.sup.m elements, known as a Galois field GF (2.sup.m) in which all elements are represented by m-bit binary symbols.
The Reed-Solomon (RS) code is based on an extension of the concepts of cyclic codes in an extended binary field GF (2.sup.m). All processing of these polynomials is done using sum and product operations defined in the extension field GF (2.sup.m). In this system, the generator G(z), the information sequence M(z), the remainder C(z), and the code word W(z) are all polynomials whose coefficients are elements in GF(2.sup.m) in the form of m-bit bytes.
An (n,k) Reed-Solomon (RS) code over the finite field FG(2.sup.m) has k message symbols and r=n-k redundant check symbols, where each symbol is m bits wide and n=r+k=code length in symbols. The check symbols C.sub.r-1, C.sub.r-2 . . . , C.sub.1, C.sub.0 are computed from the message symbols M.sub.k-1, M.sub.k-2 . . . , M.sub.1, M.sub.0 using the formula
where C(z)=C.sub.r-1 z.sup.r-1 +C.sub.r-2 z.sup.r-2 + . . . +C.sub.1 z+C.sub.0 is the check polynomial, M(z)=M.sub.k-1 z.sup.k-2 + . . . +M.sub.1 z+M.sub.0 is the message polynomial and G(z)=z.sup.r +G.sub.r-1 Z.sup.r-1 +G.sub.r-2 z.sup.r-2 +. . .+G.sub.1 z+G.sub.0 is the generator polynomial of the RS code. C(z) is the remainder when M(z)z.sup.r is divided by G(z).
The conventional parallel implementation of an RS encoder is shown in FIG. 1 in which a message and the content of a register are summed and applied through a MUX 10 to a plurality of multipliers 12 which multiply the sum by coefficients, G.sub.i, with the products added to contents of registers 14 in adders 16 and then sorted in other registers 14.
In this parallel approach, a message symbol is input every clock cycle, and r finite field multiplications (by the r constant coefficients, G.sub.i, of the generator polynomial) and r finite field additions are performed every clock cycle. The message select signal is high when message symbols are being input and low when the redundant check symbols are being output. The other signals in FIG. 1 are all m bits wide where m is the number of bits per symbol. In this approach, r constant finite field multipliers 12, r finite field adders 16, and r symbol registers 14 are needed.
Copending Ser. No. 07/829,655, supra., discloses an encoder including a single multiplexer and a single adder for obtaining the quotient or redundant check signals of the polynomial division, depending on whether all message symbols have been input to the encoder. The intermediate results of the computation are fed back to the discrete time delay line, controlled by a feedback control signal. The discrete time delay line delays the data by r-1 clock cycles. The output of the delay line if controlled by a sync signal which suitably initializes the delay line at the beginning of a new message block. The encoder replaces the r constant multipliers in the conventional parallel approach by a single general multiplier. all memory elements are lumped together in the single delay line. Since the delay line is implemented with a random access memory together with simple control logic, a significant reduction of hardware is realized due to the density of the RAM cells compared with registers as used in the conventional parallel encoder.
The present invention is directed to a Reed-Solomon decoder and particularly to a power sum computation unit in the decoder which uses a discrete time delay for serial computations.
Summary of the Invention
In accordance with the invention the power sum computation in a Reed-Solomon decoder uses a serial/parallel network employing a random access memory as a discrete time delay.
More particularly, symbols of received data, R.sub.i, are simultaneously multiplied by finite field elements, .alpha..sup.i, to generate the power sum, S.sub.i, in the power sum polynomial, S(z). For r redundant symbols, M symbols per word and m bits per symbol, a random access memory has a width equal to the Mxm and a depth equal to r/M-1. A latch and a flip-flop serially connected with the random access memory provide the additional depth for r/M. A speed increase of M is realized over the speed for a fully serial multiplier.
The invention and objects and features thereof will be more readily apparent from the following detailed description and appended claims when taken with the drawing.
Brief Description of the Drawings
FIG. 1 is a schematic of a conventional Reed-Solomon encoder.
FIG. 2 is a functional block diagram of a Reed-Solomon communications link.
FIG. 3 is a functional block diagram of a Reed-Solomon decoder.
FIG. 4 is a schematic of a conventional high speed power sum computation unit.
FIG. 5 is a schematic of a conventional time multiplexed slow speed power sum computation unit.
FIG. 6 is a schematic of a power sum computation unit in accordance with one embodiment of the invention.
FIG. 7 is a schematic of a power sum computation unit in accordance with one embodiment of the invention.
FIGS. 8A, 8B are timing diagrams for the circuit of FIG. 7.
Description of the Illustrative Embodiments
Referring now to FIG. 2, a Reed-Solomon communication link is illustrated. The encoder 20 provides a block code for transmission that protects a discrete-time sequence of symbols from noise introduced in the transmission channel and random errors. To every k-data symbol in the alphabet of the code, a t-error correcting code forms a code word by appending n-k=2t new symbols called parity symbols. The code word now has block length, n, and is constructed so that the original k-data symbols can be recovered even when up to t code word symbols are corrupted by additive channel noise.
The block code is decoded at the receiver to reconstruct the raw data by identifying and correcting errors in the received encoded blocks of data. FIG. 3 is a functional block diagram of a Reed-Solomon decoder. The received encoded blocks of data are provided to a power sum unit 24 which generates a power sum polynomial. The polynomial is then applied to a Euclidean algorithm 26 which solves the key equation. Errors are then located by finding the roots of the error location polynomial using Chien search 28. Received data which is stored in delay unit 30 can then be corrected at exclusive OR gate 32 to provide the decoded data.
More particularly, the power sum polynomial, ##EQU3## is provided by the power sum unit 24 to the Euclidean algorithm 26. The Euclidean algorithm operates on the polynomial to solve the key equation
where
.sigma.(z) is the error locator polynomial,
.omega.(z) is the error evaluator polynomial, and
r=redundancy in number of symbols.
Thereafter the error location is found from the roots of .sigma.(z) using the Chien search.
The received encoded data includes n symbols, R.sub.i, or
The received polynomial can be expressed as
The power sums can be expressed as follows: ##EQU4## where .alpha. is a primitive element in the finite field.
The power sum series is then S.sub.0, S.sub.1, . . . , S.sub.r-1, where
FIG. 4 and FIG. 5 are schematics of a conventional high speed power sum computation unit and a conventional time-multiplexed slow speed power sum computation unit, respectively. In FIG. 4 the data in (DI) or R.sub.i, are applied in parallel to individual computation units each including an exclusive OR unit 34, a delay 36, and a multiplier 38. The multiplier units multiply by the primitive elements, .alpha..sup.i, where i is 0 to r-1. Thus, for a redundancy of 32 symbols, the power sums, PS0-PS31, are obtained concurrently. While the operation is fast, the circuitry is large and complex.
In the slow speed time-multiplexed unit of FIG. 5, each data input word is passed through exclusive OR 34 and is multiplied by .alpha..sup.i serially. A 32-stage delay 40 is employed to store the bits of each input word which are sequentially multiplied in multiplier 42 by .alpha..sup.i. The circuitry of FIG. 5 is much simpler in structure but is also slower in operation.
FIG. 6 is a schematic of a power sum computation unit which includes both parallel and serial features which can be readily implemented using a random access memory delay unit as shown in the embodiment of the invention of FIG. 7. In the embodiment of FIG. 6, each input word of the input data is simultaneously applied to four exclusive OR gates 50, 52, 54, and 56 with each gate connected to an eight-stage delay line 60, 62, 64, 66 and a multiplier 70, 72, 74, 76. Each of the multipliers is assigned eight powers of the primitive element, .alpha., with each data word being multiplied by four different primitive elements simultaneously. Thus each data word must be cycled eight times for complete multiplication of the primitive elements.
FIG. 7 is one embodiment of the invention for implementing the circuit of FIG. 6 using a 7.times.32 bit random access memory 80 along with a input latch 82 and an output flipflop 84 for storing the eight data input words of 32-bits each and cycling the data words to the multiplying unit shown generally at 86 through a controlled gate 88. A modulo-seven counter 90 is employed for clocking the stored data words from RAM 80 for operation in the multiplier 86 and for the ultimate output of the power sum at 92.
The data input, DI, is applied through MUX 94 and latch 96 and through the exclusive OR gates 98 for storage in the latch 82, RAM 80, and output flipflop 84. The encoded data, R.sub.i, is clocked from the memory delay means including latch 82, RAM 80, and flipflop 84 by modulo 7 counter 90 through the gate 88 to the multiplier unit 86 when the data is multiplied by powers of the primitive element, .alpha.. The powers of .alpha. are provided by MUX 102, latch 104, and a feedback .alpha..sup.4 multiplier 106. The powers of .alpha. from latch 104 are multiplied by .alpha., .alpha..sup.2, and .alpha..sup.3 in three of the multipliers of multiplying unit 86 so that multiplicands from .alpha..sup.0 to .alpha..sup.31 are provided. After power sums are completed by each received polynomial, the stored power sums are read from memory 80 on output line 92.
FIG. 8A is a timing diagram for the circuitry of FIG. 7 showing the clock, RAM address, input to latch 82, RAM data in, RAM data out, and flipflop 88 output. This diagram illustrates that the latch 82 and flipflop 84 along with the modulo 7 counter give an 8 cycle delay.
Data are written into the RAM and read out seven cycles later. The second half of a clock cycle is used for writing, and the first half of the clock cycle is used for reading. Because the address repeats once every seven cycles (mod 7 counter), the data is delayed for seven cycles in the RAM. Thus, the latch and flipflop together with the RAM provides 8 cycles of delay. In FIG. 8B, the data input (DI) and alpha (.alpha.) values are clocked in by C1, and clock C2 forces the RAM output to .phi. during initialization (first pass through the RAM).
There has been described an improved power sum computation unit for use in a Reed-Solomon decoder in which discrete time delay is provided by a random access memory for the parallel and the serial computation of the power sums. While the invention has been described with reference to a specific embodiment, the description is illustrative of the invention and is not to be construed as limiting the invention. Various modifications and applications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims.