Skip to content

JK-FF

Edge-triggered JK flip-flop. J=1 sets, K=1 resets, J=K=1 toggles, J=K=0 holds. Optional synchronous active-high reset.

Category: Digital Logic / Sequential

Ports

NameDirectionValue typeNotes
jinputint
clkinputint
kinputint
rstinputintVisible when has_rst == 1
qoutputint

Parameters

NameLabelTypeDefaultUnitsDescription
q0q₀int0Initial value of the stored state q at sim_time = 0.
has_rstReset portenum (disabled / enabled)0When enabled, exposes a synchronous active-high reset port. On a clock rising edge, if rst != 0 then q := 0 (per-bit clear).