Patent ID: 7549000

Claim:
An apparatus for generating a bitstream of a first digital interconnect format according to incoming digital data corresponding to a second digital interconnect format, the incoming digital data comprising a previous data unit, a current data unit and a next data unit each having at least a sample word and a control word, the apparatus comprising: a buffer buffering a previous sample word of the previous data unit, a current sample word of the current data unit and a next sample word of the next data unit in turn; a decision unit receiving and storing a previous control word of the previous data unit, a current control word of the current data unit and a next control word of the next data unit into a storage unit in turn, and outputting a current selected control word according to the current control word and the previous control word when receiving the current control word and outputting a next selected control word according to the next control word and the current control word when receiving the next control word; wherein the decision unit comprises: a comparator comparing the current control word of the current data unit with the previous control word of the previous data unit to generate a comparison result; a multiplexer selectively outputting the previous control word or the current control word according to the comparison result; and a delay circuit delaying the selected output of the previous control word or the current control word by the multiplexer to be inputted as a next previous control word into the multiplexer; a cycle counter, coupled between the decision unit and a transmitter, generating preambles for the previous, the current and the next data units to enable a current combination and a next combination; the transmitter, coupled to the decision unit and the buffer, generating the bitstream of the first digital interconnect format according to the current combination of the current sample word and the current selected control word and the next combination of the next sample word and the next selected control word; and wherein the previous control word, the current control word and the next control word are of the same second digital interconnect format.