customize main ram size from command line argument

This commit is contained in:
asadaleem-rs 2021-08-30 17:36:40 +05:00
parent 1d27e25cbb
commit 8428e89f09
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ def main():
if args.rom_init:
soc_kwargs["integrated_rom_init"] = get_mem_data(args.rom_init, cpu.endianness)
if not args.with_sdram:
soc_kwargs["integrated_main_ram_size"] = 0x10000000 # 256 MB
#configure main ram size from command line argument
soc_kwargs["integrated_main_ram_size"] = args.integrated_main_ram_size
if args.ram_init is not None:
soc_kwargs["integrated_main_ram_init"] = get_mem_data(args.ram_init, cpu.endianness)
else: