from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer
+from litex.build.io import DDROutput
+
from litex.boards.platforms import de0nano
from litex.soc.cores.clock import CycloneIVPLL
pll.create_clkout(self.cd_sys_ps, sys_clk_freq, phase=90)
# SDRAM clock
- self.comb += platform.request("sdram_clock").eq(self.cd_sys_ps.clk)
+ self.specials += DDROutput(1, 0, platform.request("sdram_clock"), ClockSignal("sys_ps"))
# BaseSoC ------------------------------------------------------------------------------------------
from migen.genlib.resetsync import AsyncResetSynchronizer
from litex.build.io import DDROutput
+
from litex.boards.platforms import minispartan6
from litex.soc.cores.clock import *
pll.create_clkout(self.cd_sys_ps, clk_freq, phase=90)
# SDRAM clock
- self.specials += DDROutput(0, 1, platform.request("sdram_clock"), ClockSignal("sys_ps"))
+ self.specials += DDROutput(1, 0, platform.request("sdram_clock"), ClockSignal("sys_ps"))
# BaseSoC ------------------------------------------------------------------------------------------
# SDR SDRAM --------------------------------------------------------------------------------
if not self.integrated_main_ram_size:
- self.submodules.sdrphy = GENSDRPHY(platform.request("sdram"), cmd_latency=2)
+ self.submodules.sdrphy = GENSDRPHY(platform.request("sdram"))
self.add_sdram("sdram",
phy = self.sdrphy,
module = AS4C16M16(sys_clk_freq, "1:1"),
from migen import *
from migen.genlib.resetsync import AsyncResetSynchronizer
+from litex.build.io import DDROutput
+
from litex.boards.platforms import ulx3s
from litex.build.lattice.trellis import trellis_args, trellis_argdict
self.specials += AsyncResetSynchronizer(self.cd_sys, ~pll.locked | rst)
# SDRAM clock
- self.comb += platform.request("sdram_clock").eq(self.cd_sys_ps.clk)
+ self.specials += DDROutput(1, 0, platform.request("sdram_clock"), ClockSignal("sys_ps"))
# Prevent ESP32 from resetting FPGA
self.comb += platform.request("wifi_gpio0").eq(1)