Module standard

Source
Expand description

Encoding and decoding of the (23, 12, 7) standard Golay code.

Functionsยง

decode
Try to decode the given 23-bit word to the nearest codeword, correcting up to 3 errors and detecting 4 errors.
encode
Encode the given 12 data bits into a 23-bit codeword.