verilog black box ports unknown/loads
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
41706e0db6
commit
85f437bc59
|
|
@ -521,7 +521,9 @@ Network::isLoad(const Pin *pin) const
|
|||
const Instance *inst = instance(pin);
|
||||
return (isLeaf(inst) && dir->isAnyInput())
|
||||
// isTopLevelPort(pin)
|
||||
|| (isTopInstance(inst) && dir->isAnyOutput());
|
||||
|| (isTopInstance(inst) && dir->isAnyOutput())
|
||||
// Black box unknown ports are treated as loads.
|
||||
|| dir->isUnknown();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -2058,7 +2058,7 @@ VerilogReader::makeBlackBoxNamedPorts(Cell *cell,
|
|||
Port *port = (size == 1)
|
||||
? network_->makePort(cell, port_name)
|
||||
: network_->makeBusPort(cell, port_name, 0, size - 1);
|
||||
network_->setDirection(port, PortDirection::bidirect());
|
||||
network_->setDirection(port, PortDirection::unknown());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2077,7 +2077,7 @@ VerilogReader::makeBlackBoxOrderedPorts(Cell *cell,
|
|||
? network_->makePort(cell, port_name)
|
||||
: network_->makeBusPort(cell, port_name, size - 1, 0);
|
||||
stringDelete(port_name);
|
||||
network_->setDirection(port, PortDirection::bidirect());
|
||||
network_->setDirection(port, PortDirection::unknown());
|
||||
port_index++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue