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

Method getDepth

src/Design/ModuleInstance.cpp:282–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282uint32_t ModuleInstance::getDepth() const {
283 uint32_t depth = 0;
284 const ModuleInstance* tmp = this;
285 while (tmp) {
286 tmp = tmp->getParent();
287 depth++;
288 }
289 return depth;
290}
291
292std::string ModuleInstance::getInstanceName() const {
293 if (m_definition == nullptr) {

Callers 1

Calls 1

getParentMethod · 0.45

Tested by

no test coverage detected