6b/8b encoding
In telecommunications, 6b/8b is a line code that expands 6-bit codes to 8-bit symbols for the purposes of maintaining DC-balance in a communications system.[src] The 6b/8b encoding is a balanced code -- each 8-bit output symbol contains 4 zero bits and 4 one bits.[src] So the code can, like a parity bit, detect all single-bit errors.[src] The number of 8-bit patterns with 4 bits set is the binomial coefficient \tbinom 84 = 70.[src] Further excluding the patterns 11110000 and 00001111 , this allows 68 coded patterns: 64 data codes, plus 4 additional control codes.[src]
In telecommunications, 6b/8b is a line code that expands 6-bit codes to 8-bit symbols for the purposes of maintaining DC-balance in a communications system.[src] The 6b/8b encoding is a balanced code -- each 8-bit output symbol contains 4 zero bits and 4 one bits.[src] So the code can, like a parity bit, detect all single-bit errors.[src] The number of 8-bit patterns with 4 bits set is the binomial coefficient \tbinom 84 = 70.[src] Further excluding the patterns 11110000 and 00001111 , this allows 68 coded patterns: 64 data codes, plus 4 additional control codes.[src] ==Coding rules== The 64 possible 6-bit input codes can be classified according to their disparity, the number of 1 bits minus the number of 0 bits: The 6-bit input codes are mapped to 8-bit output symbols as follows: The 20 6-bit codes with disparity 0 are prefixed with 10 Example: 000111 → 10000111 Example: 101010 → 10101010 The 15 6-bit codes with disparity +2, other than 001111 , are prefixed with 00 Example: 010111 → 00010111 The 15 6-bit codes with disparity −2, other than 110000 , are prefixed with 11 Example: 101000 → 11101000 The remaining 20 codes: 12 with disparity ±4, 2 with disparity ±6, 001111 , 110000 , and the 4 control codes, are assigned to codes beginning with 01 as follows: No data symbol contains more than four consecutive matching bits, and because the patterns 11110000 and 00001111 are excluded, no data symbol begins or ends with more than three identical bits.[src] Thus, the longest run of identical bits that will be produced is 6.[src] (I.e.[src] this is a (0,5) RLL code, with a worst-case running disparity of +3 to −3.) Any occurrence of 6 consecutive identical bits constitutes a comma sequence or sync mark or syncword; it identifies the symbol boundaries precisely.[src] Those 6 bits straddle the inter-symbol boundary with exactly 3 of those identical bits at the end of one symbol, and 3 of those identical bits at the start of the following next symbol.[src] ==References==[src]
16 sentences · 16 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"6b/8b encoding." encyclopegia.org, 2023, https://encyclopegia.org/wiki/6b-8b-encoding. Accessed 01 December 2026.
Chicago
"6b/8b encoding." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/6b-8b-encoding.
APA
encyclopegia.org. (2023). 6b/8b encoding. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/6b-8b-encoding
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON