mirror of
https://github.com/verilator/verilator.git
synced 2026-10-08 02:53:12 +02:00
Fix dynamic triggers for named events (#4571)
This commit is contained in:
@@ -931,6 +931,13 @@ private:
|
||||
}
|
||||
// Then the trigger check and assignment
|
||||
loopp->addStmtsp(assignp);
|
||||
// Let the dynamic trigger scheduler know if this trigger was set
|
||||
// If it was, a call to the scheduler's evaluate() will return true
|
||||
AstCMethodHard* const anyTriggeredMethodp = new AstCMethodHard{
|
||||
flp, new AstVarRef{flp, getCreateDynamicTriggerScheduler(), VAccess::WRITE},
|
||||
"anyTriggered", new AstVarRef{flp, trigvscp, VAccess::READ}};
|
||||
anyTriggeredMethodp->dtypeSetVoid();
|
||||
loopp->addStmtsp(anyTriggeredMethodp->makeStmt());
|
||||
// If the post update is destructive (e.g. event vars are cleared), create an await for
|
||||
// the post update step
|
||||
if (destructivePostUpdate(sensesp)) {
|
||||
|
||||
Reference in New Issue
Block a user