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

PIPO: 8-Bit Register with Synchronous Clear Priority

MediumLogic CircuitBuild

Datapath elements require predictable initialization during system reset sequences. A parallel-in parallel-out (PIPO) register must guarantee that reset signals take absolute precedence over incoming data to prevent latching invalid states.

The 8-bit register captures the input D on every rising clock edge. The synchronous clear signal CLR acts as a strict override. When CLR is asserted, the register must load all zeros on the clock edge regardless of the value on D.

| CLR | D | Q (next state) | |-------|-----|------------------| | 1 | X | 0 | | 0 | Val | Val |

Constraints

  • Update the output Q only on the rising edge of the clock.
  • Implement CLR as a fully synchronous control signal.
  • Enforce strict priority for CLR over the data input D.

Topics

Shift RegistersPIPOSynchronous ClearPriority Logic

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