Conditioning abc9 on POs not accurate due to cells
authorEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:26:55 +0000 (10:26 -0800)
committerEddie Hung <eddie@fpgeh.com>
Sat, 23 Nov 2019 18:26:55 +0000 (10:26 -0800)
passes/techmap/abc9.cc

index 4b6ec6e11abab2fd0d87535d8c9dcf7ee4a36f40..c2ac4ef7fba12eba47cdc768dadeea3e6706a402 100644 (file)
@@ -322,19 +322,10 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *module, std::string scrip
        fprintf(f, "%s\n", abc9_script.c_str());
        fclose(f);
 
-       bool count_output = false;
-       for (auto port_name : module->ports) {
-               RTLIL::Wire *port_wire = module->wire(port_name);
-               log_assert(port_wire);
-               if (port_wire->port_output) {
-                       count_output = true;
-                       break;
-               }
-       }
-
+       //bool count_output = false;
        log_push();
 
-       if (count_output)
+       //if (count_output)
        {
                handle_loops(design, module);
 
@@ -736,10 +727,10 @@ clone_lut:
 
                design->remove(mapped_mod);
        }
-       else
-       {
-               log("Don't call ABC as there is nothing to map.\n");
-       }
+       //else
+       //{
+       //      log("Don't call ABC as there is nothing to map.\n");
+       //}
 
        if (cleanup)
        {