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

SR NOR Latch: Set-Dominant Configuration

MediumLogic CircuitBuild

Asynchronous event capture often encounters simultaneous trigger conditions that must be resolved deterministically. The set-dominant latch guarantees a known state during simultaneous assertion of both set and reset signals, eliminating the invalid state of a standard cross-coupled architecture.

Implement a set-dominant SR latch. When S and R are both asserted, the latch must prioritize the set operation and drive Q to 1 and Q_n to 0. All standard latch behaviors must remain intact.

| S | R | Q (next) | Q_n (next) | |-----|-----|------------|--------------| | 0 | 0 | Latch | Latch | | 0 | 1 | 0 | 1 | | 1 | 0 | 1 | 0 | | 1 | 1 | 1 | 0 |

Constraints

  • Build the core latch using cross-coupled NOR gates.
  • Use standard logic gates to implement the priority masking.
  • Do not use pre-packaged flip-flop or latch macro cells.

Topics

sequentiallatchpriority

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