Codiode

Universal SR: Mode Transition Sequence Waveform

MediumLogic CircuitTiming Diagram

A 4-bit universal shift register updates its output Q[3:0] on every LOW-to-HIGH transition of CLK based on the control bits MODE1 and MODE0.

The operating modes are: 11 for Parallel Load (D[3:0] into Q[3:0]), 01 for Shift Right (SER_R shifts into Q3), 10 for Shift Left (SER_L shifts into Q0), and 00 for Hold. Nine input signals are provided: CLK (clock, period 2), MODE1 and MODE0 (control bits), D3 through D0 (parallel data), SER_R (serial right input), and SER_L (serial left input). Q[3:0] is initially 0000.

Trace the four output signals Q3, Q2, Q1, and Q0 across all 8 time steps.

Constraints

  • Shift Right moves Q[n] to Q[n-1] and loads SER_R into Q3.
  • Shift Left moves Q[n] to Q[n+1] and loads SER_L into Q0.

Topics

shift-registersequential-logictiming-diagrammode-control

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.

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.

Part of Shift Registers

Problem 43 of 86 in the Shift Registers track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.