mirror of https://github.com/YosysHQ/yosys.git
Fixed show command for constant assignments
This commit is contained in:
parent
3b8882ae49
commit
04996657c8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue