Check for memories in clk2fflogic
authorClifford Wolf <clifford@clifford.at>
Wed, 13 Dec 2017 18:14:34 +0000 (19:14 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 13 Dec 2017 18:14:34 +0000 (19:14 +0100)
passes/sat/clk2fflogic.cc

index ef6d5dd72c76c90e3c6ec31802993c72fd5deff4..fbd71fe58bed67d4c9e8468073a1621312b854e4 100644 (file)
@@ -72,6 +72,11 @@ struct Clk2fflogicPass : public Pass {
 
                        for (auto cell : vector<Cell*>(module->selected_cells()))
                        {
+                               if (cell->type.in("$mem"))
+                               {
+                                       log_error("Currently there is no support for memories in clk2fflogic. Run memory_map first to convert memories to logic.\n");
+                               }
+
                                if (cell->type.in("$dlatch"))
                                {
                                        bool enpol = cell->parameters["\\EN_POLARITY"].as_bool();