Skip to content

Commit

Permalink
[VTA] Speedup TSIM by Multi-threading (apache#4491)
Browse files Browse the repository at this point in the history
This PR tries to increase TSIM performance by introducing multi-threading support.
  • Loading branch information
liangfu authored and Xingyu Zhou committed Dec 13, 2019
1 parent b6174e8 commit a4a23e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vta/hardware/chisel/Makefile
Expand Up @@ -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++
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a4a23e1

Please sign in to comment.