projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6872805
)
Review comment from @cliffordwolf
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 23 Aug 2019 17:03:41 +0000
(10:03 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 23 Aug 2019 17:03:41 +0000
(10:03 -0700)
passes/techmap/clkbufmap.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/clkbufmap.cc
b/passes/techmap/clkbufmap.cc
index 6fac1b43733425e82dd73712fdb887e88d1819ea..55341ead0a9585181b11f649aa833e70921b617c 100644
(file)
--- 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)));