mirror of https://github.com/YosysHQ/yosys.git
Minor code cleanups in liberty front-end
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
8395c18cb5
commit
6ca493b88c
|
@ -634,11 +634,12 @@ struct LibertyFrontend : public Frontend {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!flag_lib)
|
||||||
|
{
|
||||||
// some liberty files do not put ff/latch at the beginning of a cell
|
// 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
|
// try to find "ff" or "latch" and create FF/latch _before_ processing all other nodes
|
||||||
for (auto node : cell->children)
|
for (auto node : cell->children)
|
||||||
{
|
{
|
||||||
if (!flag_lib) {
|
|
||||||
if (node->id == "ff" && node->args.size() == 2)
|
if (node->id == "ff" && node->args.size() == 2)
|
||||||
create_ff(module, node);
|
create_ff(module, node);
|
||||||
if (node->id == "latch" && node->args.size() == 2)
|
if (node->id == "latch" && node->args.size() == 2)
|
||||||
|
@ -651,18 +652,6 @@ struct LibertyFrontend : public Frontend {
|
||||||
|
|
||||||
for (auto node : cell->children)
|
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)
|
if (node->id == "pin" && node->args.size() == 1)
|
||||||
{
|
{
|
||||||
LibertyAst *dir = node->find("direction");
|
LibertyAst *dir = node->find("direction");
|
||||||
|
|
Loading…
Reference in New Issue