In telecommunications, 8b/10b is a line code that maps 8-bit symbols to 10-bit symbols to achieve DC-balance and bounded disparity. In this case we take each 8-bit data and map it to a 10-bit symbol. Now long time ago some humans sat down and thought about which 8-bit value corresponds to which 10-bit value/values. They also decided to create some special symbols e.g comma symbol.
As far as I know, there are many 10-bit symbols which are not used and I assume that 0000000000 and 1111111111 are included in it. Which 10-bit symbol shall be transmitted next also depends on which 10-bit symbol was transmitted last time and also on the current 8-bit data to be mapped.
Is there a table that can show me which 8-bit symbol is mapped to which 10-bit symbols such that running disparity is maintained?
In simple words, I want to understand how does 8b/10b encoding ensure running disparity.