mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Misc internal coverage improvements.
This commit is contained in:
+2
-8
@@ -130,10 +130,7 @@ class SliceVisitor : public AstNVisitor {
|
||||
if (!nodep->user1() && !VN_IS(nodep, AssignAlias)) {
|
||||
nodep->user1(true);
|
||||
m_assignError = false;
|
||||
if (debug() >= 9) {
|
||||
cout << endl;
|
||||
nodep->dumpTree(cout, " Deslice-In: ");
|
||||
}
|
||||
if (debug() >= 9) nodep->dumpTree(cout, " Deslice-In: ");
|
||||
AstNodeDType* dtp = nodep->lhsp()->dtypep()->skipRefp();
|
||||
if (AstUnpackArrayDType* arrayp = VN_CAST(dtp, UnpackArrayDType)) {
|
||||
// Left and right could have different msb/lsbs/endianness, but #elements is common
|
||||
@@ -148,10 +145,7 @@ class SliceVisitor : public AstNVisitor {
|
||||
if (debug() >= 9) { newp->dumpTree(cout, "-new "); }
|
||||
newlistp = AstNode::addNextNull(newlistp, newp);
|
||||
}
|
||||
if (debug() >= 9) {
|
||||
cout << endl;
|
||||
nodep->dumpTree(cout, " Deslice-Dn: ");
|
||||
}
|
||||
if (debug() >= 9) nodep->dumpTree(cout, " Deslice-Dn: ");
|
||||
nodep->replaceWith(newlistp);
|
||||
VL_DO_DANGLING(nodep->deleteTree(), nodep);
|
||||
// Normal edit iterator will now iterate on all of the expansion assignments
|
||||
|
||||
Reference in New Issue
Block a user