ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Public Member Functions | |
__init__ (self, str db_path="components.db") | |
ComponentInterface | create_component (self, str name, str component_type=None, **kwargs) |
Optional[ComponentInterface] | get_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 = {} |
组件管理器 - 提供统一的组件管理接口
Definition at line 247 of file component_interface.py.
zlayout.component_interface.ComponentManager.__init__ | ( | self, | |
str | db_path = "components.db" ) |
Definition at line 250 of file component_interface.py.
zlayout.component_interface.ComponentManager.close | ( | self | ) |
关闭数据库连接
Definition at line 326 of file component_interface.py.
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.
ComponentInterface zlayout.component_interface.ComponentManager.create_component | ( | self, | |
str | name, | ||
str | component_type = None, | ||
** | kwargs ) |
创建组件
Definition at line 256 of file component_interface.py.
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.
zlayout.component_interface.ComponentManager.export_design | ( | self, | |
str | filename ) |
导出设计
Definition at line 315 of file component_interface.py.
Optional[ComponentInterface] zlayout.component_interface.ComponentManager.get_component | ( | self, | |
str | name ) |
获取组件
Definition at line 262 of file component_interface.py.
Optional[Dict[str, Any]] zlayout.component_interface.ComponentManager.get_module | ( | self, | |
str | name ) |
获取模块
Definition at line 284 of file component_interface.py.
Dict[str, Any] zlayout.component_interface.ComponentManager.get_system_info | ( | self | ) |
获取系统信息
Definition at line 303 of file component_interface.py.
List[str] zlayout.component_interface.ComponentManager.list_components | ( | self | ) |
列出所有组件
Definition at line 266 of file component_interface.py.
zlayout.component_interface.ComponentManager.simulate_system | ( | self, | |
int | steps = 1 ) |
系统仿真
Definition at line 296 of file component_interface.py.
dict zlayout.component_interface.ComponentManager.components = {} |
Definition at line 253 of file component_interface.py.
zlayout.component_interface.ComponentManager.db = ComponentDatabase(db_path) |
Definition at line 251 of file component_interface.py.
zlayout.component_interface.ComponentManager.factory = ComponentFactory(self.db) |
Definition at line 252 of file component_interface.py.
dict zlayout.component_interface.ComponentManager.modules = {} |
Definition at line 254 of file component_interface.py.