From: Florent Kermarrec Date: Sun, 15 Feb 2015 18:20:48 +0000 (+0100) Subject: gensoc: call do_exit after SoC is built X-Git-Tag: 24jan2021_ls180~2610 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c9554b65ce33092606e7fbce791c57fd188ad75;p=litex.git gensoc: call do_exit after SoC is built --- diff --git a/make.py b/make.py index efec55ea..108c9fa6 100755 --- a/make.py +++ b/make.py @@ -182,7 +182,8 @@ CPU type: {} for decorator in args.decorate: soc = getattr(simplify, decorator)(soc) build_kwargs = dict((k, autotype(v)) for k, v in args.build_option) - platform.build(soc, build_name=build_name, **build_kwargs) + vns = platform.build(soc, build_name=build_name, **build_kwargs) + soc.do_exit(vns) if actions["load-bitstream"] or actions["flash-bitstream"] or actions["flash-bios"]: prog = platform.create_programmer() diff --git a/misoclib/gensoc/__init__.py b/misoclib/gensoc/__init__.py index 6ea19ca5..e07d9587 100644 --- a/misoclib/gensoc/__init__.py +++ b/misoclib/gensoc/__init__.py @@ -138,6 +138,9 @@ class GenSoC(Module): t += clk_period_ns/2 return ceil(t/clk_period_ns) + def do_exit(self, vns): + pass + class IntegratedBIOS: def __init__(self, bios_size=0x8000): self.submodules.rom = wishbone.SRAM(bios_size, read_only=True)