mirror of
https://github.com/verilator/verilator.git
synced 2026-08-31 10:04:40 +02:00
Support sequence 'throughout' operator (#7378)
This commit is contained in:
+14
-1
@@ -1637,7 +1637,7 @@ class WidthVisitor final : public VNVisitor {
|
||||
if (nodep->seedp()) iterateCheckSigned32(nodep, "seed", nodep->seedp(), BOTH);
|
||||
}
|
||||
}
|
||||
void visit(AstSExprGotoRep* nodep) override {
|
||||
void visit(AstSGotoRep* nodep) override {
|
||||
assertAtExpr(nodep);
|
||||
if (m_vup->prelim()) {
|
||||
iterateCheckBool(nodep, "exprp", nodep->exprp(), BOTH);
|
||||
@@ -1645,6 +1645,19 @@ class WidthVisitor final : public VNVisitor {
|
||||
nodep->dtypeSetBit();
|
||||
}
|
||||
}
|
||||
void visit(AstSThroughout* nodep) override {
|
||||
m_hasSExpr = true;
|
||||
assertAtExpr(nodep);
|
||||
if (m_vup->prelim()) {
|
||||
// lhsp is a boolean expression, not a sequence -- clear m_underSExpr temporarily
|
||||
VL_RESTORER(m_underSExpr);
|
||||
m_underSExpr = false;
|
||||
iterateCheckBool(nodep, "lhsp", nodep->lhsp(), BOTH);
|
||||
m_underSExpr = true;
|
||||
iterate(nodep->rhsp());
|
||||
nodep->dtypeSetBit();
|
||||
}
|
||||
}
|
||||
void visit(AstSExpr* nodep) override {
|
||||
VL_RESTORER(m_underSExpr);
|
||||
m_underSExpr = true;
|
||||
|
||||
Reference in New Issue
Block a user