mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
Fix initialisation of flops
This commit is contained in:
parent
6d74b3e004
commit
a76c8a7ffd
3 changed files with 15 additions and 14 deletions
|
@ -520,8 +520,9 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
|
|||
continue;
|
||||
}
|
||||
else if (cell->type.in("$_FF_")) {
|
||||
SigBit D = cell->getPort("\\D");
|
||||
SigBit Q = cell->getPort("\\Q");
|
||||
RTLIL::Wire *D = cell->getPort("\\D").as_wire();
|
||||
RTLIL::Wire *Q = cell->getPort("\\Q").as_wire();
|
||||
Q->attributes.swap(D->attributes);
|
||||
module->connect(Q, D);
|
||||
it = module->cells_.erase(it);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue