Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
8b/10b encoding
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Running disparity==== 8b/10b coding is DC-free, meaning that the long-term ratio of ones and zeros transmitted is exactly 50%. To achieve this, the difference between the number of ones transmitted and the number of zeros transmitted is always limited to Β±2, and at the end of each symbol, it is either +1 or β1. This difference is known as the ''running disparity'' (RD). This scheme needs only two states for the running disparity of +1 and β1. It starts at β1.<ref>{{cite web |title=Thoughts on Gigabit Ethernet Physical |date=1996-04-01 |url=https://grouper.ieee.org/groups/802/3/z/public/presentations/mar1996/JTtgep.txt|author=Thatcher, Jonathan|work=IBM|access-date=2008-08-17}}</ref> For each 5b/6b and 3b/4b code with an unequal number of ones and zeros, there are two bit patterns that can be used to transmit it: one with two more "1" bits, and one with all bits inverted and thus two more zeros. Depending on the current running disparity of the signal, the encoding engine selects which of the two possible six- or four-bit sequences to send for the given data. Obviously, if the six-bit or four-bit code has equal numbers of ones and zeros, there is no choice to make, as the disparity would be unchanged, with the exceptions of sub-blocks D.07 (00111) and D.x.3 (011). In either case the disparity is still unchanged, but if RD is positive when D.07 is encountered 000111 is used, and if it is negative 111000 is used. Likewise, if RD is positive when D.x.3 is encountered 0011 is used, and if it is negative 1100 is used. This is accurately reflected in the charts below, but is worth making additional mention of as these are the only two sub-blocks with equal numbers of 1s and 0s that each have two possible encodings. {| class="wikitable" style="text-align:center" |+ Rules for running disparity |- ! previous<br>RD !! Disparity of<br>code word !! Disparity<br>chosen !! next<br>RD |- | β1 || 0 || 0 || β1 |- | β1 || Β±2 || +2 || +1 |- | +1 || 0 || 0 || +1 |- | +1 || Β±2 || β2 || β1 |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)