mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-25 08:32:34 +00:00
rtlil: add source tracking to CaseRule actions
(cherry picked from commit c36370f227)
This commit is contained in:
parent
292d44f208
commit
6646b1dbf9
7 changed files with 18 additions and 17 deletions
|
|
@ -926,7 +926,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), Twine::Null});
|
||||
expect_eol();
|
||||
} else
|
||||
return;
|
||||
|
|
@ -1027,7 +1027,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), Twine::Null});
|
||||
expect_eol();
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue