A method and system for a feed-forward encoder is described. The method
includes evaluating one or more source characters to determine whether
each source character will invert or maintain a current running disparity
and determining a running disparity for each source character before
encoding the source character based on the current running disparity and
whether the source character will invert or maintain the current running
disparity. The current running disparity along with the associated source
character may then be passed to an encoder to encode the source character
into a transmission character.