Decode Reed-Solomon code to recover integer vector data
Communications Toolbox / Error Detection and Correction / Block
The Integer-Output RS Decoder block recovers a message vector from a Reed-Solomon codeword vector. For proper decoding, the parameter values in this block must match those in the corresponding Integer-Input RS Encoder block.
The Reed-Solomon code has message length K, and codeword length N – number of punctures. You specify N and K directly in the block dialog. The symbols for the code are integers in the range [0, 2M-1], which represent elements of the finite field GF(2M). Restrictions on M and N are described in Restrictions on the M and the Codeword Length N below.
This icon shows optional ports.
The input and output are integer-valued signals that represent codewords and messages, respectively. For more information, see Input and Output Signal Length in RS Blocks. The block inherits the output data type from the input data type. For information about the data types each block port supports, see Supported Data Types.
For more information on representing data for Reed-Solomon codes, see the section Integer Format (Reed-Solomon Only).
If the decoder is processing multiple codewords per frame, then the same puncture pattern holds for all codewords.
The default value of M is ceil(log2(N+1))
, that is, the smallest
integer greater than or equal to log2(N+1). You can change the value of M from the
default by specifying the primitive polynomial for GF(2M), as
described in Specify the Primitive Polynomial below.
You can also specify the generator polynomial for the Reed-Solomon code, as described in Specify the Generator Polynomial.
An (N, K) Reed-Solomon code can correct up to
floor((N-K)/2)
symbol errors (not bit
errors) in each codeword.
If decoding fails, the message portion of the decoder input is returned unchanged as the decoder output.
The sample times of the input and output signals are equal.
Data Types |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
This block uses the Berlekamp-Massey decoding algorithm. For information about this algorithm, see Algorithms for BCH and RS Errors-only Decoding.
[1] Wicker, Stephen B., Error Control Systems for Digital Communication and Storage. Upper Saddle River, N.J.: Prentice Hall, 1995.
[2] Berlekamp, Elwyn R., Algebraic Coding Theory, New York: McGraw-Hill, 1968.
[3] Clark, George C., Jr., and J. Bibb Cain. Error-Correction Coding for Digital Communications, New York: Plenum Press, 1981.