Fixed dfflibmap for unused output ports
authorClifford Wolf <clifford@clifford.at>
Sat, 21 Dec 2013 19:47:22 +0000 (20:47 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 21 Dec 2013 19:47:22 +0000 (20:47 +0100)
passes/techmap/dfflibmap.cc

index 6fbd52105f00ee8a5d9c4ff4c93b993625ae3647..40caf780150e493e0cf68ded3966a9df0819c11c 100644 (file)
@@ -419,6 +419,7 @@ static void dfflibmap(RTLIL::Design *design, RTLIL::Module *module)
                        if (port.second == '0' || port.second == '1') {
                                sig = RTLIL::SigSpec(port.second == '0' ? 0 : 1, 1);
                        } else
+                       if (port.second != 0)
                                log_abort();
                        new_cell->connections["\\" + port.first] = sig;
                }