cpu/Minerva: Clone the repository locally for now, we need to create a pythondata...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 1 May 2020 09:01:50 +0000 (11:01 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 1 May 2020 09:03:07 +0000 (11:03 +0200)
litex/soc/cores/cpu/minerva/core.py

index 4ec118b0fe9fb34e5c4c268d1b24cc82267b0759..a4b63e629fa161a2aa1cf3014b9beee59cf629d9 100644 (file)
@@ -98,8 +98,8 @@ class Minerva(CPU):
             cli_params.append("--with-dcache")
         if with_muldiv:
             cli_params.append("--with-muldiv")
-        _dir = os.path.abspath(os.path.dirname(__file__))
-        if subprocess.call(["python3", os.path.join(_dir, "verilog", "cli.py"), *cli_params, "generate"],
+        os.system("git clone http://github.com/lambdaconcept/minerva") # FIXME: create pythondata.
+        if subprocess.call(["python3", os.path.join("minerva", "cli.py"), *cli_params, "generate"],
             stdout=open(verilog_filename, "w")):
             raise OSError("Unable to elaborate Minerva CPU, please check your nMigen/Yosys install")