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

PIPO: Register File Row Concept

HardLogic CircuitBuild

Register files in processors and memory controllers rely on arrays of parallel-in parallel-out registers to store state. Write-enable gating ensures that data on a shared input bus is captured exclusively by the targeted row, preserving the state of all other rows.

Construct four independent 4-bit registers. Each register outputs to its respective 4-bit port: Q0, Q1, Q2, and Q3. All four registers share a single 4-bit input bus D and a common clock CLK. Each register is controlled by its own dedicated write-enable signal: WE0, WE1, WE2, and WE3.

On the rising edge of CLK, a register must capture the value of D if its corresponding WE signal is 1. If its WE signal is 0, the register must hold its current value.

| CLK | WEx | D (4-bit) | Qx (next state) | |-------|-------|-------------|-------------------| | ↑ | 0 | Data | Qx (current) | | ↑ | 1 | Data | D |

Constraints

  • Implement four distinct 4-bit storage elements.
  • Do not gate the clock signal to control writes.
  • Use multiplexers or clock-enabled flip-flops to control data capture.

Topics

piporegisterswrite-enableregister-file

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