map_cmd << " " << arg << " " << args[++argidx];
continue;
}
- if (arg == "-fast" || /*arg == "-dff" ||*/ arg == "-keepff"
+ if (arg == "-fast"
/*|| arg == "-nocleanup"*/ || arg == "-showtmp" || arg == "-markgroups"
|| arg == "-nomfs") {
map_cmd << " " << arg;
active_design->selection_stack.emplace_back(false);
for (auto mod : selected_modules) {
+ if (module->attributes.count(ID(abc9_box_id)))
+ continue;
+
+ if (module->processes.size() > 0) {
+ log("Skipping module %s as it contains processes.\n", log_id(module));
+ continue;
+ }
+
log_push();
active_design->selection().select(mod);
log_push();
- // FIXME:
- /*int count_outputs = design->scratchpad_get_int("write_xaiger.num_outputs");
+ int count_outputs = design->scratchpad_get_int("write_xaiger.num_outputs");
log("Extracted %d AND gates and %d wires to a netlist network with %d inputs and %d outputs.\n",
design->scratchpad_get_int("write_xaiger.num_ands"),
design->scratchpad_get_int("write_xaiger.num_wires"),
design->scratchpad_get_int("write_xaiger.num_inputs"),
count_outputs);
- if (count_outputs > 0)*/ {
+ if (count_outputs > 0) {
std::string buffer;
std::ifstream ifs;
#if 0
CellTypes ct(design);
for (auto module : design->selected_modules())
{
- if (module->attributes.count(ID(abc9_box_id)))
- continue;
-
- if (module->processes.size() > 0) {
- log("Skipping module %s as it contains processes.\n", log_id(module));
- continue;
- }
+ if (module->processes.size() > 0)
+ log_error("Module '%s' has processes!\n", log_id(module));
assign_map.set(module);