mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
This commit is contained in:
@@ -4585,6 +4585,10 @@ class ConstVisitor final : public VNVisitor {
|
||||
// Custom
|
||||
// Implied by AstIsUnbounded::numberOperate: V("AstIsUnbounded{$lhsp.castConst}", "replaceNum(nodep, 0)");
|
||||
TREEOPV("AstIsUnbounded{$lhsp.castUnbounded}", "replaceNum(nodep, 1)");
|
||||
// Sampled value functions of a constant.
|
||||
// $rose/$fell/$stable/$changed are lowered to $past by V3AssertPre, so they fold via AstPast
|
||||
TREEOPV("AstSampled{$exprp.castConst}", "replaceWChild(nodep, VN_AS(nodep->exprp(), NodeExpr))");
|
||||
TREEOPV("AstPast{$exprp.castConst, !$ticksp}", "replaceWChild(nodep, nodep->exprp())");
|
||||
// clang-format on
|
||||
|
||||
// Possible futures:
|
||||
|
||||
Reference in New Issue
Block a user