aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2019-07-08 12:29:08 +0000
committerwhitequark <whitequark@whitequark.org>2019-07-08 12:29:08 +0000
commitb1f400aeb8de657d5fa28c153df14246378df2b1 (patch)
tree92f5945f639a656983c6a926d339b6cfed0a2e5e /frontends/ast
parent93bc5affd3fc635dafec3a37bf4c5b94c252036f (diff)
downloadyosys-b1f400aeb8de657d5fa28c153df14246378df2b1.tar.gz
yosys-b1f400aeb8de657d5fa28c153df14246378df2b1.tar.bz2
yosys-b1f400aeb8de657d5fa28c153df14246378df2b1.zip
genrtlil: emit \src attribute on CaseRule.
Diffstat (limited to 'frontends/ast')
-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 079fc11e5..571ddd988 100644
--- 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) {