3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

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

View file

@ -431,10 +431,13 @@ struct ShowWorker
std::string label_string = "{{"; 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()), label_string += stringf("<p%d> %s%s|", id2num(p), escape(p.str()),
genSignedLabels && cell->hasParam(p.str() + "_SIGNED") && signed_suffix ? "*" : "");
cell->getParam(p.str() + "_SIGNED").as_bool() ? "*" : ""); }
if (label_string[label_string.size()-1] == '|') if (label_string[label_string.size()-1] == '|')
label_string = label_string.substr(0, label_string.size()-1); label_string = label_string.substr(0, label_string.size()-1);