projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93bc5af
)
genrtlil: emit \src attribute on CaseRule.
author
whitequark
<whitequark@whitequark.org>
Mon, 8 Jul 2019 12:29:08 +0000
(12:29 +0000)
committer
whitequark
<whitequark@whitequark.org>
Mon, 8 Jul 2019 12:29:08 +0000
(12:29 +0000)
frontends/ast/genrtlil.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/genrtlil.cc
b/frontends/ast/genrtlil.cc
index 079fc11e5dce10168734c2c44e277bc9cbbea6f3..571ddd98886e7c3a4fa9526d37dbd8f0926d6e7e 100644
(file)
--- a/
frontends/ast/genrtlil.cc
+++ b/
frontends/ast/genrtlil.cc
@@
-504,6
+504,7
@@
struct AST_INTERNAL::ProcessGenerator
RTLIL::CaseRule *backup_case = current_case;
current_case = new RTLIL::CaseRule;
+ current_case->attributes["\\src"] = stringf("%s:%d", child->filename.c_str(), child->linenum);
last_generated_case = current_case;
addChunkActions(current_case->actions, this_case_eq_ltemp, this_case_eq_rvalue);
for (auto node : child->children) {