Codiode

Bidirectional SR: Direction Change Mid-Pattern Waveform

EasyLogic CircuitTiming Diagram

A 4-bit bidirectional shift register updates its state on the positive edge of CLK according to the LOAD and DIR control signals.

Seven signals are defined for this circuit: CLK (clock, period 2), LOAD (active-high synchronous load), DIR (direction control: 1 for right shift, 0 for left shift), and outputs Q3, Q2, Q1, Q0 (initially all 0). The parallel data input is fixed at 0110 (D3=0, D2=1, D1=1, D0=0), and both serial shift inputs (SER_R and SER_L) are permanently fixed at 0.

Trace the output signals Q3, Q2, Q1, and Q0 across all 12 time steps to demonstrate the exact cycle-by-cycle effects of loading, shifting right, and switching direction to shift left.

Constraints

  • The shift register is strictly positive-edge triggered.
  • A right shift (DIR=1) moves data from Q3 toward Q0.
  • A left shift (DIR=0) moves data from Q0 toward Q3.
  • Because SER_R and SER_L are tied to 0, a 0 is always shifted into the vacated bit position.

Topics

Sequential LogicTiming DiagramShift 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.

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 41 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.