|
ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Public Member Functions | |
| __init__ (self, str name, int width=8, bool count_up=True) | |
| 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 | |
| width = width | |
| count_up = count_up | |
| tuple | max_count = (1 << width) - 1 |
| 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 |
计数器
Definition at line 223 of file logic_circuits.py.
| zlayout.logic_circuits.Counter.__init__ | ( | self, | |
| str | name, | ||
| int | width = 8, | ||
| bool | count_up = True ) |
Definition at line 226 of file logic_circuits.py.
| zlayout.logic_circuits.Counter.on_clock_edge | ( | self | ) |
时钟边沿触发
Reimplemented from zlayout.logic_circuits.SequentialLogic.
Definition at line 240 of file logic_circuits.py.
| zlayout.logic_circuits.Counter.reset | ( | self | ) |
复位
Reimplemented from zlayout.logic_circuits.SequentialLogic.
Definition at line 270 of file logic_circuits.py.
| zlayout.logic_circuits.Counter.count_up = count_up |
Definition at line 229 of file logic_circuits.py.
| tuple zlayout.logic_circuits.Counter.max_count = (1 << width) - 1 |
Definition at line 230 of file logic_circuits.py.
| zlayout.logic_circuits.Counter.width = width |
Definition at line 228 of file logic_circuits.py.