mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Fixes #8394
This commit is contained in:
@@ -1534,6 +1534,13 @@ class TaskVisitor final : public VNVisitor {
|
||||
} else {
|
||||
cfuncp->addStmtsp(assignp);
|
||||
}
|
||||
|
||||
// With --sc, also wake the SystemC wrapper: it cannot see the flag, and may
|
||||
// otherwise sleep until its next timed slot. (usesTiming() is not known yet.)
|
||||
if (v3Global.opt.systemC()) {
|
||||
assignp->addNextHere(new AstCStmt{
|
||||
flp, "vlSymsp->__Vm_wakeEvent.notify(sc_core::SC_ZERO_TIME);\n"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user