Fixed "fsm -export"

This commit is contained in:
Clifford Wolf 2014-08-08 14:49:06 +02:00
parent cb6ca08a53
commit 7067c43ec0
2 changed files with 5 additions and 6 deletions

View File

@ -127,12 +127,12 @@ struct FsmPass : public Pass {
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;

View File

@ -61,8 +61,7 @@ void write_kiss2(struct RTLIL::Module *module, struct RTLIL::Cell *cell, std::st
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");