Apparatus and method for generating bitstream of S/PDIF data in HDMI
AssigneeRealtek Semiconductor Corp.
InventorsTzuo-bo Lin, Hsu-Jung Tung, Sheng-Nan Chiou, Chia-Sheng Tsai
Life of this patent
Estimating the term…
Abstract
An apparatus and method for regenerating S/PDIF data is disclosed. The apparatus includes a buffer for buffering sample words of the data units; a decision unit for receiving control words of the data units and outputting a selected control word according to a current control word of a current data unit and a previous control word of a previous data unit; and a transmitter for generating the bitstream of the first digital interconnect format according to the sample words of the data units and the selected control words outputted from the decision unit.
Claims15
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.
A method 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 method comprising:
- buffering by a buffer 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;
- receiving and storing by a decision unit's storage unit 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 the decision unit's storage unit in turn;
- comparing by the decision unit's comparator the previous control word of the previous data unit with the current control word of the current data unit to generate a comparison result;
- outputting by the decision unit's multiplexer one of the previous control word and the current control word according to the comparison result when receiving the current control word;
- delaying by the decision unit's delay circuit the selected output of the previous control word or the current control word by the decision unit's multiplexer to be inputted as a next previous control word into the decision unit's multiplexer;
- comparing by the decision unit's comparator the current control word of the current data unit with the next control word of the next data unit to generate a next comparison result;
- outputting by the decision unit's multiplexer one of the current control word and the next control word according to the next comparison result when receiving the next control word;
- generating by a cycle counter preambles for the previous, the current and the next data units to enable a current combination and a next combination;
- generating by the transmitter the bitstream of the first digital interconnect format according to the current combination of the current sample word and one of the previous and the current control words and the next combination of the next sample word and one of the current and the next control words;
- and
- wherein the previous control word, the current control word and the next control word are of the same second digital interconnect format.
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 plurality of data units each having at least a sample word and a control word, the apparatus comprising:
- a buffer buffering sample words of the data units;
- a decision unit receiving control words of the data units, and outputting a selected control word according to a current control word of a current data unit and a previous control word of a previous data unit, the decision unit comprising:
- 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 storage unit, temporarily storing the control words, wherein the temporary storage unit outputs the previous control word to the comparator and then stores the current control word;
- 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 data units to enable the generation of the bitstream of the first digital interconnect format;
- the transmitter, coupled to the decision unit and the buffer, generating the bitstream of the first digital interconnect format according to the sample words of the data units and the selected control words outputted from the decision unit;
- and
- wherein when no previous control word exists in the temporary storage unit, the current control word of the current data unit is directly outputted.
Dependencies are inferred from the claim text.