From 225a518f7ec87a77f5c3668a2a7351b85c3faf62 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 4 Mar 2021 08:40:47 +0100 Subject: [PATCH] soc/cores/video: Move LiteDRAMDMAReader import to VideoFramerBuffer to avoid LiteDRAM dependency. --- litex/soc/cores/video.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litex/soc/cores/video.py b/litex/soc/cores/video.py index f35aa780c..aa1116923 100644 --- a/litex/soc/cores/video.py +++ b/litex/soc/cores/video.py @@ -13,8 +13,6 @@ from migen.genlib.cdc import MultiReg from litex.soc.interconnect.csr import * from litex.soc.interconnect import stream -from litedram.frontend.dma import LiteDRAMDMAReader - # Video Constants ---------------------------------------------------------------------------------- hbits = 12 @@ -564,6 +562,7 @@ class VideoFrameBuffer(Module, AutoCSR): # # # # Video DMA. + from litedram.frontend.dma import LiteDRAMDMAReader self.submodules.dma = LiteDRAMDMAReader(dram_port, fifo_depth=2048, fifo_buffered=True) # FIXME: Adjust/Expose. self.dma.add_csr( default_base = base,