Fixed show command for constant assignments
authorClifford Wolf <clifford@clifford.at>
Thu, 23 May 2013 06:22:44 +0000 (08:22 +0200)
committerClifford Wolf <clifford@clifford.at>
Thu, 23 May 2013 06:22:44 +0000 (08:22 +0200)
kernel/show.cc

index fd703dd53fcb7f749f3bcbfefd943d76235eb69f..fb8c5d07ce7570ce0d8766c36bf3c2740fdad975 100644 (file)
@@ -317,12 +317,12 @@ struct ShowWorker
                {
                        bool found_lhs_wire = false;
                        for (auto &c : conn.first.chunks) {
-                               if (c.wire != NULL && design->selected_member(module->name, c.wire->name))
+                               if (c.wire == NULL || design->selected_member(module->name, c.wire->name))
                                        found_lhs_wire = true;
                        }
                        bool found_rhs_wire = false;
                        for (auto &c : conn.second.chunks) {
-                               if (c.wire != NULL && design->selected_member(module->name, c.wire->name))
+                               if (c.wire == NULL || design->selected_member(module->name, c.wire->name))
                                        found_rhs_wire = true;
                        }
                        if (!found_lhs_wire || !found_rhs_wire)