[9770d9]: tests / reedsolomon_test.ref Maximize Restore History

Download this file

reedsolomon_test.ref    209 lines (168 with data), 8.5 kB

==========================================
   Test of Reed-Solomon encoder/decoder   
==========================================
Non-systematic case
-------------------
Info word:       [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]
Encoded:         [0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0]
One error added: [1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0]
Decoded to:      [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]

Info word:       [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]
Encoded:         [0 0 0 1 1 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 0]
One error added: [0 1 0 1 1 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 0]
Decoded to:      [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]

Info word:       [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]
Encoded:         [0 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 0 1 0]
One error added: [0 0 1 1 1 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 0]
Decoded to:      [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]

Info word:       [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]
Encoded:         [0 0 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 0]
One error added: [0 0 1 0 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 0]
Decoded to:      [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]

Info word:       [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]
Encoded:         [0 0 0 0 0 1 1 1 1 0 1 0 1 0 1 1 1 0 1 0 0]
One error added: [0 0 0 0 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 0 0]
Decoded to:      [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]

Info word:       [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]
Encoded:         [1 0 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0]
One error added: [1 0 0 0 1 1 0 0 0 1 0 1 1 0 0 1 0 0 0 1 0]
Decoded to:      [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]

Info word:       [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]
Encoded:         [1 1 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0]
One error added: [1 1 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 1]
Decoded to:      [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]

Info word:       [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]
Encoded:         [0 1 0 1 1 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1 1]
One error added: [0 1 0 1 1 0 0 1 0 0 1 1 0 0 0 0 1 1 1 1 1]
Decoded to:      [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]

Systematic case
---------------
Info word:       [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]
Encoded:         [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0]
One error added: [1 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0]
Decoded to:      [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]

Info word:       [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]
Encoded:         [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1]
One error added: [0 1 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1]
Decoded to:      [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]

Info word:       [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]
Encoded:         [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 1 1 1]
One error added: [1 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 1 1 1 1]
Decoded to:      [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]

Info word:       [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]
Encoded:         [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0 0 1 0 1 1 0]
One error added: [1 1 0 1 1 1 0 1 0 0 1 1 0 0 0 0 1 0 1 1 0]
Decoded to:      [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]

Info word:       [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]
Encoded:         [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1]
One error added: [0 0 0 1 0 0 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1]
Decoded to:      [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]

Info word:       [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]
Encoded:         [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 1 1 1 0 0]
One error added: [1 0 1 0 0 0 0 1 1 0 1 0 0 1 0 0 1 1 1 0 0]
Decoded to:      [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]

Info word:       [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]
Encoded:         [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0]
One error added: [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0 1 1]
Decoded to:      [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]

Info word:       [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]
Encoded:         [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0]
One error added: [1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 0 0 0]
Decoded to:      [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]

Systematic case with decoder failure indicator
----------------------------------------------
Info word:       [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]
Encoded:         [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0]
Two error added: [1 0 1 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0]
Decoded to:      [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]
Codeword valid:  [1]

Info word:       [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]
Encoded:         [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1]
Two error added: [0 1 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1]
Decoded to:      [0 1 0 0 0 0 0 0 0 1 0 1 1 1 0]
Codeword valid:  [1]

Info word:       [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]
Encoded:         [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 1 1 1]
Two error added: [1 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 1 1 1]
Decoded to:      [1 1 0 0 1 1 1 0 1 0 0 1 0 1 0]
Codeword valid:  [1]

Info word:       [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]
Encoded:         [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0 0 1 0 1 1 0]
Two error added: [1 1 0 1 1 1 0 1 0 0 0 1 0 0 0 0 1 0 1 1 0]
Decoded to:      [1 1 0 1 1 1 0 1 0 0 0 1 0 0 0]
Codeword valid:  [1]

Info word:       [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]
Encoded:         [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1]
Two error added: [0 0 0 1 0 0 0 1 1 0 1 1 1 0 0 1 1 1 0 1 1]
Decoded to:      [0 0 0 1 0 0 0 1 1 0 1 1 1 0 0]
Codeword valid:  [0]

Info word:       [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]
Encoded:         [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 1 1 1 0 0]
Two error added: [1 0 1 0 0 0 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0]
Decoded to:      [1 0 1 0 0 0 0 0 1 0 1 0 0 1 0]
Codeword valid:  [0]

Info word:       [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]
Encoded:         [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0]
Two error added: [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 1 1 0 0 1 1]
Decoded to:      [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]
Codeword valid:  [0]

Info word:       [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]
Encoded:         [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0]
Two error added: [1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 0 0 0]
Decoded to:      [1 1 1 1 1 1 1 1 1 0 1 1 1 1 1]
Codeword valid:  [1]

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Erasure decoding (1 erasure) and non-narrow-sense
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Non-systematic case
-------------------
Info word:       [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]
Encoded:         [0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0]
Decoded to:      [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]

Info word:       [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]
Encoded:         [0 0 0 1 1 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 0]
Decoded to:      [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]

Info word:       [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]
Encoded:         [0 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 0 1 0]
Decoded to:      [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]

Info word:       [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]
Encoded:         [0 0 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 0]
Decoded to:      [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]

Info word:       [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]
Encoded:         [0 0 0 0 0 1 1 1 1 0 1 0 1 0 1 1 1 0 1 0 0]
Decoded to:      [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]

Info word:       [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]
Encoded:         [1 0 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0]
Decoded to:      [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]

Info word:       [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]
Encoded:         [1 1 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0]
Decoded to:      [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]

Info word:       [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]
Encoded:         [0 1 0 1 1 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1 1]
Decoded to:      [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]

Systematic case
---------------
Info word:       [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]
Encoded:         [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0]
Decoded to:      [0 0 0 0 0 1 0 1 0 1 1 1 0 1 0]

Info word:       [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]
Encoded:         [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1]
Decoded to:      [0 0 0 0 1 0 0 0 0 1 1 1 1 1 0]

Info word:       [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]
Encoded:         [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 1 1 1]
Decoded to:      [1 1 0 0 1 1 1 0 0 0 0 0 0 1 0]

Info word:       [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]
Encoded:         [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0 0 1 0 1 1 0]
Decoded to:      [1 1 0 0 1 1 0 1 0 0 1 1 0 0 0]

Info word:       [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]
Encoded:         [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 0 1 1]
Decoded to:      [0 0 0 1 1 0 0 1 1 0 1 1 1 0 0]

Info word:       [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]
Encoded:         [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 1 1 1 0 0]
Decoded to:      [1 0 1 0 0 0 0 1 1 0 1 1 0 1 0]

Info word:       [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]
Encoded:         [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0]
Decoded to:      [0 1 0 1 1 1 1 0 0 1 0 1 1 0 0]

Info word:       [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]
Encoded:         [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0]
Decoded to:      [1 1 1 1 1 1 1 1 0 1 1 1 1 1 1]