Appearance
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
Keywords: JKFF, flip-flop, flipflop, FF, register, sequential, toggle, edge-triggered
Ports
| Name | Direction | Value type | Notes |
|---|---|---|---|
j | input | int | |
clk | input | int | |
k | input | int | |
rst | input | int | Visible when has_rst == 1 |
q | output | int |
Parameters
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
q0 | q₀ | int | 0 | — | Initial value of the stored state q at sim_time = 0. |
has_rst | Reset port | enum (disabled / enabled) | 0 | — | When enabled, exposes a synchronous active-high reset port. On a clock rising edge, if rst != 0 then q := 0 (per-bit clear). |
Implemented in C++ class SimCompCtlJkff (components/control/CSim_comp_ctl_jkff/sim_comp_ctl_jkff.h).