Support s_eventually (#7291) (#7508)

This commit is contained in:
Bartłomiej Chmiel
2026-05-04 09:57:03 -04:00
committed by GitHub
parent bc1acc8aa3
commit 4e349971d3
44 changed files with 717 additions and 261 deletions
+12
View File
@@ -1728,6 +1728,18 @@ class WidthVisitor final : public VNVisitor {
if (nodep->seedp()) iterateCheckSigned32(nodep, "seed", nodep->seedp(), BOTH);
}
}
void visit(AstSEventually* nodep) override {
if (v3Global.opt.timing().isSetFalse() || !v3Global.opt.timing().isSetTrue()) {
nodep->v3warn(E_NOTIMING, "s_eventually requires --timing");
nodep->replaceWith(new AstConst{nodep->fileline(), AstConst::WidthedValue{}, 1, 0});
VL_DO_DANGLING(nodep->deleteTree(), nodep);
return;
}
if (m_vup->prelim()) {
iterateCheckBool(nodep, "exprp", nodep->exprp(), BOTH);
nodep->dtypeSetBit();
}
}
void visit(AstSGotoRep* nodep) override {
assertAtExpr(nodep);
if (m_vup->prelim()) {