top_kwargs = dict((k, autotype(v)) for k, v in args.target_option)
soc = top_class(platform, **top_kwargs)
soc.finalize()
- memory_regions = soc.get_memory_regions()
- csr_regions = soc.get_csr_regions()
+ try:
+ memory_regions = soc.get_memory_regions()
+ csr_regions = soc.get_csr_regions()
+ except:
+ pass
# decode actions
action_list = ["clean", "build-csr-csv", "build-core", "build-bitstream", "load-bitstream", "all"]
MultiReg: XilinxMultiReg,
AsyncResetSynchronizer: XilinxAsyncResetSynchronizer
}
- src = verilog.convert(soc, ios, special_overrides=so)
- tools.write_to_file("build/litesata.v", src)
+ v_output = verilog.convert(soc, ios, special_overrides=so)
+ v_output.write("build/litesata.v")
if actions["build-bitstream"]:
vns = platform.build(soc, build_name=build_name, run=True)
from mibuild.generic_platform import *
-from mibuild.xilinx.common import CRG_DS
-from mibuild.xilinx.vivado import XilinxVivadoPlatform
+from mibuild.xilinx.platform import XilinxPlatform
_io = [
("sys_clk", 0, Pins("X")),
),
]
-class Platform(XilinxVivadoPlatform):
- def __init__(self, crg_factory=lambda p: CRG_DS(p, "clk200", "cpu_reset"), **kwargs):
- XilinxVivadoPlatform.__init__(self, "xc7k325t-ffg900-2", _io, crg_factory)
+class Platform(XilinxPlatform):
+ def __init__(self, device="xc7k325t", programmer=""):
+ XilinxPlatform.__init__(self, device, _io)
def do_finalize(self, *args, **kwargs):
pass