cpu/minverva: give more explicit error message when not able to elaborate cpu

This commit is contained in:
Florent Kermarrec 2019-10-31 08:52:04 +01:00
parent 3465fc96d4
commit 85d6607257
1 changed files with 1 additions and 1 deletions

View 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")