hotfix in "check" command
authorClifford Wolf <clifford@clifford.at>
Fri, 13 Feb 2015 13:40:49 +0000 (14:40 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 13 Feb 2015 13:40:49 +0000 (14:40 +0100)
passes/cmds/check.cc

index 39a732fffda201c34d71ee571c8a5e993da3cfac..6840572eb68eec90c6a4a62ca1d016457d5c8529 100644 (file)
@@ -91,7 +91,8 @@ struct CheckPass : public Pass {
                                                wire_drivers[sig[i]].push_back(stringf("module input %s[%d]", log_id(wire), i));
                                }
                                if (wire->port_output)
-                                       for (auto bit : sigmap(wire)) used_wires.insert(bit);
+                                       for (auto bit : sigmap(wire))
+                                               if (bit.wire) used_wires.insert(bit);
                        }
 
                        for (auto it : wire_drivers)