whoops, ICS in litex sim needs to be 0x1000 size region
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 5 Sep 2020 15:38:56 +0000 (16:38 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 5 Sep 2020 15:38:56 +0000 (16:38 +0100)
src/soc/litex/florent/sim.py

index a2125900ac4162d071d0efb9086a2ce5f86207c1..dcae6fbf35db80c5ebfeecd5e252e368927c2def 100755 (executable)
@@ -114,12 +114,12 @@ class LibreSoCSim(SoCSDRAM):
             # XICS interrupt devices
             icp_addr = self.mem_map['icp']
             icp_wb = self.cpu.xics_icp
-            icp_region = SoCRegion(origin=icp_addr, size=0x1000, cached=False)
+            icp_region = SoCRegion(origin=icp_addr, size=0x20, cached=False)
             self.bus.add_slave(name='icp', slave=icp_wb, region=icp_region)
 
             ics_addr = self.mem_map['ics']
             ics_wb = self.cpu.xics_ics
-            ics_region = SoCRegion(origin=ics_addr, size=0x20, cached=False)
+            ics_region = SoCRegion(origin=ics_addr, size=0x1000, cached=False)
             self.bus.add_slave(name='ics', slave=ics_wb, region=ics_region)
 
             # Simple GPIO peripheral