Review comment from @cliffordwolf
authorEddie Hung <eddie@fpgeh.com>
Fri, 23 Aug 2019 17:03:41 +0000 (10:03 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 23 Aug 2019 17:03:41 +0000 (10:03 -0700)
passes/techmap/clkbufmap.cc

index 6fac1b43733425e82dd73712fdb887e88d1819ea..55341ead0a9585181b11f649aa833e70921b617c 100644 (file)
@@ -112,7 +112,8 @@ struct ClkbufmapPass : public Pass {
                for (auto module : modules_sorted)
                {
                        if (module->get_blackbox_attribute()) {
-                               for (auto wire : module->wires()) {
+                               for (auto port : module->ports) {
+                                       auto wire = module->wire(port);
                                        if (wire->get_bool_attribute("\\clkbuf_driver"))
                                                for (int i = 0; i < GetSize(wire); i++)
                                                        buf_ports.insert(make_pair(module->name, make_pair(wire->name, i)));