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

Function slUserCallbackPerDesign

tests/UnitClass/myscriptPerDesign.py:15–35  ·  view source on GitHub ↗
(errors, design)

Source from the content-addressed store, hash-verified

13
14
15def slUserCallbackPerDesign (errors, design):
16
17 nbdefs = SLgetnModuleDefinition(design)
18 print (nbdefs)
19 for i in range(nbdefs):
20 mod = SLgetModuleDefinition(design, i)
21 print (SLgetModuleName(mod), SLgetModuleFile(mod), SLgetModuleLine(mod))
22 set = SLcollectAll(SLgetModuleFileContent(mod), SLgetModuleRootNode(mod), slModule_item, False)
23 print (" ", set)
24
25 nbdefs = SLgetnClassDefinition(design)
26 print (nbdefs)
27 for i in range(nbdefs):
28 mod = SLgetClassDefinition(design, i)
29 print (SLgetClassName(mod), SLgetClassFile(mod), SLgetClassLine(mod), SLgetClassFileContent(mod), SLgetClassRootNode(mod))
30
31 nbdefs = SLgetnTopModuleInstance(design)
32 print (nbdefs)
33 for i in range(nbdefs):
34 instance = SLgetTopModuleInstance(design,i)
35 recurseInstance(errors, design, instance)

Callers

nothing calls this directly

Calls 15

SLgetnModuleDefinitionFunction · 0.85
SLgetModuleDefinitionFunction · 0.85
SLgetModuleNameFunction · 0.85
SLgetModuleFileFunction · 0.85
SLgetModuleLineFunction · 0.85
SLcollectAllFunction · 0.85
SLgetModuleFileContentFunction · 0.85
SLgetModuleRootNodeFunction · 0.85
SLgetnClassDefinitionFunction · 0.85
SLgetClassDefinitionFunction · 0.85
SLgetClassNameFunction · 0.85
SLgetClassFileFunction · 0.85

Tested by

no test coverage detected