xaiger: add check for $__ABC9_DELAY model
authorEddie Hung <eddie@fpgeh.com>
Thu, 26 Mar 2020 16:22:27 +0000 (09:22 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 14 Apr 2020 02:11:23 +0000 (19:11 -0700)
backends/aiger/xaiger.cc

index 3b51d8685d835adeb0258fd85e8d29a79d4d2bb7..3c7c745fe8815a2bdc20c9f1d8d957919c51953e 100644 (file)
@@ -280,6 +280,10 @@ struct XAigerWriter
                                if (abc9_flop)
                                        continue;
                        }
+                       else {
+                               if (cell->type == ID($__ABC9_DELAY))
+                                       log_error("Cell type '%s' not recognised. Check that '+/abc9_model.v' has been read.\n", cell->type.c_str());
+                       }
 
                        bool cell_known = inst_module || cell->known();
                        for (const auto &c : cell->connections()) {