gensoc: call do_exit after SoC is built
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 15 Feb 2015 18:20:48 +0000 (19:20 +0100)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Wed, 18 Feb 2015 17:38:14 +0000 (10:38 -0700)
make.py
misoclib/gensoc/__init__.py

diff --git a/make.py b/make.py
index efec55ea3c7413e3abcb5eff9d51484c25a17af9..108c9fa6a0ec998c3f63552fb2a3d0d97aee0da0 100755 (executable)
--- 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()
index 6ea19ca56d1edfed6901a66dbe6099d5b039d3df..e07d9587d6eeb881e86afa727661896fa3f1afec 100644 (file)
@@ -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)