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

Method isNet

src/Design/Struct.cpp:44–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool Struct::isNet() const {
45 if (!m_typespec) {
46 return false;
47 }
48 if (m_typespec->UhdmType() != UHDM::uhdmstruct_typespec) return false;
49 const UHDM::struct_typespec* tps = (const UHDM::struct_typespec*)m_typespec;
50 if (tps->Members()) {
51 for (UHDM::typespec_member* member : *tps->Members()) {
52 if (const UHDM::ref_typespec* rt = member->Typespec()) {
53 if (const UHDM::typespec* ag = rt->Actual_typespec()) {
54 if (ag->UhdmType() != UHDM::uhdmlogic_typespec) {
55 return false;
56 }
57 } else {
58 return false;
59 }
60 } else {
61 return false;
62 }
63 }
64 }
65 return true;
66}
67
68} // namespace SURELOG

Callers 1

bindStructInPackageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected