From: Eddie Hung Date: Fri, 23 Aug 2019 17:03:41 +0000 (-0700) Subject: Review comment from @cliffordwolf X-Git-Tag: working-ls180~1097^2~10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d89c3f468b6090dceabb304b9f56f3a6a597057;p=yosys.git Review comment from @cliffordwolf --- diff --git a/passes/techmap/clkbufmap.cc b/passes/techmap/clkbufmap.cc index 6fac1b437..55341ead0 100644 --- a/passes/techmap/clkbufmap.cc +++ b/passes/techmap/clkbufmap.cc @@ -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)));