| 263 | } |
| 264 | |
| 265 | std::string ModuleInstance::getFullPathName() const { |
| 266 | std::string path; |
| 267 | const ModuleInstance* tmp = this; |
| 268 | std::vector<std::string> nibbles; |
| 269 | while (tmp) { |
| 270 | nibbles.push_back(tmp->getInstanceName()); |
| 271 | tmp = tmp->getParent(); |
| 272 | } |
| 273 | for (int32_t i = nibbles.size() - 1; i >= 0; i--) { |
| 274 | path += nibbles[i]; |
| 275 | if (i > 0) { |
| 276 | path += "."; |
| 277 | } |
| 278 | } |
| 279 | return path; |
| 280 | } |
| 281 | |
| 282 | uint32_t ModuleInstance::getDepth() const { |
| 283 | uint32_t depth = 0; |
no test coverage detected