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

Public Member Functions

 __init__ (self, str name, str ff_type="D")
 on_clock_edge (self)
 reset (self)
Public Member Functions inherited from zlayout.logic_circuits.SequentialLogic
 __init__ (self, str name)
 add_input (self, str signal_name)
 add_output (self, str signal_name)
bool check_timing (self)

Public Attributes

str ff_type = ff_type
Public Attributes inherited from zlayout.logic_circuits.SequentialLogic
 name = name
 clock_signal = Signal("clock")
 reset_signal = Signal("reset")
 enable_signal = Signal("enable")
dict inputs = {}
dict outputs = {}
dict internal_state = {}
 clock_edge = ClockEdge.RISING
float setup_time = 0.1
float hold_time = 0.1
float propagation_delay = 0.5

Protected Member Functions

 _handle_d_ff (self)
 _handle_jk_ff (self)
 _handle_sr_ff (self)

Detailed Description

触发器

Definition at line 120 of file logic_circuits.py.

Constructor & Destructor Documentation

◆ __init__()

zlayout.logic_circuits.FlipFlop.__init__ ( self,
str name,
str ff_type = "D" )

Definition at line 123 of file logic_circuits.py.

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

Member Function Documentation

◆ _handle_d_ff()

zlayout.logic_circuits.FlipFlop._handle_d_ff ( self)
protected
处理D触发器

Definition at line 160 of file logic_circuits.py.

Here is the caller graph for this function:

◆ _handle_jk_ff()

zlayout.logic_circuits.FlipFlop._handle_jk_ff ( self)
protected
处理JK触发器

Definition at line 170 of file logic_circuits.py.

Here is the caller graph for this function:

◆ _handle_sr_ff()

zlayout.logic_circuits.FlipFlop._handle_sr_ff ( self)
protected
处理SR触发器

Definition at line 194 of file logic_circuits.py.

Here is the caller graph for this function:

◆ on_clock_edge()

zlayout.logic_circuits.FlipFlop.on_clock_edge ( self)
时钟边沿触发

Reimplemented from zlayout.logic_circuits.SequentialLogic.

Definition at line 144 of file logic_circuits.py.

Here is the call graph for this function:

◆ reset()

zlayout.logic_circuits.FlipFlop.reset ( self)
复位

Reimplemented from zlayout.logic_circuits.SequentialLogic.

Definition at line 217 of file logic_circuits.py.

Member Data Documentation

◆ ff_type

str zlayout.logic_circuits.FlipFlop.ff_type = ff_type

Definition at line 125 of file logic_circuits.py.


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