aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-07-09 16:57:16 +0200
committerGitHub <noreply@github.com>2019-07-09 16:57:16 +0200
commit38e942507ea091e5fbbbcf02563919bf1e5d8f54 (patch)
treecfc3b6189c32cf9103f60bf0c32e1619ad526d0e /frontends/ast/genrtlil.cc
parentef07a313b4122b9ceb233ed7dd4733db97272577 (diff)
parent628437b01cd37b95c020b2f4c4e2f2d8f0e9bf8b (diff)
downloadyosys-38e942507ea091e5fbbbcf02563919bf1e5d8f54.tar.gz
yosys-38e942507ea091e5fbbbcf02563919bf1e5d8f54.tar.bz2
yosys-38e942507ea091e5fbbbcf02563919bf1e5d8f54.zip
Merge pull request #1163 from whitequark/more-case-attrs
More support for case rule attributes
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 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) {