Codiode

T Flip-Flop: Construction from DFF via Excitation Equation

EasyLogic CircuitBuild

Counters and frequency dividers rely on state elements that toggle their output on command. Standard cell libraries often lack native toggle flip-flops, requiring designers to synthesize them using standard D-type flip-flops and combinational logic.

Construct a T (Toggle) flip-flop using a single D flip-flop and basic logic gates. The output Q must invert its current state on the rising edge of clk when T is 1, and retain its current state when T is 0.

To determine the combinational logic required at the D input, use the following excitation table mapping the current state and T input to the required next state:

T Q (current) Q_next (required D)
0 0 0
0 1 1
1 0 1
1 1 0

Constraints

  • Use exactly one D flip-flop.
  • Use exactly one combinational logic gate to compute the D input.
  • Do not use any other sequential elements or latches.

Topics

Flip-FlopsState ElementsExcitation Logic

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Part of Latches and Flip-Flops

Problem 42 of 126 in the Latches and Flip-Flops track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.