soc_core: set csr to 0x00000000 when there is no wishbone
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 23 Sep 2019 13:57:14 +0000 (15:57 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 23 Sep 2019 13:57:14 +0000 (15:57 +0200)
litex/soc/integration/soc_core.py

index 152a4a2c1f701d3b0a652cf080dbe993150f1b9e..512d0dc0cc656f9b1de861c85629f6501a7e75c9 100644 (file)
@@ -205,6 +205,9 @@ class SoCCore(Module):
         if cpu_type == "None":
             cpu_type = None
 
+        if not with_wishbone:
+            self.soc_mem_map["csr"]  = 0x00000000
+
         self.cpu_type    = cpu_type
         self.cpu_variant = cpu.check_format_cpu_variant(cpu_variant)