more understandable error when missing a memory
authorDaniel Kucera <daniel.kucera@gmail.com>
Tue, 13 Aug 2019 08:14:16 +0000 (10:14 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2019 08:14:16 +0000 (10:14 +0200)
litex/soc/integration/soc_core.py

index c70a9c90a93d3dd6b24704b048f593d7a9b853eb..f2a096273d0536f88592c511974c1b5e84f22104 100644 (file)
@@ -501,7 +501,7 @@ class SoCCore(Module):
         if self.cpu_type is not None:
             for mem in "rom", "sram":
                 if mem not in registered_mems:
-                    raise FinalizeError("CPU needs a {} to be registered with SoC.register_mem()".format(mem))
+                    raise FinalizeError("CPU needs \"{}\" to be registered with SoC.register_mem()".format(mem))
 
         # Add the Wishbone Masters/Slaves interconnect
         if len(self._wb_masters):