aiger2: Fix duplicate symbols on multibit ports

This commit is contained in:
Martin Povišer 2024-09-11 11:03:14 +02:00
parent 5671c10173
commit de8a2fb936
1 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ struct AigerWriter : Index<AigerWriter, unsigned int> {
f->seekp(data_end);
int i = 0;
for (auto pair : outputs) {
if (pair.first.is_wire()) {
if (SigSpec(pair.first).is_wire()) {
char buf[32];
snprintf(buf, sizeof(buf) - 1, "o%d ", i);
f->write(buf, strlen(buf));
@ -562,7 +562,7 @@ struct AigerWriter : Index<AigerWriter, unsigned int> {
}
i = 0;
for (auto bit : inputs) {
if (bit.is_wire()) {
if (SigSpec(bit).is_wire()) {
char buf[32];
snprintf(buf, sizeof(buf) - 1, "i%d ", i);
f->write(buf, strlen(buf));