soc/integration: return vns with soc and builder

This commit is contained in:
Florent Kermarrec 2016-01-14 17:15:39 +01:00
parent 2c32791a28
commit 002508a69a
2 changed files with 5 additions and 4 deletions

View File

@ -154,9 +154,10 @@ class Builder:
if self.gateware_toolchain_path is not None:
toolchain_path = self.gateware_toolchain_path
self.soc.build(build_dir=os.path.join(self.output_dir, "gateware"),
run=self.compile_gateware, toolchain_path=toolchain_path,
**kwargs)
vns = self.soc.build(build_dir=os.path.join(self.output_dir, "gateware"),
run=self.compile_gateware, toolchain_path=toolchain_path,
**kwargs)
return vns
def builder_args(parser):

View File

@ -201,7 +201,7 @@ class SoCCore(Module):
self.comb += self.cpu_or_bridge.interrupt[v].eq(getattr(self, k).ev.irq)
def build(self, *args, **kwargs):
self.platform.build(self, *args, **kwargs)
return self.platform.build(self, *args, **kwargs)
def soc_core_args(parser):