aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/liberty
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-10-17 12:23:36 +0200
committerClifford Wolf <clifford@clifford.at>2018-10-17 12:23:36 +0200
commit6ca493b88ca101f357e9de4dfdad4f3c913512c8 (patch)
tree03d249fb564589e4bbe7549ac9e56058fbb9576b /frontends/liberty
parent8395c18cb54c64712bb36f8d968a26d13330bdd4 (diff)
downloadyosys-6ca493b88ca101f357e9de4dfdad4f3c913512c8.tar.gz
yosys-6ca493b88ca101f357e9de4dfdad4f3c913512c8.tar.bz2
yosys-6ca493b88ca101f357e9de4dfdad4f3c913512c8.zip
Minor code cleanups in liberty front-end
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends/liberty')
-rw-r--r--frontends/liberty/liberty.cc21
1 files changed, 5 insertions, 16 deletions
diff --git a/frontends/liberty/liberty.cc b/frontends/liberty/liberty.cc
index 0018d6dac..66db43baf 100644
--- a/frontends/liberty/liberty.cc
+++ b/frontends/liberty/liberty.cc
@@ -634,11 +634,12 @@ struct LibertyFrontend : public Frontend {
}
}
- // 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)
{
- if (!flag_lib) {
+ // 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 (node->id == "ff" && node->args.size() == 2)
create_ff(module, node);
if (node->id == "latch" && node->args.size() == 2)
@@ -651,18 +652,6 @@ struct LibertyFrontend : public Frontend {
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)
{
LibertyAst *dir = node->find("direction");