cores/code_8b10b: Add D function.

This commit is contained in:
Florent Kermarrec 2023-06-13 10:00:37 +02:00
parent a7ba5771b1
commit 3a7aaf5124

View file

@ -30,6 +30,9 @@ from litex.soc.interconnect import stream
def K(x, y):
return (y << 5) | x
def D(x, y):
return (y << 5) | x
def disparity(word, nbits):
n0 = 0
n1 = 0