From 24ee6de5c2e6c3bf0df060af28fc95f44611d20a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 26 Mar 2021 22:53:59 +0100 Subject: [PATCH] cores/video: Make de pin optional on VideoDVIPHY. --- litex/soc/cores/video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/soc/cores/video.py b/litex/soc/cores/video.py index dc81ef7bd..98cd4dbcc 100644 --- a/litex/soc/cores/video.py +++ b/litex/soc/cores/video.py @@ -658,7 +658,8 @@ class VideoDVIPHY(Module): self.comb += pads.clk.eq(ClockSignal(clock_domain)) # Drive DVI Controls. - self.specials += SDROutput(i=sink.de, o=pads.de, clk=ClockSignal(clock_domain)) + if hasattr(pads, "de"): + self.specials += SDROutput(i=sink.de, o=pads.de, clk=ClockSignal(clock_domain)) self.specials += SDROutput(i=sink.hsync, o=pads.hsync, clk=ClockSignal(clock_domain)) self.specials += SDROutput(i=sink.vsync, o=pads.vsync, clk=ClockSignal(clock_domain))