From: Clifford Wolf Date: Thu, 23 May 2013 06:22:44 +0000 (+0200) Subject: Fixed show command for constant assignments X-Git-Tag: yosys-0.2.0~630 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04996657c8a0642a83d52e5c6c42ed86c9d19ba9;p=yosys.git Fixed show command for constant assignments --- diff --git a/kernel/show.cc b/kernel/show.cc index fd703dd53..fb8c5d07c 100644 --- a/kernel/show.cc +++ b/kernel/show.cc @@ -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)