mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-05 13:56:04 +00:00
rtlil: replace SigSig actions with new type SyncAction
This commit is contained in:
parent
37875fdedf
commit
1eb696c786
19 changed files with 305 additions and 252 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "kernel/register.h"
|
||||
#include "kernel/log.h"
|
||||
#include "kernel/rtlil.h"
|
||||
#include "kernel/utils.h"
|
||||
#include <charconv>
|
||||
#include <deque>
|
||||
|
|
@ -623,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(RTLIL::SigSig(std::move(s1), std::move(s2)));
|
||||
current_case->actions.push_back({std::move(s1), std::move(s2)});
|
||||
expect_eol();
|
||||
} else
|
||||
return;
|
||||
|
|
@ -714,7 +715,7 @@ struct RTLILFrontendWorker {
|
|||
if (try_parse_keyword("update")) {
|
||||
RTLIL::SigSpec s1 = parse_sigspec();
|
||||
RTLIL::SigSpec s2 = parse_sigspec();
|
||||
rule->actions.push_back(RTLIL::SigSig(std::move(s1), std::move(s2)));
|
||||
rule->actions.push_back({std::move(s1), std::move(s2)});
|
||||
expect_eol();
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue