Skip to content

Commit

Permalink
Support NBAs in non-inlined tasks/functions
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Bieganski <[email protected]>
  • Loading branch information
kbieganski committed Oct 17, 2023
1 parent 3ffdaa0 commit a7602b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/V3Timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,16 +781,14 @@ class TimingControlVisitor final : public VNVisitor {
iterateChildren(nodep);
m_activep = nullptr;
}
void visit(AstNodeProcedure* nodep) override {
void visit(AstInitial* nodep) override {
VL_RESTORER(m_procp);
m_procp = nodep;
VL_RESTORER(m_underProcedure);
m_underProcedure = true;
iterateChildren(nodep);
if (hasFlags(nodep, T_SUSPENDEE)) nodep->setSuspendable();
if (hasFlags(nodep, T_HAS_PROC)) nodep->setNeedProcess();
}
void visit(AstInitial* nodep) override {
visit(static_cast<AstNodeProcedure*>(nodep));
if (nodep->needProcess() && !nodep->user1SetOnce()) {
nodep->addStmtsp(
Expand Down

0 comments on commit a7602b3

Please sign in to comment.