From 3a7aaf51249e0b2a824083c3984cb4c7d4c079cf Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 13 Jun 2023 10:00:37 +0200 Subject: [PATCH] cores/code_8b10b: Add D function. --- litex/soc/cores/code_8b10b.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/soc/cores/code_8b10b.py b/litex/soc/cores/code_8b10b.py index 8ae45202e..7e850d2f1 100644 --- a/litex/soc/cores/code_8b10b.py +++ b/litex/soc/cores/code_8b10b.py @@ -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