Skip to content

D-FF

Edge-triggered D flip-flop. On the active clock edge, the output q latches the value at d. Optional synchronous active-high reset.

Category: Digital Logic / Sequential

Keywords: DFF, flip-flop, flipflop, FF, register, memory, latch, storage, sequential, edge-triggered

Ports

NameDirectionValue typeNotes
dinputint
clkinputint
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).

Implemented in C++ class SimCompCtlDff (components/control/CSim_comp_ctl_dff/sim_comp_ctl_dff.h).

Released under the MIT License.