Only xaig if GetSize(output_bits) > 0

This commit is contained in:
Eddie Hung 2019-08-20 20:57:13 -07:00
parent 64d62710de
commit 7b646101e9
1 changed files with 154 additions and 152 deletions

View File

@ -575,6 +575,7 @@ struct XAigerWriter
f << "c";
if (GetSize(output_bits) > 0) {
auto write_buffer = [](std::stringstream &buffer, int i32) {
int32_t i32_be = to_big_endian(i32);
buffer.write(reinterpret_cast<const char*>(&i32_be), sizeof(i32_be));
@ -744,6 +745,7 @@ struct XAigerWriter
//buffer_size_be = to_big_endian(buffer_str.size());
//f.write(reinterpret_cast<const char*>(&buffer_size_be), sizeof(buffer_size_be));
//f.write(buffer_str.data(), buffer_str.size());
}
f << stringf("Generated by %s\n", yosys_version_str);
}