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.
This commit is contained in:
parent
d39dc8cf5d
commit
c4bb4169f1
|
@ -612,7 +612,7 @@ def soc_core_args(parser):
|
||||||
parser.add_argument("--integrated-rom-file", default=None, type=str,
|
parser.add_argument("--integrated-rom-file", default=None, type=str,
|
||||||
help="integrated (BIOS) ROM binary file (default=32KB)")
|
help="integrated (BIOS) ROM binary file (default=32KB)")
|
||||||
# SRAM parameters
|
# 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)")
|
help="size/enable the integrated SRAM (default=4KB)")
|
||||||
# MAIN_RAM parameters
|
# MAIN_RAM parameters
|
||||||
parser.add_argument("--integrated-main-ram-size", default=None, type=int,
|
parser.add_argument("--integrated-main-ram-size", default=None, type=int,
|
||||||
|
|
Loading…
Reference in New Issue