Commit 599775f4 by Liangfu Chen Committed by Thierry Moreau

[VTA] Speedup TSIM by Multi-threading (#4491)

This PR tries to increase TSIM performance by introducing multi-threading support.
parent e47bc1dd
......@@ -37,6 +37,7 @@ TOP = VTA
TOP_TEST = Test
BUILD_NAME = build
USE_TRACE = 0
USE_THREADS = $(shell nproc)
VTA_LIBNAME = libvta_hw
UNITTEST_NAME = all
CXX = g++
......@@ -92,6 +93,12 @@ else
cxx_flags += -DVM_TRACE=0
endif
ifneq ($(USE_THREADS), 0)
verilator_opt += -threads $(USE_THREADS)
cxx_flags += -DVL_THREADED
cxx_objs += $(verilator_build_dir)/verilated_threads.o
endif
VPATH = $(VERILATOR_INC_DIR):$(verilator_build_dir):$(vta_dir)/hardware/dpi
# The following is to be consistent with cmake
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment