Encodes a sequence of data words systematically. This node arranges the output code word such that the entire data word sequence is maintained and preceded by the parity words.
Generates an order-m Hamming-encoded bit stream. The order-m Hamming codes are specialized Bose-Chaudhari-Hocquenghem (BCH) codes in which the data word length equals 2m-m-1, code word length equals 2m-1, and the error correcting capacity equals 1. Valid values of m are 2 to 16, inclusive.
Bit sequence representing the data bits to encode. Use the bits generated by MT Generate Bits to produce this bit stream or wire a custom data bit stream to this parameter.
To ensure that the output bit stream returned by this node corresponds to the entire message, set the length of input bit stream to be an integer multiple of the data word length k, where k = 2 m -m-1. If the length of input bit stream is not an integer multiple of k, the last {length(input bit stream) modulo k} bits are buffered in the encoder. These bits are added to the beginning of the incoming bit stream during the beginning of the next iteration if reset? is set to FALSE.
The Hamming order m sets the Hamming code with data word length equaling 2 m -m-1 and code word length equaling 2 m -1. Valid values are 2 to 16, inclusive.
Default: 3
A Boolean that determines whether the internal state of the encoder is cleared.
The initialization of the Galois field structure may consume significant amounts of time for code word lengths greater than 127. Once initialized, the same Galois field structure is used in every iteration thereafter, provided reset? is FALSE. To improve the performance of this node, set reset? to TRUE for the first iteration and FALSE thereafter.
Default: TRUE
Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.
Default: no error
The Hamming-encoded bits.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported