aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2019-02-21 11:15:47 -0800
committerEddie Hung <eddieh@ece.ubc.ca>2019-02-21 11:15:47 -0800
commit6b96df41bcc25b3ba71fdb83e5b7b0a46c3936dd (patch)
tree20c6723203237d90c4a99430d7a6a45b68746877 /passes
parent2f96a0ed32799eba95837d0b64953b889e607c22 (diff)
downloadyosys-6b96df41bcc25b3ba71fdb83e5b7b0a46c3936dd.tar.gz
yosys-6b96df41bcc25b3ba71fdb83e5b7b0a46c3936dd.tar.bz2
yosys-6b96df41bcc25b3ba71fdb83e5b7b0a46c3936dd.zip
abc9 to only disconnect output ports of AND and NOT gates
Diffstat (limited to 'passes')
-rw-r--r--passes/techmap/abc9.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc
index 4b045cbea..44e1a422f 100644
--- a/passes/techmap/abc9.cc
+++ b/passes/techmap/abc9.cc
@@ -536,6 +536,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
RTLIL::Module *mapped_mod = mapped_design->modules_["\\netlist"];
if (mapped_mod == NULL)
log_error("ABC output file does not contain a module `netlist'.\n");
+
pool<RTLIL::SigBit> output_bits;
for (auto &it : mapped_mod->wires_) {
RTLIL::Wire *w = it.second;
@@ -852,10 +853,12 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
// module->connect(conn);
// }
- // Go through all cell output connections,
+ // Go through all AND and NOT output connections,
// and for those output ports driving wires
// also driven by mapped_mod, disconnect them
for (auto cell : module->cells()) {
+ if (!cell->type.in("$_AND_", "$_NOT_"))
+ continue;
for (auto &it : cell->connections_) {
auto port_name = it.first;
if (!cell->output(port_name)) continue;
@@ -1131,7 +1134,6 @@ struct Abc9Pass : public Pass {
std::string delay_target, sop_inputs, sop_products, lutin_shared = "-S 1";
bool fast_mode = false, dff_mode = false, keepff = false, cleanup = true;
bool show_tempdir = false, sop_mode = false;
- show_tempdir = true; cleanup = true;
vector<int> lut_costs;
markgroups = false;