targets/simple: manual instantiation of CRG (automatic insertion works for BaseSoC...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Mar 2015 00:07:44 +0000 (01:07 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Mar 2015 00:07:44 +0000 (01:07 +0100)
targets/simple.py

index eb8e183f14864d2fd62131465dc1c15e311d0365..7d16171184119cb6b9a03a00f07448b9be783733 100644 (file)
@@ -1,5 +1,6 @@
 from migen.fhdl.std import *
 from migen.bus import wishbone
+from migen.genlib.io import CRG
 
 from misoclib.soc import SoC, mem_decoder
 from misoclib.com.liteeth.phy import LiteEthPHY
@@ -12,6 +13,7 @@ class BaseSoC(SoC):
                        with_rom=True,
                        with_main_ram=True, main_ram_size=16*1024,
                        **kwargs)
+               self.submodules.crg = CRG(platform.request(platform.default_clk_name))
 
 class MiniSoC(BaseSoC):
        csr_map = {