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

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 = {}

Detailed Description

逻辑电路组件的包装器

Definition at line 115 of file component_interface.py.

Constructor & Destructor Documentation

◆ __init__()

zlayout.component_interface.LogicComponent.__init__ ( self,
logic_circuit )

Definition at line 118 of file component_interface.py.

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

Member Function Documentation

◆ connect()

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.

◆ get_info()

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.

Here is the call graph for this function:

◆ get_output()

LogicState zlayout.component_interface.LogicComponent.get_output ( self,
str output_name )
获取逻辑输出

Definition at line 178 of file component_interface.py.

◆ get_parameters()

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.

◆ set_input()

zlayout.component_interface.LogicComponent.set_input ( self,
str input_name,
LogicState value )
设置逻辑输入

Definition at line 173 of file component_interface.py.

◆ set_parameter()

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.

◆ simulate_step()

zlayout.component_interface.LogicComponent.simulate_step ( self)
执行一步仿真

Definition at line 184 of file component_interface.py.

Member Data Documentation

◆ logic_circuit

zlayout.component_interface.LogicComponent.logic_circuit = logic_circuit

Definition at line 121 of file component_interface.py.


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