Fix ConfigBuilder instantiation in SoC base class
authorJean THOMAS <git0@pub.jeanthomas.me>
Mon, 15 Jun 2020 09:13:09 +0000 (11:13 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Mon, 15 Jun 2020 09:13:09 +0000 (11:13 +0200)
lambdasoc/soc/base.py

index df5dac50aca13dc576c7c18364164a60222cf178..79cb6c2a03ab3bdd65cb05df0cdfebc2998d5a69 100644 (file)
@@ -39,8 +39,8 @@ def socproperty(cls, src_loc_at=0):
 class SoC:
     memory_map = socproperty(MemoryMap)
 
-    def build(self, build_dir="build/soc", do_build=True):
-        plan = ConfigBuilder.prepare(self)
+    def build(self, build_dir="build/soc", do_build=True, name=None):
+        plan = ConfigBuilder().prepare(self, build_dir, name)
         if not do_build:
             return plan