Improve interface parent error wording (#5357)

This commit is contained in:
Wilson Snyder
2025-09-08 07:21:03 -04:00
parent a1167b3d55
commit c6ffd22c45
4 changed files with 16 additions and 9 deletions
+7 -3
View File
@@ -525,10 +525,14 @@ public:
varp->v3warn(E_UNSUPPORTED,
"Unsupported: Interfaced port on top level module");
}
ifacerefp->v3error("Parent instance's interface is not found: "
<< AstNode::prettyNameQ(ifacerefp->ifaceName()) << '\n'
ifacerefp->v3error("Interface "
<< AstNode::prettyNameQ(ifacerefp->ifaceName())
<< " not connected as parent's interface not connected\n"
<< ifacerefp->warnMore()
<< "... Perhaps intended an interface instantiation but "
<< "... Perhaps caused by another error on the parent "
"interface that needs resolving\n"
<< ifacerefp->warnMore()
<< "... Or, perhaps intended an interface instantiation but "
"are missing parenthesis (IEEE 1800-2023 25.3)?");
continue;
} else if (ifacerefp->ifaceViaCellp()->dead()