mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added "src" attribute to processes
This commit is contained in:
parent
6dfb66d262
commit
0e52f3fa01
2 changed files with 5 additions and 1 deletions
|
@ -386,7 +386,10 @@ struct ShowWorker
|
|||
net_conn_map[node].in.insert(stringf("p%d", pidx));
|
||||
}
|
||||
|
||||
fprintf(f, "p%d [shape=box, style=rounded, label=\"PROC\\n%s\"];\n", pidx, RTLIL::id2cstr(proc->name));
|
||||
std::string proc_src = RTLIL::unescape_id(proc->name);
|
||||
if (proc->attributes.count("\\src") > 0)
|
||||
proc_src = proc->attributes.at("\\src").str;
|
||||
fprintf(f, "p%d [shape=box, style=rounded, label=\"PROC\\n%s\"];\n", pidx, proc_src.c_str());
|
||||
}
|
||||
|
||||
for (auto &conn : module->connections)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue