From c88029d330ad658ef3dfdbb64d9a367afe67607a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 24 Sep 2018 02:01:15 +0200 Subject: [PATCH] soc_core: add uart-stub argument --- litex/soc/integration/soc_core.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 5f688338..bfbeacce 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -385,11 +385,18 @@ def soc_core_args(parser): help="size/enable the integrated (BIOS) ROM") parser.add_argument("--integrated-main-ram-size", default=None, type=int, help="size/enable the integrated main RAM") + parser.add_argument("--uart-stub", default=False, type=bool, + help="enable uart stub") def soc_core_argdict(args): r = dict() - for a in "cpu_type", "cpu_variant", "integrated_rom_size", "integrated_main_ram_size": + for a in [ + "cpu_type", + "cpu_variant", + "integrated_rom_size", + "integrated_main_ram_size", + "uart_stub"]: arg = getattr(args, a) if arg is not None: r[a] = arg -- 2.30.2