mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-18 18:36:43 +00:00
Allow POs to be PIs in XAIG
This commit is contained in:
parent
2c6358ea25
commit
b780c0a7de
1 changed files with 4 additions and 7 deletions
|
@ -161,12 +161,8 @@ struct XAigerWriter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto bit : input_bits) {
|
for (auto bit : input_bits)
|
||||||
if (!bit.wire->port_output)
|
|
||||||
undriven_bits.erase(bit);
|
undriven_bits.erase(bit);
|
||||||
// Erase POs that are also PIs
|
|
||||||
output_bits.erase(bit);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto bit : output_bits)
|
for (auto bit : output_bits)
|
||||||
if (!bit.wire->port_input)
|
if (!bit.wire->port_input)
|
||||||
|
@ -275,7 +271,8 @@ struct XAigerWriter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!abc_box_seen) abc_box_seen = inst_module->attributes.count("\\abc_box_id");
|
if (!abc_box_seen)
|
||||||
|
abc_box_seen = inst_module->attributes.count("\\abc_box_id");
|
||||||
|
|
||||||
ff_bits.emplace_back(d, q);
|
ff_bits.emplace_back(d, q);
|
||||||
undriven_bits.erase(q);
|
undriven_bits.erase(q);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue