File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -138,5 +138,11 @@ set(USE_ANTLR OFF)
138
138
# Whether use Relay debug mode
139
139
set (USE_RELAY_DEBUG OFF )
140
140
141
- # Whether to build VTA dlls on host or device
142
- set (USE_VTA_ON_HOST ON )
141
+ # Whether to build fast VTA simulator driver
142
+ set (USE_VTA_FSIM ON )
143
+
144
+ # Whether to build cycle-accurate VTA simulator driver
145
+ set (USE_VTA_TSIM ON )
146
+
147
+ # Whether to build VTA FPGA driver (device side only)
148
+ set (USE_VTA_FPGA OFF )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ elseif(PYTHON)
38
38
string (REGEX MATCHALL "(^| )-D[A-Za-z0-9_=.]*" VTA_DEFINITIONS "${__vta_defs} " )
39
39
40
40
# Fast simulator driver build
41
- if (USE_VTA_ON_HOST )
41
+ if (USE_VTA_FSIM )
42
42
# Add fsim driver sources
43
43
file (GLOB FSIM_RUNTIME_SRCS vta/src/*.cc)
44
44
list (APPEND FSIM_RUNTIME_SRCS vta/src/sim/sim_driver.cc)
@@ -56,7 +56,7 @@ elseif(PYTHON)
56
56
endif ()
57
57
58
58
# Cycle accurate simulator driver build
59
- if (USE_VTA_ON_HOST )
59
+ if (USE_VTA_TSIM )
60
60
# Add tsim driver sources
61
61
file (GLOB TSIM_RUNTIME_SRCS vta/src/*.cc)
62
62
list (APPEND TSIM_RUNTIME_SRCS vta/src/tsim/tsim_driver.cc)
@@ -77,7 +77,7 @@ elseif(PYTHON)
77
77
endif ()
78
78
79
79
# VTA FPGA driver sources
80
- if (NOT USE_VTA_ON_HOST )
80
+ if (USE_VTA_FPGA )
81
81
file (GLOB FPGA_RUNTIME_SRCS vta/src/*.cc)
82
82
# Rules for Zynq-class FPGAs with pynq OS support (see pynq.io)
83
83
if (${VTA_TARGET} STREQUAL "pynq" OR
Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ ssh xilinx@192.168.2.99
117
117
cd /home/xilinx/tvm
118
118
mkdir build
119
119
cp cmake/config.cmake build/.
120
- echo ' set(USE_VTA_ON_HOST OFF)' >> build/config.cmake
120
+ echo ' set(USE_VTA_FSIM OFF)' >> build/config.cmake
121
+ echo ' set(USE_VTA_TSIM OFF)' >> build/config.cmake
122
+ echo ' set(USE_VTA_FPGA ON)' >> build/config.cmake
121
123
# Copy pynq specific configuration
122
124
cp vta/config/pynq_sample.json vta/config/vta_config.json
123
125
cd build
You can’t perform that action at this time.
0 commit comments