[VTA] Support TLPP in function simulator. (#3555)
authorHua Jiang <huaj@xilinx.com>
Sat, 7 Sep 2019 00:03:51 +0000 (17:03 -0700)
committerThierry Moreau <moreau@uw.edu>
Sat, 7 Sep 2019 00:03:51 +0000 (17:03 -0700)
commit50c4546f59879753114a423ef6622c8d49c1a739
tree7fea5324ac2ab1cad4060582a1ec760d90721584
parent70042b78ee20f3fa98b1dc8dbc355b90283b8370
[VTA] Support TLPP in function simulator. (#3555)

* [VTA] Support TLPP in function simulator.
Issue:
currently vta function simulator just doing serialized instruction
execution, the dependency logic of runtime ISA which use for task
level pipe line parallelism can not get verified by function simulator.

Solution:
make the simulator driver to be multiple thread and support TLPP.

Benefit:
TLPP support VTA function simulator would make VTA logic testing/debug
/change more easy.

replace boost lockfree queue

add configure control for simulator tlpp enable or disable.

change code tyle into google style.

Wrap queue read/write and sync logic to make function call more simple.

Add some comments.

Remove MT logic, change into Single thread mode.

address review comments.

code style change to match google code style and add comments.

add cmake macro to enable/disable simulator tlpp logic.

submodule update.

correct file name mentioned in comments.

* remove USE_VTA_FSIM_TLPP.
cmake/modules/VTA.cmake
vta/include/vta/sim_tlpp.h [new file with mode: 0644]
vta/src/sim/sim_driver.cc
vta/src/sim/sim_tlpp.cc [new file with mode: 0644]