cpu/minverva: give more explicit error message when not able to elaborate cpu
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 31 Oct 2019 07:52:04 +0000 (08:52 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 31 Oct 2019 07:52:04 +0000 (08:52 +0100)
litex/soc/cores/cpu/minerva/core.py

index 20f087dd1711a757536735bb1ea92bb1024ccce2..cd9e61a0d44b7a481b11ee1ad05fd18e579aad03 100644 (file)
@@ -99,7 +99,7 @@ class Minerva(CPU):
             cli_params.append("--with-muldiv")
         if subprocess.call(["python3", os.path.join(vdir, "cli.py"), *cli_params, "generate"],
             stdout=open(os.path.join(vdir, "minerva.v"), "w")):
-            raise OSError("Error while generating Minerva CPU")
+            raise OSError("Unable to elaborate Minerva CPU, please check your nMigen/Yosys install")
 
     def do_finalize(self):
         assert hasattr(self, "reset_address")