3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-27 02:45:52 +00:00

Added "src" attribute to processes

This commit is contained in:
Clifford Wolf 2013-11-28 17:37:50 +01:00
parent 6dfb66d262
commit 0e52f3fa01
2 changed files with 5 additions and 1 deletions

View file

@ -265,6 +265,7 @@ struct AST_INTERNAL::ProcessGenerator
{
// generate process and simple root case
proc = new RTLIL::Process;
proc->attributes["\\src"] = stringf("%s:%d", always->filename.c_str(), always->linenum);
proc->name = stringf("$proc$%s:%d$%d", always->filename.c_str(), always->linenum, RTLIL::autoidx++);
for (auto &attr : always->attributes) {
if (attr.second->type != AST_CONSTANT)