main content

decode and recover message from rs codeword according to ccsds standard -凯发k8网页登录

decode and recover message from rs codeword according to ccsds standard

since r2021b

  • ccsds rs decoder block

libraries:
wireless hdl toolbox / error detection and correction

description

the ccsds rs decoder block decodes and recovers a message from a reed-solomon (rs) codeword according to the consultative committee for space data systems (ccsds) standard [1]. the block accepts codeword data and a samplecontrol bus and outputs a decoded message data, a samplecontrol bus, control signals that indicate whether the decoded data is corrupted and whether the block is ready to accept data, and an optional signal to provide the number of corrected errors. the block provides an architecture suitable for hdl code generation and hardware deployment.

because the latency of the block varies, the block provides the output port nextframe that indicates when the block is ready to accept new input codeword data. for more details about the latency of the block, see the algorithm section.

the block also supports shortened message lengths. you can use this block in a ccsds receiver for satellite communication.

examples

ports

input

input codeword data, specified as an integer in the range from 0 to 255. this integer represents a symbol.

the block accepts a maximum value of 255 x i and a minimum value of (255 – k 1) x i for the number of input codeword symbols per frame. k is the message length specified by the message length (k) parameter. i is the interleaving depth specified by the interleaving depth (i) parameter. the number of input codeword symbols must be an integral multiple of i.

the block supports back-to-back input frames for:

  • full-length codes when you set message length (k) to 223 and interleaving depth (i) to 3, 4, 5, or 8

  • full-length codes when you set message length (k) to 239 and interleaving depth (i) to 1, 2, 3, 4, 5, or 8

the block does not support back-to-back input frames for:

  • shortened codes for any of the message length (k) and interleaving depth (i) values

  • full-length codes when you set message length (k) to 223 and interleaving depth (i) to 1 or 2

double and single data types are allowed for simulation, but not for hdl code generation. for hdl code generation, specify this value in fixdt(0,8,0) or uint8 format.

data types: double | single | uint8 | fixdt(0,8,0)

control signals accompanying the sample stream, specified as a samplecontrol bus. the bus includes the start, end, and valid control signals, which indicate the boundaries of the frame and the validity of the samples.

  • start — indicates the start of the input frame

  • end — indicates the end of the input frame

  • valid — indicates that the data on the input data port is valid

for more details, see .

data types: bus

output

decoded message data, returned as an integer in the range from 0 to 255. the output data type is the same as the input data type.

the block outputs n – (255 – k) x i number of decoded message symbols for n number of input codeword symbols. k is the message length specified by the message length (k) parameter and i is the interleaving depth specified by the interleaving depth (i) parameter.

data types: double | single | uint8 | fixdt(0,8,0)

control signals accompanying the sample stream, returned as a samplecontrol bus. the bus includes the start, end, and valid control signals, which indicate the boundaries of the frame and the validity of the samples.

  • start — indicates the start of the output frame

  • end — indicates the end of the output frame

  • valid — indicates that the data on the output data port is valid

for more details, see .

data types: bus

indication of corruption in the output data, returned as a boolean scalar.

when this value is 1, the output contains errors. when this value is 0, the output contains zero errors.

if the number of symbol errors in the input codeword data is greater than (255 - k) x i / 2, the block outputs data without correcting the errors and sets the err port to 1 to indicate that errors that cannot be corrected exist in the input codeword data. k is the message length specified by message length (k) parameter.

data types: boolean

block ready indicator, returned as a boolean scalar.

the block sets this signal to 1 (true) when the block is ready to accept the start of the next frame. if the block receives an input ctrl.start signal while nextframe is 0 (false), the block discards the frame in progress and begins processing the new data.

data types: boolean

number of corrected errors, returned as a nonnegative scalar.

the maximum number of errors that the block can correct is equal to (255 – k) x i / 2. if the number of errors in the input codeword data is greater than (255 – k) x i / 2, the block outputs data without correcting the errors and sets the numcorrerr port to 0 to indicate that none of those errors can be corrected.

the block sets the numcorrerr port to 0 when the err port is 1.

dependencies

to enable this port, select the output number of corrected symbol errors parameter.

data types: uint8

parameters

select the message length.

select the interleaving depth.

select this parameter to enable the numcorrerr output port. this port outputs the number of corrected errors.

algorithms

this block diagram shows the high-level overview of the ccsds rs decoder block and its operation when you set the interleaving depth (i) parameter to 4. this operation is a parallel implementation and contains logic that is equivalent to four independent rs decoders because the specified interleaving depth is 4.

the d2c block converts the input dual basis codeword symbols to conventional basis codeword symbols and sends them for decoding. simultaneously, the d2c block sends the conventional basis codeword symbols to the ram block. the ram block stores these symbols for correction. the switch (s1) interleaves the conventional basis symbols and sends them to the respective rs decoding logic blocks. each rs decoding logic block calculates syndrome values, determines the error location polynomial using the berlekamp-massey algorithm, and finds error locations and magnitudes using chien search [4] and forney [5] algorithms, respectively. for information about the berlekamp-massey algorithm, see .

the error magnitudes from these rs decoding logic blocks are xored with their respective input codeword symbols that are stored in the ram block by using the switch (s2) and the calculated error locations to obtain the corrected message symbols. the c2d block converts the corrected conventional basis symbols back to dual basis symbols.

ccsds rs decoder block architecture diagram

references

[1] tm synchronization and channel coding. recommendation for space data system standards. ccsds 131.0-b-3. blue book. issue 3. washington, d.c.: ccsds, september 2017.

[2] tm synchronization and channel coding. summary of concept and rationale ccsds 130.1-g-3. green book. issue 3, june 2020.

[3] stephen b. wicker. error control systems for digital communication and storage. prentice hall 1995.

[4] chien, r. “cyclic decoding procedures for bose- chaudhuri-hocquenghem codes.” ieee transactions on information theory 10, no. 4 (october 1964): 357–63. .

[5] forney, g. “on decoding bch codes.” ieee transactions on information theory 11, no. 4 (october 1965): 549–57. .

extended capabilities

version history

introduced in r2021b

see also

blocks

functions

  • (satellite communications toolbox) | (satellite communications toolbox)
网站地图