Support clocking event on a sequence declaration body (#7598) (#7793)

Fixes #7598.
This commit is contained in:
Yilou Wang
2026-06-17 17:57:18 -04:00
committed by GitHub
parent 26c85d4495
commit 3a4377d39e
12 changed files with 258 additions and 0 deletions
+7
View File
@@ -1142,6 +1142,13 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public VNVisitorConst {
puts(") ");
iterateConst(nodep->propp());
}
void visit(AstSClocked* nodep) override {
puts("@(");
iterateConst(nodep->sensesp());
puts(") ");
iterateConst(nodep->exprp());
puts("\n");
}
void visit(AstPropAlways* nodep) override {
puts(nodep->isStrong() ? "s_always" : "always");
if (!VN_IS(nodep->loBoundp(), Unbounded) || !VN_IS(nodep->hiBoundp(), Unbounded)) {