58 std::pair<const BaseNetlistBlock*, size_t>
63 std::set<const BaseNetlistBlock*> parentChain;
67 parentChain.insert(block);
68 }
while ((block =
parent(block)));
73 if (parentChain.count(block)) {
77 }
while ((block =
parent(block)));
80 return std::make_pair(found, 0);
86 while (block != found) {
93 while (block != found) {
97 distance = std::max(distance, hops);
99 return std::make_pair(found, distance);
130 std::map<SignalType, const std::string>&& renameRules) {
131 size_t renamedCount = 0;
133 SignalType type = port->assignedSignal().type();
134 if (renameRules.count(type)) {
135 port->rename(renameRules.at(type));
139 return portGroup.portCount() - renamedCount;
157 std::string name(basename);
159 int postFixNumber = -1;
160 std::string::iterator it;
161 std::string::reverse_iterator rit;
162 for (rit = name.rbegin(); rit != name.rend(); rit++) {
164 if (!std::isdigit(*rit, loc)) {
169 if (it != name.end()) {
214 assert(
false &&
"Unregocnized direction.");