ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Public Member Functions | |
__init__ (self, logic_circuit) | |
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) | |
set_input (self, str input_name, LogicState value) | |
LogicState | get_output (self, str output_name) |
simulate_step (self) | |
Public Member Functions inherited from zlayout.component_interface.ComponentInterface | |
__init__ (self, str name, ComponentCategory category) |
Public Attributes | |
logic_circuit = logic_circuit | |
Public Attributes inherited from zlayout.component_interface.ComponentInterface | |
name = name | |
category = category | |
component_type = None | |
dict | parameters = {} |
dict | connections = {} |
逻辑电路组件的包装器
Definition at line 115 of file component_interface.py.
zlayout.component_interface.LogicComponent.__init__ | ( | self, | |
logic_circuit ) |
Definition at line 118 of file component_interface.py.
zlayout.component_interface.LogicComponent.connect | ( | self, | |
str | pin, | ||
target, | |||
target_pin = None ) |
连接组件
Reimplemented from zlayout.component_interface.ComponentInterface.
Definition at line 167 of file component_interface.py.
Dict[str, Any] zlayout.component_interface.LogicComponent.get_info | ( | self | ) |
获取组件信息
Reimplemented from zlayout.component_interface.ComponentInterface.
Definition at line 148 of file component_interface.py.
LogicState zlayout.component_interface.LogicComponent.get_output | ( | self, | |
str | output_name ) |
获取逻辑输出
Definition at line 178 of file component_interface.py.
Dict[str, Any] zlayout.component_interface.LogicComponent.get_parameters | ( | self | ) |
获取组件参数
Reimplemented from zlayout.component_interface.ComponentInterface.
Definition at line 132 of file component_interface.py.
zlayout.component_interface.LogicComponent.set_input | ( | self, | |
str | input_name, | ||
LogicState | value ) |
设置逻辑输入
Definition at line 173 of file component_interface.py.
zlayout.component_interface.LogicComponent.set_parameter | ( | self, | |
str | name, | ||
Any | value ) |
设置组件参数
Reimplemented from zlayout.component_interface.ComponentInterface.
Definition at line 140 of file component_interface.py.
zlayout.component_interface.LogicComponent.simulate_step | ( | self | ) |
执行一步仿真
Definition at line 184 of file component_interface.py.
zlayout.component_interface.LogicComponent.logic_circuit = logic_circuit |
Definition at line 121 of file component_interface.py.