Skip to content

Commit b2f32ad

Browse files
committedMar 17, 2015
targets/simple: manual instantiation of CRG (automatic insertion works for BaseSoC but not for MiniSoC since this one define clock_domains)
1 parent faf185d commit b2f32ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎targets/simple.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from migen.fhdl.std import *
22
from migen.bus import wishbone
3+
from migen.genlib.io import CRG
34

45
from misoclib.soc import SoC, mem_decoder
56
from misoclib.com.liteeth.phy import LiteEthPHY
@@ -12,6 +13,7 @@ def __init__(self, platform, **kwargs):
1213
with_rom=True,
1314
with_main_ram=True, main_ram_size=16*1024,
1415
**kwargs)
16+
self.submodules.crg = CRG(platform.request(platform.default_clk_name))
1517

1618
class MiniSoC(BaseSoC):
1719
csr_map = {

0 commit comments

Comments
 (0)
Please sign in to comment.