}
}
+ // some liberty files do not put ff/latch at the beginning of a cell
+ // try to find "ff" or "latch" and create FF/latch before processing all other nodes
for (auto node : cell->children)
{
if (!flag_lib) {
goto skip_cell;
}
}
+ }
+
+ for (auto node : cell->children)
+ {
+ /*
+ if (!flag_lib) {
+ if (node->id == "ff" && node->args.size() == 2)
+ create_ff(module, node);
+ if (node->id == "latch" && node->args.size() == 2)
+ if (!create_latch(module, node, flag_ignore_miss_data_latch)) {
+ delete module;
+ goto skip_cell;
+ }
+ }
+ */
if (node->id == "pin" && node->args.size() == 1)
{