mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix wait 0.
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user