aiger2: Fix relative ordering of PI/POs and box I/Os

This commit is contained in:
Martin Povišer
2024-10-07 12:03:48 +02:00
parent 8d12492610
commit f7c7371ea9
+2 -2
View File
@@ -934,7 +934,7 @@ struct XAigerWriter : AigerWriter {
});
for (auto [cursor, box, def] : opaque_boxes)
append_box_ports(box, cursor, true);
append_box_ports(box, cursor, false);
holes_module = design->addModule(NEW_ID);
std::vector<RTLIL::Wire *> holes_pis;
@@ -1024,7 +1024,7 @@ struct XAigerWriter : AigerWriter {
}
for (auto [cursor, box, def] : opaque_boxes)
append_box_ports(box, cursor, false);
append_box_ports(box, cursor, true);
write_be32(h_buffer, 1);
write_be32(h_buffer, pis.size());