mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cores/video/VideoVGAPHY: Add optional clk support.
Some LCDs displays are almost VGA compatible (no DE, active low hsync/vsync) but require the clock.
This commit is contained in:
parent
87ebdea5a7
commit
fefc5aae66
1 changed files with 4 additions and 0 deletions
|
@ -667,6 +667,10 @@ class VideoVGAPHY(Module):
|
|||
# Always ack Sink, no backpressure.
|
||||
self.comb += sink.ready.eq(1)
|
||||
|
||||
# Drive VGA Clk (Optional).
|
||||
if hasattr(pads, "clk"):
|
||||
self.comb += pads.clk.eq(ClockSignal(clock_domain))
|
||||
|
||||
# Drive VGA Conrols.
|
||||
self.specials += SDROutput(i=~sink.hsync, o=pads.hsync_n, clk=ClockSignal(clock_domain))
|
||||
self.specials += SDROutput(i=~sink.vsync, o=pads.vsync_n, clk=ClockSignal(clock_domain))
|
||||
|
|
Loading…
Reference in a new issue