Appearance
Clock
Periodic 0/1 square-wave generator with configurable frequency, duty cycle and phase. Drives flip-flops and other sequential digital logic.
Category: Digital Logic / Sequential
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
out | Control output | Integer |
Parameters
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| f | Number | 1 | — | Square-wave frequency. The output toggles between 0 and 1 with period 1/f. | frequency |
| Duty | Number | 0.5 | — | Fraction of the period the output is high (1). 0.5 = symmetric square wave; 0.25 = 25% duty cycle (high for 1/(4f) seconds, low for 3/(4f) seconds). Clamped to [0, 1]. | duty |
| Phase | Number | 0 | — | Phase offset as a fraction of the period (0..1). Use to stagger multiple clocks driving different flip-flops. | phase |