mirror of
https://github.com/YosysHQ/yosys
synced 2026-01-27 04:18:44 +00:00
kernel: add SwitchRule signal_src
This commit is contained in:
parent
85a17b0366
commit
53585db9f7
2 changed files with 3 additions and 1 deletions
|
|
@ -627,6 +627,7 @@ struct AST_INTERNAL::ProcessGenerator
|
|||
RTLIL::SwitchRule *sw = new RTLIL::SwitchRule;
|
||||
set_src_attr(sw, ast);
|
||||
sw->signal = ast->children[0]->genWidthRTLIL(width_hint, sign_hint, &subst_rvalue_map.stdmap());
|
||||
sw->signal_src = ast->children[0]->loc_string();
|
||||
current_case->switches.push_back(sw);
|
||||
|
||||
for (auto &attr : ast->attributes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue