Skip to content

Commit

Permalink
WIP: Make all triggers dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryk committed Oct 17, 2023
1 parent 380b21f commit 5965000
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/V3Timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ class TimingControlVisitor final : public VNVisitor {
// Returns true if we are under a class or the given tree has any references to locals. These
// are cases where static, globally-evaluated triggers are not suitable.
bool needDynamicTrigger(AstNode* const nodep) const {
return true;
return m_classp || nodep->exists([](const AstNodeVarRef* const refp) {
return refp->varp()->isFuncLocal();
});
Expand Down

0 comments on commit 5965000

Please sign in to comment.