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>
This commit is contained in:
Martin Povišer 2023-01-12 17:06:31 +01:00
parent 13700e12e5
commit 5848790835
1 changed files with 6 additions and 3 deletions

View File

@ -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);