From: Mateusz Holenko Date: Tue, 21 Jan 2020 15:36:45 +0000 (+0100) Subject: soc_core: fix integrated_sram_size argument type X-Git-Tag: 24jan2021_ls180~719^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4bb4169f1a4b9414468c3d00661baccc8246d6a;p=litex.git 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. --- 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,