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

Gated SR Latch: Active-Low Enable

MediumLogic CircuitBuild

System-level control signals like chip selects, output enables, and bus arbiters frequently use active-low logic to minimize noise sensitivity and default to a safe state. This circuit manages state retention based on an active-low enable signal driven by a controller.

The latch must store the state of the Set (S) and Reset (R) inputs when the output enable (OE_bar) is LOW. When OE_bar is HIGH, the latch must hold its previous value regardless of changes to S and R. Assume S and R will never be HIGH simultaneously.

| OE_bar | S | R | Q (next) | Q_bar (next) | |----------|-----|-----|------------|----------------| | 1 | 0 | 0 | Q | Q_bar | | 1 | 1 | 0 | Q | Q_bar | | 1 | 0 | 1 | Q | Q_bar | | 0 | 0 | 0 | Q | Q_bar | | 0 | 1 | 0 | 1 | 0 | | 0 | 0 | 1 | 0 | 1 |

Constraints

  • Construct the core memory element using cross-coupled NOR gates.
  • Gate the S and R inputs using AND gates.
  • Invert the OE_bar signal before feeding it to the AND gate enable inputs.
  • Do not use pre-packaged latch or flip-flop components.

Topics

LatchesSequential LogicActive-Low

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