Codiode

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.

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 67 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.