mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-17 00:32:17 +00:00
Fixed "fsm -export"
This commit is contained in:
parent
cb6ca08a53
commit
7067c43ec0
2 changed files with 5 additions and 6 deletions
|
@ -56,13 +56,12 @@ void write_kiss2(struct RTLIL::Module *module, struct RTLIL::Cell *cell, std::st
|
|||
|
||||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue