3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-01 21:05:53 +00:00

Merge pull request #1163 from whitequark/more-case-attrs

More support for case rule attributes
This commit is contained in:
Clifford Wolf 2019-07-09 16:57:16 +02:00 committed by David Shah
parent 76f20492a4
commit 8af7ced5cd
3 changed files with 28 additions and 16 deletions

View file

@ -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) {