diff --git a/litex/compat/soc_sdram.py b/litex/compat/soc_sdram.py index 16ac21dad..3f020ea18 100644 --- a/litex/compat/soc_sdram.py +++ b/litex/compat/soc_sdram.py @@ -58,7 +58,7 @@ def soc_sdram_args(parser): def soc_sdram_argdict(args): r = soc_core_argdict(args) - for a in inspect.getargspec(SoCSDRAM.__init__).args: + for a in inspect.getfullargspec(SoCSDRAM.__init__).args: if a not in ["self", "platform", "clk_freq"]: arg = getattr(args, a, None) if arg is not None: diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 03a233e1c..13565f600 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -337,7 +337,7 @@ def soc_core_args(parser): def soc_core_argdict(args): r = dict() - for a in inspect.getargspec(SoCCore.__init__).args: + for a in inspect.getfullargspec(SoCCore.__init__).args: if a not in ["self", "platform"]: if a in ["with_uart", "with_timer", "with_ctrl"]: arg = not getattr(args, a.replace("with", "no"), True)