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

Public Member Functions

 __init__ (self, str name, str gate_type, int input_count=2)
str __str__ (self)
 __init__ (self, str name, str gate_type, int input_count=2)
str __str__ (self)
Public Member Functions inherited from hierarchical_demo_simple.Component
 __init__ (self, str name, ComponentCategory category)
 add_child (self, 'Component' child)
Rectangle calculate_hierarchical_bbox (self)
int get_total_gate_count (self)
List[ 'Component'] flatten_hierarchy (self)
 __init__ (self, str name, ComponentCategory category)
 add_child (self, 'Component' child)
Rectangle calculate_hierarchical_bbox (self)
int get_total_gate_count (self)
List[ 'Component'] flatten_hierarchy (self)

Public Attributes

 gate_type = gate_type
 input_count = input_count
Public Attributes inherited from hierarchical_demo_simple.Component
 name = name
 category = category
 position = Point(0, 0)
 bounding_box = Rectangle(0, 0, 1, 1)
list children = []
Optional[] parent = None
dict properties = {}

Detailed Description

数字门电路

Definition at line 110 of file hierarchical_demo_simple.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

hierarchical_demo_simple.DigitalGate.__init__ ( self,
str name,
str gate_type,
int input_count = 2 )

Definition at line 113 of file hierarchical_demo_simple.py.

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

◆ __init__() [2/2]

hierarchical_demo_simple.DigitalGate.__init__ ( self,
str name,
str gate_type,
int input_count = 2 )

Definition at line 113 of file hierarchical_demo_simple.py.

Here is the call graph for this function:

Member Function Documentation

◆ __str__() [1/2]

str hierarchical_demo_simple.DigitalGate.__str__ ( self)

Definition at line 120 of file hierarchical_demo_simple.py.

◆ __str__() [2/2]

str hierarchical_demo_simple.DigitalGate.__str__ ( self)

Definition at line 120 of file hierarchical_demo_simple.py.

Member Data Documentation

◆ gate_type

hierarchical_demo_simple.DigitalGate.gate_type = gate_type

Definition at line 115 of file hierarchical_demo_simple.py.

◆ input_count

hierarchical_demo_simple.DigitalGate.input_count = input_count

Definition at line 116 of file hierarchical_demo_simple.py.


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