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

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.

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