targets: Fix build with --cpu-type=None on iCE40/Up5kSPRAM.
This commit is contained in:
parent
4002b8167c
commit
c5d1a252c5
|
@ -134,7 +134,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# 128KB SPRAM (used as 64kB SRAM / 64kB RAM) -----------------------------------------------
|
||||
self.spram = Up5kSPRAM(size=128 * KILOBYTE)
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(size=128 * KILOBYTE))
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(origin=self.mem_map["sram"], size=128 * KILOBYTE))
|
||||
self.bus.add_region("sram", SoCRegion(
|
||||
origin = self.bus.regions["psram"].origin + 0 * KILOBYTE,
|
||||
size = 64 * KILOBYTE,
|
||||
|
|
|
@ -82,7 +82,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# 128KB SPRAM (used as 64kB SRAM / 64kB RAM) -----------------------------------------------
|
||||
self.spram = Up5kSPRAM(size=128 * KILOBYTE)
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(size=128 * KILOBYTE))
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(origin=self.mem_map["sram"], size=128 * KILOBYTE))
|
||||
self.bus.add_region("sram", SoCRegion(
|
||||
origin = self.bus.regions["psram"].origin + 0 * KILOBYTE,
|
||||
size = 64 * KILOBYTE,
|
||||
|
|
|
@ -113,7 +113,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# 128KB SPRAM (used as 64kB SRAM / 64kB RAM) -----------------------------------------------
|
||||
self.spram = Up5kSPRAM(size=128 * KILOBYTE)
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(size=128 * KILOBYTE))
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(origin=self.mem_map["sram"], size=128 * KILOBYTE))
|
||||
self.bus.add_region("sram", SoCRegion(
|
||||
origin = self.bus.regions["psram"].origin + 0 * KILOBYTE,
|
||||
size = 64 * KILOBYTE,
|
||||
|
|
|
@ -85,7 +85,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# 128KB SPRAM (used as 64kB SRAM / 64kB RAM) -----------------------------------------------
|
||||
self.spram = Up5kSPRAM(size=128 * KILOBYTE)
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(size=128 * KILOBYTE))
|
||||
self.bus.add_slave("psram", self.spram.bus, SoCRegion(origin=self.mem_map["sram"], size=128 * KILOBYTE))
|
||||
self.bus.add_region("sram", SoCRegion(
|
||||
origin = self.bus.regions["psram"].origin + 0 * KILOBYTE,
|
||||
size = 64 * KILOBYTE,
|
||||
|
|
Loading…
Reference in New Issue