Pass::call(design, "fsm_recode" + fm_set_fsm_file_opt + encoding_opt);
Pass::call(design, "fsm_info");
- if (!flag_nomap)
- Pass::call(design, "fsm_map");
-
if (flag_export)
Pass::call(design, "fsm_export");
+ if (!flag_nomap)
+ Pass::call(design, "fsm_map");
+
log_pop();
}
} FsmPass;
attr_it = cell->attributes.find("\\fsm_export");
if (!filename.empty()) {
- kiss_name.assign(filename);
+ kiss_name.assign(filename);
} else if (attr_it != cell->attributes.end() && attr_it->second.decode_string() != "") {
kiss_name.assign(attr_it->second.decode_string());
}
else {
- kiss_name.assign(module->name.str());
- kiss_name.append('-' + cell->name.str() + ".kiss2");
+ kiss_name.assign(log_id(module) + std::string("-") + log_id(cell) + ".kiss2");
}
log("\n");