From: Luke Kenneth Casson Leighton Date: Sat, 19 Sep 2020 14:45:07 +0000 (+0100) Subject: disable internal RAM set SRAM to much smaller X-Git-Tag: semi_working_ecp5~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4513aaa71cdf62e2fd9787896e91c8f5df4aa0e9;p=soc.git disable internal RAM set SRAM to much smaller --- diff --git a/src/soc/litex/florent/ls180soc.py b/src/soc/litex/florent/ls180soc.py index a1894984..a3b728d3 100755 --- a/src/soc/litex/florent/ls180soc.py +++ b/src/soc/litex/florent/ls180soc.py @@ -70,13 +70,13 @@ class LibreSoCSim(SoCCore): #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \ # "tests/1.bin" #ram_fname = "/tmp/test.bin" - #ram_fname = None + ram_fname = None #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \ # "micropython/firmware.bin" #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \ # "tests/xics/xics.bin" - ram_fname = "/home/lkcl/src/libresoc/microwatt/" \ - "tests/decrementer/decrementer.bin" + #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \ + # "tests/decrementer/decrementer.bin" #ram_fname = "/home/lkcl/src/libresoc/microwatt/" \ # "hello_world/hello_world.bin" @@ -93,11 +93,11 @@ class LibreSoCSim(SoCCore): # }, "little") ram_init = get_mem_data(ram_fname, "little") - # remap the main RAM to higher up - self.mem_map["main_ram"] = 0x90000000 + # remap the main RAM to reset-start-address + self.mem_map["main_ram"] = 0x00000000 - # sram starting at reset-start-address - self.mem_map["sram"] = 0x00000000 + # without sram nothing works, therefore move it to higher up + self.mem_map["sram"] = 0x90000000 # put UART at 0xc000200 (w00t! this works!) self.csr_map["uart"] = 4