3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

abc9: fix abc9_arrival for flops

This commit is contained in:
Eddie Hung 2020-02-12 16:04:19 -08:00
parent 00d41905df
commit f7c0dbecee
2 changed files with 36 additions and 4 deletions

View file

@ -643,7 +643,6 @@ struct XAigerWriter
write_s_buffer(ff_bits.size());
for (const auto &i : ff_bits) {
const SigBit &d = i.first;
const Cell *cell = i.second;
int mergeability = cell->attributes.at(ID(abc9_mergeability)).as_int();
@ -661,7 +660,11 @@ struct XAigerWriter
write_s_buffer(0);
}
write_i_buffer(arrival_times.at(d, 0));
auto it = cell->attributes.find(ID(abc9_arrival));
if (it != cell->attributes.end())
write_i_buffer(it->second.as_int());
else
write_i_buffer(0);
//write_o_buffer(0);
}