mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-05 13:56:04 +00:00
rtlil: add source tracking to CaseRule actions
This commit is contained in:
parent
c45a035ebf
commit
304757c881
6 changed files with 15 additions and 14 deletions
|
|
@ -624,7 +624,7 @@ struct RTLILFrontendWorker {
|
|||
"The assign statement is reordered to come before all switch statements.");
|
||||
RTLIL::SigSpec s1 = parse_sigspec();
|
||||
RTLIL::SigSpec s2 = parse_sigspec();
|
||||
current_case->actions.push_back({std::move(s1), std::move(s2)});
|
||||
current_case->actions.push_back({std::move(s1), std::move(s2), Const("")});
|
||||
expect_eol();
|
||||
} else
|
||||
return;
|
||||
|
|
@ -715,7 +715,7 @@ struct RTLILFrontendWorker {
|
|||
if (try_parse_keyword("update")) {
|
||||
RTLIL::SigSpec s1 = parse_sigspec();
|
||||
RTLIL::SigSpec s2 = parse_sigspec();
|
||||
rule->actions.push_back({std::move(s1), std::move(s2)});
|
||||
rule->actions.push_back({std::move(s1), std::move(s2), Const("")});
|
||||
expect_eol();
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue