A 16-bit additive scrambler/descrambler, implemented for data with the polynomial: G(x) = X16 + X5 + X4 + X3 + 1, is available in the <component name>_scrambler.v[hd] module.
It ensures non-occurrence of repetitive data over long periods of time. The scrambler and descrambler are synchronized based on transmission and reception of the clock compensation characters respectively.
Note: The scrambler affects data symbols only.