From 0abc7d4f0bb635775698f7e18072bc69b72a7db5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 1 May 2020 11:01:50 +0200 Subject: [PATCH] cpu/Minerva: Clone the repository locally for now, we need to create a pythondata repository. --- litex/soc/cores/cpu/minerva/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/cpu/minerva/core.py b/litex/soc/cores/cpu/minerva/core.py index 4ec118b0f..a4b63e629 100644 --- a/litex/soc/cores/cpu/minerva/core.py +++ b/litex/soc/cores/cpu/minerva/core.py @@ -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")