mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Support queue of arrays
This commit is contained in:
+2
-1
@@ -1451,9 +1451,10 @@ private:
|
||||
// Cleanup array size
|
||||
userIterateAndNext(nodep->rangep(), WidthVP(SELF, BOTH).p());
|
||||
nodep->dtypep(nodep); // The array itself, not subDtype
|
||||
if (VN_IS(nodep, UnpackArrayDType)) {
|
||||
if (auto* adtypep = VN_CAST(nodep, UnpackArrayDType)) {
|
||||
// Historically array elements have width of the ref type not the full array
|
||||
nodep->widthFromSub(nodep->subDTypep());
|
||||
if (nodep->subDTypep()->skipRefp()->isCompound()) adtypep->isCompound(true);
|
||||
} else {
|
||||
int width = nodep->subDTypep()->width() * nodep->rangep()->elementsConst();
|
||||
nodep->widthForce(width, width);
|
||||
|
||||
Reference in New Issue
Block a user