Skip to main content

Netlist Scope

Represents a netlist scope during parsing. Used to track hierarchy and definition context within a SPICE netlist.

class NetlistScope(BaseModel):
instance_scope: list[str]
definition_scope: str

Attributes

NameTypeDescription
instance_scopelist[str]The current instance scope chain. Represents nested instance identifiers as the parser moves through the design hierarchy.
definition_scopestrThe current definition scope, usually the subcircuit/module name currently being defined or processed.