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