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

4-Bit SISO with Shift Enable

MediumLogic CircuitBuild

Buffered pipelines and serial communication interfaces must pause transmission when the receiver is not ready. A shift enable signal allows the shift register to freeze its state without interrupting the continuous global clock.

The circuit is a 4-bit Serial-In Serial-Out (SISO) shift register with an active-high enable signal EN. When EN is 1, data at sin shifts into the first stage on the rising edge of clk, and each subsequent stage receives the value of the previous stage. When EN is 0, all stages retain their current values. The output sout reflects the final stage.

| EN | clk | Q0 | Q1 | Q2 | sout | |------|-------|------|------|------|--------| | 0 | Rising | Q0 | Q1 | Q2 | sout | | 1 | Rising | sin| Q0 | Q1 | Q2 |

Constraints

  • Do not connect the EN signal to the clock pin of any flip-flop.
  • Connect the global clock directly to the clock pin of every flip-flop.
  • Use a 2:1 multiplexer at the D input of each flip-flop to select between the hold state and the shift state.
  • Implement exactly 4 stages of shifting using D flip-flops.

Topics

MultiplexersFlip-FlopsShift 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