Fix wait 0.

This commit is contained in:
Wilson Snyder
2022-11-11 17:18:59 -05:00
parent 0c75d4eaca
commit 9d7c4d9af3
4 changed files with 44 additions and 35 deletions
+3 -1
View File
@@ -709,11 +709,13 @@ private:
awaitp->dtypeSetVoid();
nodep->replaceWith(awaitp->makeStmt());
if (stmtsp) VL_DO_DANGLING(stmtsp->deleteTree(), stmtsp);
VL_DO_DANGLING(condp->deleteTree(), condp);
} else if (stmtsp) {
// Just put the statements there
nodep->replaceWith(stmtsp);
} else {
nodep->unlinkFrBack();
}
VL_DO_DANGLING(condp->deleteTree(), condp);
} else if (needDynamicTrigger(condp)) {
// No point in making a sentree, just use the expression as sensitivity
// Put the event control in an if so we only wait if the condition isn't met already