mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Move wrapTop before V3Coverage (#8291)
This commit is contained in:
+2
-2
@@ -4006,7 +4006,7 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
varp->isStatic(true);
|
||||
varp->valuep(initp);
|
||||
// Add to root, as don't know module we are in, and aids later structure sharing
|
||||
v3Global.rootp()->dollarUnitPkgAddp()->addStmtsp(varp);
|
||||
v3Global.rootp()->dollarUnitPkgp()->addStmtsp(varp);
|
||||
|
||||
UASSERT_OBJ(nodep->itemsp(), nodep, "Enum without items");
|
||||
for (AstEnumItem* itemp = nodep->itemsp(); itemp;
|
||||
@@ -4179,7 +4179,7 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
EnumDType)) {
|
||||
AstVarRef* const tabRefp
|
||||
= new AstVarRef{fl, enumValueTabp(enumDtp), VAccess::READ};
|
||||
tabRefp->classOrPackagep(v3Global.rootp()->dollarUnitPkgAddp());
|
||||
tabRefp->classOrPackagep(v3Global.rootp()->dollarUnitPkgp());
|
||||
AstNodeExpr* const randp
|
||||
= newRandValue(fl, randcVarp, exprp->findBasicDType(VBasicDTypeKwd::UINT32));
|
||||
AstNodeExpr* const moddivp = new AstModDiv{
|
||||
|
||||
Reference in New Issue
Block a user