diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-07-09 16:57:16 +0200 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-07-09 18:48:47 +0100 |
commit | 8af7ced5cd452bd0ef1e6bc17206e9360a893e49 (patch) | |
tree | 6a91b3dcd069deee7faae3039a1d3c62672236b7 /frontends/ast/genrtlil.cc | |
parent | 76f20492a468ffef9902712e36c856f3a6e63dd5 (diff) | |
download | yosys-8af7ced5cd452bd0ef1e6bc17206e9360a893e49.tar.gz yosys-8af7ced5cd452bd0ef1e6bc17206e9360a893e49.tar.bz2 yosys-8af7ced5cd452bd0ef1e6bc17206e9360a893e49.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.cc | 1 |
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) { |