aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-14 14:20:36 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-14 14:20:36 -0700
commit627ea0b2a99cc064210b07ac38a222bfba42627b (patch)
tree76e30f0c5ff607c818e829e27f2c16b6d12e777e
parent4d7516f45956c6dd3647dc235e3a29c0c7ecc816 (diff)
parent7ff8330d1e159173f9ed3494b85b83cb97208ab5 (diff)
downloadyosys-627ea0b2a99cc064210b07ac38a222bfba42627b.tar.gz
yosys-627ea0b2a99cc064210b07ac38a222bfba42627b.tar.bz2
yosys-627ea0b2a99cc064210b07ac38a222bfba42627b.zip
Merge remote-tracking branch 'origin/xaig' into xc7mux
-rw-r--r--backends/aiger/xaiger.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/aiger/xaiger.cc b/backends/aiger/xaiger.cc
index 1d502a748..df970e341 100644
--- a/backends/aiger/xaiger.cc
+++ b/backends/aiger/xaiger.cc
@@ -185,6 +185,8 @@ struct XAigerWriter
if (!bit.wire->port_input)
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;
TopoSort<IdString, RTLIL::sort_by_id_str> toposort;
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));
}
- if (abc_box_seen && !holes_mode) {
+ if (abc_box_seen) {
for (auto &it : bit_users)
if (bit_drivers.count(it.first))
for (auto driver_cell : bit_drivers.at(it.first))