From ef504f62afa010b75a1ee853c108813efa62e3a7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 12 Oct 2019 23:05:53 +0200 Subject: [PATCH] soc_core: fix soc_core_argdict --- litex/soc/integration/soc_core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 4d928870..ef9854a7 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -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 --------------------------------------------------------------------------------------- -- 2.30.2