Merge pull request #4133 from YosysHQ/show_color_proc

show: allow setting colors via selection on PROC boxes
This commit is contained in:
N. Engelhardt 2024-01-17 17:56:53 +01:00 committed by GitHub
commit e1f4c5c9cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ struct ShowWorker
std::string proc_src = RTLIL::unescape_id(proc->name); std::string proc_src = RTLIL::unescape_id(proc->name);
if (proc->attributes.count(ID::src) > 0) if (proc->attributes.count(ID::src) > 0)
proc_src = proc->attributes.at(ID::src).decode_string(); proc_src = proc->attributes.at(ID::src).decode_string();
fprintf(f, "p%d [shape=box, style=rounded, label=\"PROC %s\\n%s\"];\n", pidx, findLabel(proc->name.str()), proc_src.c_str()); fprintf(f, "p%d [shape=box, style=rounded, label=\"PROC %s\\n%s\", %s];\n", pidx, findLabel(proc->name.str()), proc_src.c_str(), findColor(proc->name).c_str());
} }
for (auto &conn : module->connections()) for (auto &conn : module->connections())