3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-23 14:23:41 +00:00

abc9_ops: -write_box is empty, output a dummy box to prevent ABC error

This commit is contained in:
Eddie Hung 2020-01-15 13:14:48 -08:00
parent 38aa248385
commit 5a63c19747
4 changed files with 4 additions and 4 deletions

View file

@ -569,6 +569,9 @@ void write_box(RTLIL::Module *module, const std::string &src, const std::string
module->attributes.erase(it);
}
if (ofs.tellp() == 0)
ofs << "(dummy) 1 0 0 0";
ofs.close();
}