mirror of https://github.com/YosysHQ/yosys.git
Merge remote-tracking branch 'origin/xaig' into xc7mux
This commit is contained in:
commit
627ea0b2a9
|
@ -185,6 +185,8 @@ struct XAigerWriter
|
||||||
if (!bit.wire->port_input)
|
if (!bit.wire->port_input)
|
||||||
unused_bits.erase(bit);
|
unused_bits.erase(bit);
|
||||||
|
|
||||||
|
// TODO: Speed up toposort -- ultimately we care about
|
||||||
|
// box ordering, but not individual AIG cells
|
||||||
dict<SigBit, pool<IdString>> bit_drivers, bit_users;
|
dict<SigBit, pool<IdString>> bit_drivers, bit_users;
|
||||||
TopoSort<IdString, RTLIL::sort_by_id_str> toposort;
|
TopoSort<IdString, RTLIL::sort_by_id_str> toposort;
|
||||||
bool abc_box_seen = false;
|
bool abc_box_seen = false;
|
||||||
|
@ -329,7 +331,7 @@ struct XAigerWriter
|
||||||
//log_warning("Unsupported cell type: %s (%s)\n", log_id(cell->type), log_id(cell));
|
//log_warning("Unsupported cell type: %s (%s)\n", log_id(cell->type), log_id(cell));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (abc_box_seen && !holes_mode) {
|
if (abc_box_seen) {
|
||||||
for (auto &it : bit_users)
|
for (auto &it : bit_users)
|
||||||
if (bit_drivers.count(it.first))
|
if (bit_drivers.count(it.first))
|
||||||
for (auto driver_cell : bit_drivers.at(it.first))
|
for (auto driver_cell : bit_drivers.at(it.first))
|
||||||
|
|
Loading…
Reference in New Issue