Fixing mor1kx data finding.
authorTim 'mithro' Ansell <me@mith.ro>
Mon, 30 Mar 2020 00:28:46 +0000 (17:28 -0700)
committerTim 'mithro' Ansell <me@mith.ro>
Sun, 12 Apr 2020 01:37:06 +0000 (18:37 -0700)
litex/soc/cores/cpu/mor1kx/core.py

index 4fe41b36c743c45fed626f7259ba04396592a47c..a380e3faf9664e6962623c97331f38fe00b6493e 100644 (file)
@@ -174,8 +174,7 @@ class MOR1KX(CPU):
     @staticmethod
     def add_sources(platform):
         vdir = os.path.join(
-            os.path.abspath(os.path.dirname(__file__)),
-            "verilog", "rtl", "verilog")
+            find_data("cpu", "mor1kx"), "rtl", "verilog")
         platform.add_source_dir(vdir)
         platform.add_verilog_include_path(vdir)