CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Sequential Logic

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.

Sign in to solveSee what Pro unlocks

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.

Related problems

  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Handshake Deadlock Due to Early ResetHard
  • Reconvergence of Individually Synchronized BitsHard
  • Debug: Asynchronous Clear GlitchHard
  • Clock Gate Enable Crossing DomainsHard

Browse all problems · Learning tracks