ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout.component_interface.ComponentFactory Class Reference

Public Member Functions

 __init__ (self, ComponentDatabase db)
ComponentInterface create_component (self, str component_name, str component_type=None, **kwargs)
 register_custom_type (self, str type_name, circuit_class)

Public Attributes

 db = db
dict custom_types = {}

Protected Member Functions

 _create_logic_circuit (self, str name, str circuit_type, **kwargs)

Detailed Description

组件工厂类

Definition at line 191 of file component_interface.py.

Constructor & Destructor Documentation

◆ __init__()

zlayout.component_interface.ComponentFactory.__init__ ( self,
ComponentDatabase db )

Definition at line 194 of file component_interface.py.

Member Function Documentation

◆ _create_logic_circuit()

zlayout.component_interface.ComponentFactory._create_logic_circuit ( self,
str name,
str circuit_type,
** kwargs )
protected
创建逻辑电路

Definition at line 223 of file component_interface.py.

Here is the caller graph for this function:

◆ create_component()

ComponentInterface zlayout.component_interface.ComponentFactory.create_component ( self,
str component_name,
str component_type = None,
** kwargs )
创建组件实例

Definition at line 198 of file component_interface.py.

Here is the call graph for this function:

◆ register_custom_type()

zlayout.component_interface.ComponentFactory.register_custom_type ( self,
str type_name,
circuit_class )
注册自定义逻辑电路类型

Definition at line 243 of file component_interface.py.

Member Data Documentation

◆ custom_types

dict zlayout.component_interface.ComponentFactory.custom_types = {}

Definition at line 196 of file component_interface.py.

◆ db

zlayout.component_interface.ComponentFactory.db = db

Definition at line 195 of file component_interface.py.


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