摘要 |
A method and a device is disclosed for encoding/decoding digital data transmitted through a serial link, particularly of the so-called "8B/10B" type. A full encoded binary word includes 8 data bits and a 2-bit label. The logical state of a center bit triplet of the byte is detected. When all of the bits are in the same logical state, the center bit of the triplet is inverted prior to transmission. Otherwise, the byte is transmitted as is. The label is forced to the logical configuration "10" when there is a bit inversion, and to "01" in the opposite case. Upon decoding, this configuration is tested and the center bit received is selectively inverted as a function of the result of the test. In a preferred variant, the method also includes tests of the label and the triplet after decoding, when there has been a bit inversion in the encoding. The device comprises logical circuits based on inverters and "AND," "OR" and "EXCLUSIVE-OR" logic gates.
|