Fix broken "inherits dimensions from var/net" warning.

This commit is contained in:
Stephen Williams 2016-02-10 10:56:14 -08:00
parent 139c4154c3
commit 12c39aa4bb
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ NetNet* PWire::elaborate_sig(Design*des, NetScope*scope) const
if (warn_implicit_dimensions
&& port_set_ && net_set_
&& port_.empty() && net_.empty()) {
&& port_.empty() && !net_.empty()) {
cerr << get_fileline() << ": warning: "
<< "Port declaration of " << basename()
<< " inherits dimensions from var/net." << endl;