aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9_ops.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-04-14 07:49:55 -0700
committerEddie Hung <eddie@fpgeh.com>2020-05-14 10:33:56 -0700
commite38b1280f9752d22c6d2a5803bec6a6cedf12a10 (patch)
tree41ee1d384559e452b0bd743b0559eef9ff021b93 /passes/techmap/abc9_ops.cc
parent23c53a6bdde645ef475752e24e7751beb20a3121 (diff)
downloadyosys-e38b1280f9752d22c6d2a5803bec6a6cedf12a10.tar.gz
yosys-e38b1280f9752d22c6d2a5803bec6a6cedf12a10.tar.bz2
yosys-e38b1280f9752d22c6d2a5803bec6a6cedf12a10.zip
abc9_ops: -prep_dff_map to warn if no specify cells
Diffstat (limited to 'passes/techmap/abc9_ops.cc')
-rw-r--r--passes/techmap/abc9_ops.cc19
1 files changed, 12 insertions, 7 deletions
diff --git a/passes/techmap/abc9_ops.cc b/passes/techmap/abc9_ops.cc
index cf3bd689e..c640d06f8 100644
--- a/passes/techmap/abc9_ops.cc
+++ b/passes/techmap/abc9_ops.cc
@@ -206,13 +206,18 @@ void prep_dff_map(RTLIL::Design *design)
D = w;
}
- // Rewrite $specify cells that end with $_DFF_[NP]_.Q
- // to $_DFF_[NP]_.D since it will be moved into
- // the submodule
- for (auto cell : specify_cells) {
- auto DST = cell->getPort(ID::DST);
- DST.replace(Q, D);
- cell->setPort(ID::DST, DST);
+ if (GetSize(specify_cells) == 0) {
+ log_warning("Module '%s' marked (* abc9_flop *) contains no specify timing information.\n", log_id(module));
+ }
+ else {
+ // Rewrite $specify cells that end with $_DFF_[NP]_.Q
+ // to $_DFF_[NP]_.D since it will be moved into
+ // the submodule
+ for (auto cell : specify_cells) {
+ auto DST = cell->getPort(ID::DST);
+ DST.replace(Q, D);
+ cell->setPort(ID::DST, DST);
+ }
}
continue_outer_loop: ;
}