Skip to content

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

NameDirectionValue typeNotes
outoutputint

Parameters

NameLabelTypeDefaultUnitsDescription
frequencyfdouble1Square-wave frequency. The output toggles between 0 and 1 with period 1/f.
dutyDutydouble0.5Fraction 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].
phasePhasedouble0Phase offset as a fraction of the period (0..1). Use to stagger multiple clocks driving different flip-flops.