Module shortened

Source
Expand description

Encoding and decoding of the (18, 6, 8) code.

Functionsยง

decode
Try to decode the given 18-bit word to the nearest codeword, correcting up to 3 errors.
encode
Encode the given 6 data bits to an 18-bit codeword.