From 36297c7a1e09527f535f02824b8fd868f1b10c0c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 5 Sep 2022 09:49:15 +0200 Subject: [PATCH] cores/video: Avoid serializer_attrs. --- litex/soc/cores/video.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/litex/soc/cores/video.py b/litex/soc/cores/video.py index 1b738d062..522c7c84e 100644 --- a/litex/soc/cores/video.py +++ b/litex/soc/cores/video.py @@ -838,16 +838,14 @@ class VideoGowinHDMIPHY(Module): # 10:1 Serialization + Differential Signaling. data_i = encoder.out if color not in pn_swap else ~encoder.out - pad_o = Signal() - - serializer_attrs = dict( - o_Q = pad_o, + pad_o = Signal() + self.specials += Instance("OSER10", i_PCLK = pix_clk, i_FCLK = ClockSignal(clock_domain + "5x"), i_RESET = ResetSignal(clock_domain), + **{f"i_D{i}" : data_i[i] for i in range(10)}, + o_Q = pad_o, ) - serializer_attrs.update({f"i_D{i}": data_i[i] for i in range(10)}) - self.specials += Instance("OSER10", **serializer_attrs) c2d = {"r": 0, "g": 1, "b": 2} self.specials += Instance("ELVDS_OBUF",