From 4c9554b65ce33092606e7fbce791c57fd188ad75 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 15 Feb 2015 19:20:48 +0100 Subject: [PATCH] gensoc: call do_exit after SoC is built --- make.py | 3 ++- misoclib/gensoc/__init__.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/make.py b/make.py index efec55ea3..108c9fa6a 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 6ea19ca56..e07d9587d 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)