mirror of https://github.com/YosysHQ/yosys.git
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:
parent
13700e12e5
commit
5848790835
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue