xaiger: promote abc9_keep wires
authorEddie Hung <eddie@fpgeh.com>
Mon, 25 May 2020 23:40:30 +0000 (16:40 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 25 May 2020 23:40:30 +0000 (16:40 -0700)
backends/aiger/xaiger.cc

index 6b910eecd7e3767e73cf7fce15e027072bc82d84..4a8f54c4dd09ff5f276d36c6a6e98c745d06208b 100644 (file)
@@ -156,7 +156,7 @@ struct XAigerWriter
 
                // promote keep wires
                for (auto wire : module->wires())
-                       if (wire->get_bool_attribute(ID::keep))
+                       if (wire->get_bool_attribute(ID::keep) || wire->get_bool_attribute(ID::abc9_keep))
                                sigmap.add(wire);
 
                for (auto wire : module->wires()) {