diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-28 17:37:50 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-28 17:37:50 +0100 |
commit | 0e52f3fa01dfc7280141871585ed180225a596e7 (patch) | |
tree | c43c76e550f42539b147670ce81b4ddcded6cfa4 /passes/cmds | |
parent | 6dfb66d26298662b4e64d55cf3c9f07738528ebc (diff) | |
download | yosys-0e52f3fa01dfc7280141871585ed180225a596e7.tar.gz yosys-0e52f3fa01dfc7280141871585ed180225a596e7.tar.bz2 yosys-0e52f3fa01dfc7280141871585ed180225a596e7.zip |
Added "src" attribute to processes
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/show.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index f5ebe774a..c4d933332 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -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) |