File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed
vtr_flow/scripts/python_libs/vtr Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ ODIN_II/usefull_tools/**/track_completed
100
100
* .o
101
101
* .a
102
102
103
+ #
104
+ # Yosys exec dir
105
+ #
106
+ Yosys
107
+
103
108
#
104
109
# Python
105
110
#
Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ endif()
18
18
# Yosys is compiled only if the user ask for it
19
19
if (${ODIN_USE_YOSYS} OR ${WITH_YOSYS} )
20
20
add_subdirectory (libyosys )
21
+
22
+ # In addition to libyosys in the build folder, we copy the libyosys directory
23
+ # into a temporary folder in the VTR root, name Yosys, to have access to Yosys
24
+ # execs for using in VTR scripts (similar to VPR/vpr or ODIN_II/odin_II)
25
+ add_custom_target (vtr-yosys ALL
26
+ DEPENDS yosys
27
+ COMMAND ${CMAKE_COMMAND} -E
28
+ remove_directory ${VTR_SOURCE_DIR} /Yosys/
29
+ COMMAND ${CMAKE_COMMAND} -E
30
+ make_directory ${VTR_SOURCE_DIR} /Yosys/
31
+ COMMAND ${CMAKE_COMMAND} -E
32
+ copy_directory ${CMAKE_CURRENT_BINARY_DIR} /libyosys ${VTR_SOURCE_DIR} /Yosys/
33
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
34
+
21
35
endif ()
22
36
23
37
if (${VTR_ENABLE_CAPNPROTO} )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ add_dependencies(libyosys yosys)
44
44
# specify where the library is and where to find the headers
45
45
set_target_properties (libyosys
46
46
PROPERTIES PREFIX "" #Avoid extra 'lib' prefix
47
- IMPORTED_LOCATION ${LIB_FILE }
47
+ IMPORTED_LOCATION ${BINARY_LIB_FILE }
48
48
INTERFACE_INCLUDE_DIRECTORIES ${YOSYS_INCLUDE_DIRS} )
49
49
50
50
Original file line number Diff line number Diff line change 17
17
odin_output_on_error_path = odin_path / "regression_test" / ".library" / "output_on_error.conf"
18
18
19
19
# YOSYS paths
20
- yosys_exe_path = root_path / "libs" / "EXTERNAL" / "libyosys" / "yosys"
20
+ yosys_path = root_path / "Yosys"
21
+ yosys_exe_path = yosys_path / "bin" / "yosys"
21
22
yosys_lib_path = vtr_flow_path / "misc" / "yosyslib"
22
23
yosys_script_path = yosys_lib_path / "synthesis.tcl"
23
24
You can’t perform that action at this time.
0 commit comments