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

Function recurseInstance

tests/UnitPython/myscriptPerDesign.py:5–12  ·  view source on GitHub ↗
(errors, design, instance)

Source from the content-addressed store, hash-verified

3SLoverrideSeverity("[WARN :PY0099]", "WARNING")
4
5def recurseInstance(errors, design, instance):
6 mod = SLgetInstanceDefinition(instance)
7 print (SLgetInstanceName(instance), SLgetModuleName(mod))
8 SLaddError(errors, "[WARN :PY0099]", SLgetInstanceFileName(instance), SLgetInstanceLine(instance), 0, SLgetInstanceName(instance))
9 nbdefs = SLgetnInstanceChildren(instance)
10 for i in range(nbdefs):
11 subinstance = SLgetInstanceChildren(instance,i)
12 recurseInstance(errors, design, subinstance)
13
14
15def slUserCallbackPerDesign (errors, design):

Callers 1

slUserCallbackPerDesignFunction · 0.70

Calls 8

SLgetInstanceDefinitionFunction · 0.85
SLgetInstanceNameFunction · 0.85
SLgetModuleNameFunction · 0.85
SLaddErrorFunction · 0.85
SLgetInstanceFileNameFunction · 0.85
SLgetInstanceLineFunction · 0.85
SLgetnInstanceChildrenFunction · 0.85
SLgetInstanceChildrenFunction · 0.85

Tested by

no test coverage detected