Patent ID: 8514895

Claim:
A bit-stuffing method for crosstalk avoidance in high-speed buses, comprising the following steps: inputting a plurality of data bit streams to a first data input buffer parallelly; inputting the data bit streams from the first data input buffer to a first bit-switching unit parallelly; switching a plurality of data bits to generate bit-switched data by the first bit-switching unit; inputting the bit-switched data to a bit-stuffing encoding unit parallelly; performing bit-stuffing encoding on the bit-switched data to generate bit-stuffed encoded data by the bit-stuffing encoding unit; inputting the bit-stuffed encoded data to an encoded data buffer; and outputting the bit-stuffed encoded data to a high-speed bus by the encoded data buffer; wherein the bit-stuffing encoding unit applies a bit-stuffing encoding method to encode the bit-switched data and generate the bit-stuffed encoded data, the bit-stuffing encoding method comprising the following steps: inputting the plurality of data bit streams, and each of the data bit streams being a sequence of data bits; setting a plurality of first data bits of the data bit streams as a plurality of encoded data bits for a first transmission; inputting the first data bits of the data bit streams corresponding to a plurality of odd-numbered wires in the high-speed bus; determining whether a last encoded data bit is equal to a current encoded data bit and a complement of a previous encoded data bit in any adjacent odd-numbered wire for each of a plurality of even-numbered wires in the high-speed bus; and if yes, stuffing a stuffed bit and delaying the transmission of the data bits of the corresponding data bit stream, and the stuffed bit is set as the last encoded data bit transmitted over the corresponding even-numbered wire; or if no, keeping transmitting the data bit of the data bit stream corresponding to the even-numbered wire.