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

Public Member Functions

 __init__ (self, str db_path="components.db")
ComponentInterface create_component (self, str name, str component_type=None, **kwargs)
Optional[ComponentInterfaceget_component (self, str name)
List[str] list_components (self)
Dict[str, Any] create_module (self, str name, List[ComponentInterface] components, List[Dict[str, Any]] connections=None)
Optional[Dict[str, Any]] get_module (self, str name)
 connect_components (self, str source, str source_pin, str target, str target_pin)
 simulate_system (self, int steps=1)
Dict[str, Any] get_system_info (self)
 export_design (self, str filename)
 close (self)

Public Attributes

 db = ComponentDatabase(db_path)
 factory = ComponentFactory(self.db)
dict components = {}
dict modules = {}

Detailed Description

组件管理器 - 提供统一的组件管理接口

Definition at line 247 of file component_interface.py.

Constructor & Destructor Documentation

◆ __init__()

zlayout.component_interface.ComponentManager.__init__ ( self,
str db_path = "components.db" )

Definition at line 250 of file component_interface.py.

Member Function Documentation

◆ close()

zlayout.component_interface.ComponentManager.close ( self)
关闭数据库连接

Definition at line 326 of file component_interface.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connect_components()

zlayout.component_interface.ComponentManager.connect_components ( self,
str source,
str source_pin,
str target,
str target_pin )
连接组件

Definition at line 288 of file component_interface.py.

Here is the call graph for this function:

◆ create_component()

ComponentInterface zlayout.component_interface.ComponentManager.create_component ( self,
str name,
str component_type = None,
** kwargs )
创建组件

Definition at line 256 of file component_interface.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_module()

Dict[str, Any] zlayout.component_interface.ComponentManager.create_module ( self,
str name,
List[ComponentInterface] components,
List[Dict[str, Any]] connections = None )
创建模块

Definition at line 270 of file component_interface.py.

◆ export_design()

zlayout.component_interface.ComponentManager.export_design ( self,
str filename )
导出设计

Definition at line 315 of file component_interface.py.

◆ get_component()

Optional[ComponentInterface] zlayout.component_interface.ComponentManager.get_component ( self,
str name )
获取组件

Definition at line 262 of file component_interface.py.

Here is the caller graph for this function:

◆ get_module()

Optional[Dict[str, Any]] zlayout.component_interface.ComponentManager.get_module ( self,
str name )
获取模块

Definition at line 284 of file component_interface.py.

◆ get_system_info()

Dict[str, Any] zlayout.component_interface.ComponentManager.get_system_info ( self)
获取系统信息

Definition at line 303 of file component_interface.py.

◆ list_components()

List[str] zlayout.component_interface.ComponentManager.list_components ( self)
列出所有组件

Definition at line 266 of file component_interface.py.

◆ simulate_system()

zlayout.component_interface.ComponentManager.simulate_system ( self,
int steps = 1 )
系统仿真

Definition at line 296 of file component_interface.py.

Member Data Documentation

◆ components

dict zlayout.component_interface.ComponentManager.components = {}

Definition at line 253 of file component_interface.py.

◆ db

zlayout.component_interface.ComponentManager.db = ComponentDatabase(db_path)

Definition at line 251 of file component_interface.py.

◆ factory

zlayout.component_interface.ComponentManager.factory = ComponentFactory(self.db)

Definition at line 252 of file component_interface.py.

◆ modules

dict zlayout.component_interface.ComponentManager.modules = {}

Definition at line 254 of file component_interface.py.


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