ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout.component_interface.ComponentInterface Class Reference
Inheritance diagram for zlayout.component_interface.ComponentInterface:
Collaboration diagram for zlayout.component_interface.ComponentInterface:

Public Member Functions

 __init__ (self, str name, ComponentCategory category)
Dict[str, Any] get_parameters (self)
 set_parameter (self, str name, Any value)
Dict[str, Any] get_info (self)
 connect (self, str pin, target, target_pin=None)

Public Attributes

 name = name
 category = category
 component_type = None
dict parameters = {}
dict connections = {}

Detailed Description

组件接口基类

Definition at line 50 of file component_interface.py.

Constructor & Destructor Documentation

◆ __init__()

zlayout.component_interface.ComponentInterface.__init__ ( self,
str name,
ComponentCategory category )

Definition at line 53 of file component_interface.py.

Member Function Documentation

◆ connect()

zlayout.component_interface.ComponentInterface.connect ( self,
str pin,
target,
target_pin = None )

◆ get_info()

Dict[str, Any] zlayout.component_interface.ComponentInterface.get_info ( self)
获取组件信息

Reimplemented in zlayout.component_interface.DatabaseComponent, and zlayout.component_interface.LogicComponent.

Definition at line 71 of file component_interface.py.

◆ get_parameters()

Dict[str, Any] zlayout.component_interface.ComponentInterface.get_parameters ( self)
获取组件参数

Reimplemented in zlayout.component_interface.DatabaseComponent, and zlayout.component_interface.LogicComponent.

Definition at line 61 of file component_interface.py.

Here is the caller graph for this function:

◆ set_parameter()

zlayout.component_interface.ComponentInterface.set_parameter ( self,
str name,
Any value )
设置组件参数

Reimplemented in zlayout.component_interface.DatabaseComponent, and zlayout.component_interface.LogicComponent.

Definition at line 66 of file component_interface.py.

Member Data Documentation

◆ category

zlayout.component_interface.ComponentInterface.category = category

Definition at line 55 of file component_interface.py.

◆ component_type

zlayout.component_interface.ComponentInterface.component_type = None

Definition at line 56 of file component_interface.py.

◆ connections

dict zlayout.component_interface.ComponentInterface.connections = {}

Definition at line 58 of file component_interface.py.

◆ name

zlayout.component_interface.ComponentInterface.name = name

Definition at line 54 of file component_interface.py.

◆ parameters

dict zlayout.component_interface.ComponentInterface.parameters = {}

Definition at line 57 of file component_interface.py.


The documentation for this class was generated from the following file: