mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added nosync attribute and some async reset related fixes
This commit is contained in:
parent
3737964809
commit
227520f94d
5 changed files with 27 additions and 34 deletions
|
@ -150,6 +150,11 @@ static void proc_arst(RTLIL::Module *mod, RTLIL::Process *proc, SigMap &assign_m
|
|||
for (auto &action : sync->actions) {
|
||||
RTLIL::SigSpec rspec = action.second;
|
||||
RTLIL::SigSpec rval = RTLIL::SigSpec(RTLIL::State::Sm, rspec.width);
|
||||
rspec.expand(), rval.expand();
|
||||
for (int i = 0; i < int(rspec.chunks.size()); i++)
|
||||
if (rspec.chunks[i].wire == NULL)
|
||||
rval.chunks[i] = rspec.chunks[i];
|
||||
rspec.optimize(), rval.optimize();
|
||||
RTLIL::SigSpec last_rval;
|
||||
for (int count = 0; rval != last_rval; count++) {
|
||||
last_rval = rval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue