aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorMartin Povišer <povik@cutebit.org>2023-01-12 17:06:31 +0100
committerMartin Povišer <povik@cutebit.org>2023-01-13 19:57:24 +0100
commit58487908352621036aa360f6bed441fc46b1882e (patch)
tree85163bcce4be66ef13bb9add1fd2b700a26fe756 /passes
parent13700e12e5ef62a9d462ddf8ec883ab19ba1d700 (diff)
downloadyosys-58487908352621036aa360f6bed441fc46b1882e.tar.gz
yosys-58487908352621036aa360f6bed441fc46b1882e.tar.bz2
yosys-58487908352621036aa360f6bed441fc46b1882e.zip
passes: show: Label signed_suffix flag
To make it easier to follow what's going on. Signed-off-by: Martin Povišer <povik@cutebit.org>
Diffstat (limited to 'passes')
-rw-r--r--passes/cmds/show.cc9
1 files changed, 6 insertions, 3 deletions
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("<p%d> %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);