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

Method getDefaultNetType

src/SourceCompile/CompilationUnit.cpp:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86VObjectType CompilationUnit::getDefaultNetType(PathId fileId, uint32_t line) {
87 if (m_defaultNetTypes.empty()) {
88 return VObjectType::paNetType_Wire;
89 }
90 for (int32_t i = (int32_t)m_defaultNetTypes.size() - 1; i >= 0; i--) {
91 NetTypeInfo& info = m_defaultNetTypes[i];
92 if (info.m_fileId == fileId) {
93 if (line >= info.m_line) {
94 return info.m_type;
95 }
96 }
97 }
98 return VObjectType::paNetType_Wire;
99}
100
101void CompilationUnit::setCurrentTimeInfo(PathId fileId) {
102 if (m_timeInfo.empty()) {

Callers 3

restoreDesignElementsMethod · 0.80
addDesignElementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected