mirror of https://github.com/YosysHQ/yosys.git
aiger2: Fix duplicate symbols on multibit ports
This commit is contained in:
parent
5671c10173
commit
de8a2fb936
|
@ -550,7 +550,7 @@ struct AigerWriter : Index<AigerWriter, unsigned int> {
|
||||||
f->seekp(data_end);
|
f->seekp(data_end);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (auto pair : outputs) {
|
for (auto pair : outputs) {
|
||||||
if (pair.first.is_wire()) {
|
if (SigSpec(pair.first).is_wire()) {
|
||||||
char buf[32];
|
char buf[32];
|
||||||
snprintf(buf, sizeof(buf) - 1, "o%d ", i);
|
snprintf(buf, sizeof(buf) - 1, "o%d ", i);
|
||||||
f->write(buf, strlen(buf));
|
f->write(buf, strlen(buf));
|
||||||
|
@ -562,7 +562,7 @@ struct AigerWriter : Index<AigerWriter, unsigned int> {
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
for (auto bit : inputs) {
|
for (auto bit : inputs) {
|
||||||
if (bit.is_wire()) {
|
if (SigSpec(bit).is_wire()) {
|
||||||
char buf[32];
|
char buf[32];
|
||||||
snprintf(buf, sizeof(buf) - 1, "i%d ", i);
|
snprintf(buf, sizeof(buf) - 1, "i%d ", i);
|
||||||
f->write(buf, strlen(buf));
|
f->write(buf, strlen(buf));
|
||||||
|
|
Loading…
Reference in New Issue