summaryrefslogtreecommitdiff
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-28 17:37:50 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-28 17:37:50 +0100
commit0e52f3fa01dfc7280141871585ed180225a596e7 (patch)
treec43c76e550f42539b147670ce81b4ddcded6cfa4 /frontends/ast/genrtlil.cc
parent6dfb66d26298662b4e64d55cf3c9f07738528ebc (diff)
Added "src" attribute to processes
Diffstat (limited to 'frontends/ast/genrtlil.cc')
-rw-r--r--frontends/ast/genrtlil.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index f7e7b852..8aea0596 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -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)