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

Edge-Triggered DFF from 3 NAND Latches

HardLogic CircuitBuild

Standard cell libraries rarely use master-slave latches for their flip-flops. The industry standard commercial D-flip-flop relies on a three-latch arrangement to eliminate transparency and improve setup and hold times.

Implement a positive edge-triggered D flip-flop using the Sutherland-style 3-latch configuration. The circuit must capture D exactly on the rising edge of CLK and hold the state steady at all other times.

| CLK | D | Q | Qn | |-------|-----|-----|------| | 0 | X | No change | No change | | Rise | 0 | 0 | 1 | | Rise | 1 | 1 | 0 | | 1 | X | No change | No change |

Constraints

  • Use exactly six NAND gates.
  • Do not use any structural DFF or latch primitives.
  • The output must not change when D transitions while CLK is steady high or steady low.

Topics

Latches and Flip-FlopsDFFStandard CellNAND

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