diff --git a/dv/uvm/core_ibex/Makefile b/dv/uvm/core_ibex/Makefile index 88265961..6e786017 100644 --- a/dv/uvm/core_ibex/Makefile +++ b/dv/uvm/core_ibex/Makefile @@ -318,7 +318,6 @@ $(OUT)/rtl_sim/.compile.stamp: \ $(compile-vars-prereq) $(all-verilog) $(risc-dv-files) | $(OUT)/rtl_sim @python3 ./sim.py \ --o=${OUT} \ - --riscv_dv_root=${GEN_DIR} \ --steps=compile \ ${COMMON_OPTS} \ --simulator="${SIMULATOR}" $(cov-arg) $(wave-arg) \ @@ -352,7 +351,6 @@ $(metadata)/rtl_sim.run.stamp: \ $(metadata)/rtl_sim.compile.stamp $(metadata)/instr_gen.compile.stamp @python3 ./sim.py \ --o=$(OUT-SEED) \ - --riscv_dv_root=${GEN_DIR} \ --steps=sim \ ${TEST_OPTS} \ --simulator="${SIMULATOR}" $(cov-arg) $(wave-arg) \ diff --git a/dv/uvm/core_ibex/sim.py b/dv/uvm/core_ibex/sim.py index 487d2c97..d0a4f7a2 100644 --- a/dv/uvm/core_ibex/sim.py +++ b/dv/uvm/core_ibex/sim.py @@ -24,13 +24,14 @@ import sys _CORE_IBEX = os.path.normpath(os.path.join(os.path.dirname(__file__))) _IBEX_ROOT = os.path.normpath(os.path.join(_CORE_IBEX, '../../..')) -_DV_SCRIPTS = os.path.join(_IBEX_ROOT, 'vendor/google_riscv-dv/scripts') +_RISCV_DV_ROOT = os.path.join(_IBEX_ROOT, 'vendor/google_riscv-dv') _OLD_SYS_PATH = sys.path # Import riscv_trace_csv and lib from _DV_SCRIPTS before putting sys.path back # as it started. try: - sys.path = ([os.path.join(_CORE_IBEX, 'riscv_dv_extension'), _DV_SCRIPTS] + + sys.path = ([os.path.join(_CORE_IBEX, 'riscv_dv_extension'), + os.path.join(_RISCV_DV_ROOT, 'scripts')] + sys.path) from lib import (get_seed, process_regression_list, @@ -292,8 +293,6 @@ def main(): parser.add_argument("--o", type=str, default="out", help="Output directory name") - parser.add_argument("--riscv_dv_root", type=str, default="", - help="Root directory of RISCV-DV") parser.add_argument("--testlist", help="Regression testlist", default=os.path.join(_CORE_IBEX, 'riscv_dv_extension', @@ -358,7 +357,7 @@ def main(): if steps['sim'] or steps['compare']: process_regression_list(args.testlist, args.test, args.iterations, - matched_list, args.riscv_dv_root) + matched_list, _RISCV_DV_ROOT) if not matched_list: sys.exit("Cannot find %s in %s" % (args.test, args.testlist))