From 48a1b2634c8379b90353208cde7d1191839001ae Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 9 Nov 2023 13:45:27 +0100 Subject: [PATCH] cores/video/VideoHDMIPHY: Fix when multiple drive_pols. --- litex/soc/cores/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/video.py b/litex/soc/cores/video.py index b8d22f7d0..257a9b212 100644 --- a/litex/soc/cores/video.py +++ b/litex/soc/cores/video.py @@ -842,7 +842,7 @@ class VideoHDMIPHY(LiteXModule): for color, channel in _dvi_c2d.items(): # TMDS Encoding. encoder = ClockDomainsRenamer(clock_domain)(TMDSEncoder()) - self.add_module(name=f"{color}_encoder", module=encoder) + self.add_module(name=f"{color}_encoder_{pol}", module=encoder) self.comb += encoder.d.eq(getattr(sink, color)) self.comb += encoder.c.eq(Cat(sink.hsync, sink.vsync) if channel == 0 else 0) self.comb += encoder.de.eq(sink.de) @@ -855,7 +855,7 @@ class VideoHDMIPHY(LiteXModule): data_o = data_o, clock_domain = clock_domain, ) - self.add_module(name=f"{color}_serializer", module=serializer) + self.add_module(name=f"{color}_serializer_{pol}", module=serializer) # HDMI (Gowin).