soc/cores/video: Move LiteDRAMDMAReader import to VideoFramerBuffer to avoid LiteDRAM dependency.

This commit is contained in:
Florent Kermarrec 2021-03-04 08:40:47 +01:00
parent ccc8916995
commit 225a518f7e
1 changed files with 1 additions and 2 deletions

View File

@ -13,8 +13,6 @@ from migen.genlib.cdc import MultiReg
from litex.soc.interconnect.csr import * from litex.soc.interconnect.csr import *
from litex.soc.interconnect import stream from litex.soc.interconnect import stream
from litedram.frontend.dma import LiteDRAMDMAReader
# Video Constants ---------------------------------------------------------------------------------- # Video Constants ----------------------------------------------------------------------------------
hbits = 12 hbits = 12
@ -564,6 +562,7 @@ class VideoFrameBuffer(Module, AutoCSR):
# # # # # #
# Video DMA. # Video DMA.
from litedram.frontend.dma import LiteDRAMDMAReader
self.submodules.dma = LiteDRAMDMAReader(dram_port, fifo_depth=2048, fifo_buffered=True) # FIXME: Adjust/Expose. self.submodules.dma = LiteDRAMDMAReader(dram_port, fifo_depth=2048, fifo_buffered=True) # FIXME: Adjust/Expose.
self.dma.add_csr( self.dma.add_csr(
default_base = base, default_base = base,