From 04996657c8a0642a83d52e5c6c42ed86c9d19ba9 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 23 May 2013 08:22:44 +0200 Subject: [PATCH] Fixed show command for constant assignments --- kernel/show.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2