IO region adjusted like original

master
kaqu 2 years ago
parent 9676712e54
commit 4435e4de71
  1. 8
      litex/litex/soc/integration/soc.py

@ -847,7 +847,13 @@ class SoC(Module):
colorer(", ".join(cpu_cls.variants))))
raise
self.submodules.cpu = cpu_cls(self.platform, variant)
# Update SoC with CPU constraints
# 25.02.21/KQ Shift I/O region where we want it
if name == "None":
self.cpu.io_regions[0x80000000] = 0x80000000
del self.cpu.io_regions[0]
# Update SoC with CPU constraints
for n, (origin, size) in enumerate(self.cpu.io_regions.items()):
self.bus.add_region("io{}".format(n), SoCIORegion(origin=origin, size=size, cached=False))

Loading…
Cancel
Save