aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-04-06 14:48:27 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-04-06 14:48:27 +0000
commitf4346a0400085b5d1455de2c7eaf2c5963473986 (patch)
tree86fd6870a44c4d586616aa0fe562be3985365324 /passes/cmds
parent57f48f94c2d8ea256d860aae1f60a08d7aefe8c6 (diff)
downloadyosys-f4346a0400085b5d1455de2c7eaf2c5963473986.tar.gz
yosys-f4346a0400085b5d1455de2c7eaf2c5963473986.tar.bz2
yosys-f4346a0400085b5d1455de2c7eaf2c5963473986.zip
Use more descriptive variable name.
Co-Authored-By: whitequark <whitequark@whitequark.org>
Diffstat (limited to 'passes/cmds')
-rw-r--r--passes/cmds/show.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc
index d355c52be..155ed0fcd 100644
--- a/passes/cmds/show.cc
+++ b/passes/cmds/show.cc
@@ -364,20 +364,20 @@ struct ShowWorker
std::set<std::string> all_sources, all_sinks;
std::map<std::string, std::string> wires_on_demand;
- for (auto w : module->selected_wires()) {
+ for (auto wire : module->selected_wires()) {
const char *shape = "diamond";
- if (w->port_input || w->port_output)
+ if (wire->port_input || wire->port_output)
shape = "octagon";
- if (w->name[0] == '\\') {
+ if (wire->name[0] == '\\') {
fprintf(f, "n%d [ shape=%s, label=\"%s\", %s, fontcolor=\"black\" ];\n",
- id2num(w->name), shape, findLabel(w->name.str()),
- nextColor(RTLIL::SigSpec(w), "color=\"black\"").c_str());
- if (w->port_input)
- all_sources.insert(stringf("n%d", id2num(w->name)));
- else if (w->port_output)
- all_sinks.insert(stringf("n%d", id2num(w->name)));
+ id2num(wire->name), shape, findLabel(wire->name.str()),
+ nextColor(RTLIL::SigSpec(wire), "color=\"black\"").c_str());
+ if (wire->port_input)
+ all_sources.insert(stringf("n%d", id2num(wire->name)));
+ else if (wire->port_output)
+ all_sinks.insert(stringf("n%d", id2num(wire->name)));
} else {
- wires_on_demand[stringf("n%d", id2num(w->name))] = w->name.str();
+ wires_on_demand[stringf("n%d", id2num(wire->name))] = wire->name.str();
}
}