MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / getFullPathName

Method getFullPathName

src/Design/ModuleInstance.cpp:265–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265std::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
282uint32_t ModuleInstance::getDepth() const {
283 uint32_t depth = 0;

Callers 14

mainFunction · 0.80
loopDetectedMethod · 0.80
compileMethod · 0.80
elaborateInstance_Method · 0.80
collectParams_Method · 0.80
writeInstanceMethod · 0.80
compileRangesMethod · 0.80
decompileFunction · 0.80
high_conn_Method · 0.80
elab_interface_Method · 0.80

Calls 2

getInstanceNameMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected