soc_core: fix soc_core_argdict
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 12 Oct 2019 21:05:53 +0000 (23:05 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 12 Oct 2019 21:05:53 +0000 (23:05 +0200)
litex/soc/integration/soc_core.py

index 4d9288709419e5a7f3e903bc98cb953b1c4b3585..ef9854a7ed34ff3e2d0bee31cf1798214b692113 100644 (file)
@@ -528,9 +528,10 @@ def soc_core_args(parser):
 def soc_core_argdict(args):
     r = dict()
     for a in inspect.getargspec(SoCCore.__init__).args:
-        arg = getattr(args, a, None)
-        if arg is not None:
-            r[a] = arg
+        if a not in ["self", "platform"]:
+            arg = getattr(args, a, None)
+            if arg is not None:
+                r[a] = arg
     return r
 
 # SoCMini ---------------------------------------------------------------------------------------