Skip to content

Commit 1b41ee7

Browse files
committed
abc.py uses compiled abc exe instead of PATH
1 parent 1478410 commit 1b41ee7

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

vtr_flow/scripts/python_libs/vtr/abc/abc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from collections import OrderedDict
66
from pathlib import Path
77
from vtr import find_vtr_file, determine_lut_size, verify_file, CommandRunner
8+
from vtr import paths
89
from vtr.error import InspectError
910

1011
# pylint: disable=too-many-arguments, too-many-locals
@@ -95,8 +96,8 @@ def run(
9596

9697
populate_clock_list(circuit_file, blackbox_latches_script, clk_list, command_runner, temp_dir)
9798

98-
abc_exec = find_vtr_file("abc", is_executable=True) if abc_exec is None else abc_exec
99-
abc_rc = Path(abc_exec).parent / "abc.rc" if abc_rc is None else abc_rc
99+
abc_exec = str(paths.abc_exe_path) if abc_exec is None else abc_exec
100+
abc_rc = str(paths.abc_rc_path) if abc_rc is None else abc_rc
100101

101102
shutil.copyfile(str(abc_rc), str(temp_dir / "abc.rc"))
102103

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
""" Paths for different VTR flow executables and resources """
2+
3+
import pathlib
4+
5+
# Path to the root repository directory
6+
root_path = pathlib.Path(__file__).absolute().parent.parent.parent.parent.parent
7+
8+
vtr_flow_path = root_path / "vtr_flow"
9+
build_path = root_path / "build"
10+
11+
abc_exe_path = root_path / "abc" / "abc"
12+
abc_rc_path = root_path / "abc" / "abc.rc"

0 commit comments

Comments
 (0)