Codiode

Gated SR Latch: Enable Gate Addition

EasyLogic CircuitBuild

Transparent latches sit at the core of static RAM cells and borrow control signals to selectively update state. Gating the inputs allows the latch to hold its value while the enable signal is low, ignoring noise or data changes on the input lines.

Construct a level-sensitive gated SR latch. When the EN signal is high, the circuit must behave as a standard NOR-based SR latch. When EN is low, the latch must hold its previous state regardless of changes to S and R. The circuit remains level-sensitive: it does not wait for a clock edge to update.

EN S R Q Qn
0 0 0 Q_old Qn_old
0 1 0 Q_old Qn_old
0 0 1 Q_old Qn_old
0 1 1 Q_old Qn_old
1 0 0 Q_old Qn_old
1 1 0 1 0
1 0 1 0 1
1 1 1 0 0

Constraints

  • Implement the core memory element using a cross-coupled NOR gate topology.
  • Gate the input signals using AND gates.
  • Do not use any edge-triggered flip-flop primitives.
  • The circuit must dynamically update Q and Qn multiple times if S and R change while EN remains high.

Topics

LatchesSequential LogicEnable

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