From 58487908352621036aa360f6bed441fc46b1882e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Thu, 12 Jan 2023 17:06:31 +0100 Subject: passes: show: Label signed_suffix flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make it easier to follow what's going on. Signed-off-by: Martin PoviĊĦer --- passes/cmds/show.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'passes/cmds/show.cc') diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index bd9d1ef4e..ec89fe83a 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -431,10 +431,13 @@ struct ShowWorker std::string label_string = "{{"; - for (auto &p : in_ports) + for (auto &p : in_ports) { + bool signed_suffix = genSignedLabels && cell->hasParam(p.str() + "_SIGNED") + && cell->getParam(p.str() + "_SIGNED").as_bool(); + label_string += stringf(" %s%s|", id2num(p), escape(p.str()), - genSignedLabels && cell->hasParam(p.str() + "_SIGNED") && - cell->getParam(p.str() + "_SIGNED").as_bool() ? "*" : ""); + signed_suffix ? "*" : ""); + } if (label_string[label_string.size()-1] == '|') label_string = label_string.substr(0, label_string.size()-1); -- cgit v1.2.3