[VTA] Fix RewriteForceSerial Function logic issue. (#3854)
authorHua Jiang <huaj@xilinx.com>
Thu, 29 Aug 2019 17:48:42 +0000 (10:48 -0700)
committerThierry Moreau <moreau@uw.edu>
Thu, 29 Aug 2019 17:48:42 +0000 (10:48 -0700)
commit187600daef6cf89f9ab1d8a8a44316b8536475c1
treec5790a6cedf5178799b7eb166fa0c520cbb2798a
parentd201978415f7e2a13565c12bdd4fd38d2557708f
[VTA] Fix RewriteForceSerial Function logic issue. (#3854)

Issue:
RewriteForceSerial is a debug function to force instructions
to be serialize instead of parrallel running, by doing so we
can isolate some parallel problem or do performance compare
between parallel and serialize. But this function have some
problem, once get enabled by set debug flag, vta would stuck
when running on pynq board.

Analysis:
once enable RewriteForceSerial, the dependency logic is different
with default one, but we still use same logic to generate FINISH
and other logic, this would cause dead lock.

Solution:
give a different dependency settings when enable RewriteForceSerial.
vta/src/runtime.cc