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

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.

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