mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Generate AstNode accessors via astgen
Introduce the @astgen directives parsed by astgen, currently used for the generation child node (operand) accessors. Please see the updated internal documentation for details.
This commit is contained in:
+2
-2
@@ -109,7 +109,7 @@ class ForceConvertVisitor final : public VNVisitor {
|
||||
new AstSenTree{flp, new AstSenItem{flp, AstSenItem::Initial{}}}};
|
||||
activep->sensesStorep(activep->sensesp());
|
||||
activep->addStmtsp(new AstInitial{flp, assignp});
|
||||
vscp->scopep()->addActivep(activep);
|
||||
vscp->scopep()->addBlocksp(activep);
|
||||
}
|
||||
|
||||
{ // Add the combinational override
|
||||
@@ -127,7 +127,7 @@ class ForceConvertVisitor final : public VNVisitor {
|
||||
new AstSenTree{flp, new AstSenItem{flp, AstSenItem::Combo{}}}};
|
||||
activep->sensesStorep(activep->sensesp());
|
||||
activep->addStmtsp(new AstAssignW{flp, lhsp, rhsp});
|
||||
vscp->scopep()->addActivep(activep);
|
||||
vscp->scopep()->addBlocksp(activep);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user