mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 10:48:27 +02:00
Support generic interface arrays (#7604)
This commit is contained in:
+4
-2
@@ -1033,8 +1033,10 @@ class WidthVisitor final : public VNVisitor {
|
||||
const bool inParameterizedTemplate
|
||||
= m_modep && (m_modep->dead() || m_modep->parameterizedTemplate());
|
||||
const bool inTypeTable = !m_modep;
|
||||
if (nodep->ascending() && !VN_IS(nodep->backp(), UnpackArrayDType)
|
||||
&& !VN_IS(nodep->backp(), Cell) // For cells we warn in V3Inst
|
||||
const AstNode* basep = nodep->backp();
|
||||
while (VN_IS(basep, Range)) basep = basep->backp();
|
||||
if (nodep->ascending() && !VN_IS(basep, UnpackArrayDType)
|
||||
&& !VN_IS(basep, Cell) // For cells we warn in V3Inst
|
||||
&& !m_paramsOnly // Skip during parameter evaluation
|
||||
&& !inDeadModule && !inParameterizedTemplate && !inTypeTable) {
|
||||
nodep->v3warn(ASCRANGE, "Ascending bit range vector: left < right of bit range: ["
|
||||
|
||||
Reference in New Issue
Block a user