From: Luke Kenneth Casson Leighton Date: Thu, 14 Apr 2022 15:23:31 +0000 (+0100) Subject: move firmware to address 0x0 to test microwatt xics.bin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fcb2a7980bff2814b651408fed5ca3ac537217e;p=ls2.git move firmware to address 0x0 to test microwatt xics.bin --- diff --git a/src/ls2.py b/src/ls2.py index 9f20828..9899ec2 100644 --- a/src/ls2.py +++ b/src/ls2.py @@ -447,7 +447,7 @@ class DDR3SoC(SoC, Elaboratable): # additional SRAM at address if DRAM is not also at 0x0 # (TODO, check Flash, and HyperRAM as well) - if ddr_pins is None or ddr_addr != 0x0: + if (ddr_pins is None or ddr_addr != 0x0) and fw_addr != 0: print ("SRAM 0x8000 at address 0x0") sram_width = 32 self.sram = SRAMPeripheral(size=0x8000, @@ -752,7 +752,7 @@ def build_platform(fpga, firmware): # select a firmware address fw_addr = None if firmware is not None: - fw_addr = 0xff00_0000 # firmware at HI address, now + fw_addr = 0x00000000 # firmware at HI address, now print ("fpga", fpga, "firmware", firmware)