mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
write_aiger: Fix non-$_FF_ FFs
This broke while switching sby's formal flows to always use $_FF_'s.
This commit is contained in:
parent
1c36f4cc2c
commit
5142fb3b5c
2 changed files with 8 additions and 1 deletions
|
@ -202,7 +202,7 @@ struct AigerWriter
|
|||
ff_map[Q] = D;
|
||||
|
||||
if (cell->type != ID($_FF_)) {
|
||||
auto sig_clk = sigmap(cell->getPort(ID::CLK).as_bit());
|
||||
auto sig_clk = sigmap(cell->getPort(ID::C).as_bit());
|
||||
ywmap_clocks[sig_clk] |= cell->type == ID($_DFF_N_) ? 2 : 1;
|
||||
}
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue