Bugfix in iopadmap
authorClifford Wolf <clifford@clifford.at>
Wed, 25 Feb 2015 22:01:42 +0000 (23:01 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 25 Feb 2015 22:01:42 +0000 (23:01 +0100)
passes/techmap/iopadmap.cc

index 75d02c828e3cfa6cb303f097959b722e57474982..3fba0e618387e39411db950eceb4fd66b0dfadb4 100644 (file)
@@ -114,18 +114,11 @@ struct IopadmapPass : public Pass {
                }
                extra_args(args, argidx, design);
 
-               for (auto &it : design->modules_)
+               for (auto module : design->selected_modules())
                {
-                       RTLIL::Module *module = it.second;
-
-                       if (!design->selected(module) || module->get_bool_attribute("\\blackbox"))
-                               continue;
-
-                       for (auto &it2 : module->wires_)
+                       for (auto wire : module->selected_wires())
                        {
-                               RTLIL::Wire *wire = it2.second;
-
-                               if (!wire->port_id || !design->selected(module, wire))
+                               if (!wire->port_id)
                                        continue;
 
                                std::string celltype, portname, portname2;