mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cores/code_8b10b: Add D function.
This commit is contained in:
parent
a7ba5771b1
commit
3a7aaf5124
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ from litex.soc.interconnect import stream
|
||||||
def K(x, y):
|
def K(x, y):
|
||||||
return (y << 5) | x
|
return (y << 5) | x
|
||||||
|
|
||||||
|
def D(x, y):
|
||||||
|
return (y << 5) | x
|
||||||
|
|
||||||
def disparity(word, nbits):
|
def disparity(word, nbits):
|
||||||
n0 = 0
|
n0 = 0
|
||||||
n1 = 0
|
n1 = 0
|
||||||
|
|
Loading…
Reference in a new issue