Fix detection of wire/reg duplicates

This commit is contained in:
Wilson Snyder
2023-05-05 20:16:27 -04:00
parent 584f8cc9e7
commit d308a561e4
5 changed files with 22 additions and 4 deletions
+2 -1
View File
@@ -1211,7 +1211,8 @@ class LinkDotFindVisitor final : public VNVisitor {
return;
}
const bool nansiBad
= ((findvarp->isDeclTyped() && nodep->isDeclTyped())
= (((findvarp->isDeclTyped() || findvarp->isNet())
&& (nodep->isDeclTyped() || nodep->isNet()))
|| (findvarp->isIO() && nodep->isIO())); // e.g. !(output && output)
const bool ansiBad
= findvarp->isAnsi() || nodep->isAnsi(); // dup illegal with ANSI