Support global clocking and $global_clock.

This commit is contained in:
Wilson Snyder
2023-01-28 12:31:52 -05:00
parent bea225e191
commit f20997a2f0
13 changed files with 139 additions and 24 deletions
+1 -2
View File
@@ -350,8 +350,7 @@ private:
AstNodeExpr* const exprp = nodep->exprp()->unlinkFrBack();
AstNodeExpr* inp = newSampledExpr(exprp);
AstVar* invarp = nullptr;
AstSenTree* const sentreep = nodep->sentreep();
sentreep->unlinkFrBack();
AstSenTree* const sentreep = nodep->sentreep()->unlinkFrBack();
AstAlways* const alwaysp
= new AstAlways{nodep->fileline(), VAlwaysKwd::ALWAYS, sentreep, nullptr};
m_modp->addStmtsp(alwaysp);