From c4bb4169f1a4b9414468c3d00661baccc8246d6a Mon Sep 17 00:00:00 2001 From: Mateusz Holenko Date: Tue, 21 Jan 2020 16:36:45 +0100 Subject: [PATCH] soc_core: fix integrated_sram_size argument type Right now it's kept as a string and crashes when trying to do math operations on it. --- litex/soc/integration/soc_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 05e60bf1..b8ee639d 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -612,7 +612,7 @@ def soc_core_args(parser): parser.add_argument("--integrated-rom-file", default=None, type=str, help="integrated (BIOS) ROM binary file (default=32KB)") # SRAM parameters - parser.add_argument("--integrated_sram_size", default=0x1000, + parser.add_argument("--integrated_sram_size", default=0x1000, type=int, help="size/enable the integrated SRAM (default=4KB)") # MAIN_RAM parameters parser.add_argument("--integrated-main-ram-size", default=None, type=int, -- 2.30.2