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

PIPO: Shift-Left as Multiply by 2

MediumLogic CircuitTiming Diagram

A positive-edge-triggered 4-bit Parallel-In Parallel-Out (PIPO) shift register performs arithmetic left shifts to multiply values by 2. When LOAD is 1, the register captures parallel data inputs D3, D2, D1, and D0 on the LOW-to-HIGH transition of CLK. When SHIFT is 1 and LOAD is 0, the register shifts all bits left by one position on the rising clock edge: Q0 receives 0, and the previous Q3 shifts out into the overflow flag OVF. During a load operation, OVF is cleared to 0. Twelve signals are shown: CLK (clock, period 2), LOAD (control), SHIFT (control), four data inputs (D3, D2, D1, D0), four outputs (Q3, Q2, Q1, Q0, all initially 0), and OVF (overflow flag, initially 0). Trace the five output signals Q3, Q2, Q1, Q0, and OVF across all 12 time steps.

Constraints

  • LOAD takes priority over SHIFT if both are asserted simultaneously.
  • A left shift always introduces a 0 into the Least Significant Bit (Q0).

Topics

ArithmeticTimingShift Registers

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