From e618d41ffb69000662693b1515b3e0a4549780b7 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sun, 29 Mar 2020 17:28:46 -0700 Subject: [PATCH] Fixing mor1kx data finding. --- litex/soc/cores/cpu/mor1kx/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litex/soc/cores/cpu/mor1kx/core.py b/litex/soc/cores/cpu/mor1kx/core.py index 4fe41b36..a380e3fa 100644 --- a/litex/soc/cores/cpu/mor1kx/core.py +++ b/litex/soc/cores/cpu/mor1kx/core.py @@ -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) -- 2.30.2