Module shortened

Source
Expand description

Encoding and decoding of the (10, 6, 3) code.

Functionsยง

decode
Try to decode the given 10-bit word to the nearest codeword, correcting up to 1 error.
encode
Encode the given 6 data bits into a 10-bit codeword.