mirror of https://github.com/YosysHQ/yosys.git
Review comment from @cliffordwolf
This commit is contained in:
parent
6872805a3e
commit
4d89c3f468
|
@ -112,7 +112,8 @@ struct ClkbufmapPass : public Pass {
|
||||||
for (auto module : modules_sorted)
|
for (auto module : modules_sorted)
|
||||||
{
|
{
|
||||||
if (module->get_blackbox_attribute()) {
|
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"))
|
if (wire->get_bool_attribute("\\clkbuf_driver"))
|
||||||
for (int i = 0; i < GetSize(wire); i++)
|
for (int i = 0; i < GetSize(wire); i++)
|
||||||
buf_ports.insert(make_pair(module->name, make_pair(wire->name, i)));
|
buf_ports.insert(make_pair(module->name, make_pair(wire->name, i)));
|
||||||
|
|
Loading…
Reference in New Issue