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

Scan Chain Shift Cycle Trace

MediumLogic CircuitAnalyze

Design for Testability replaces standard flip-flops with scan flip-flops to allow direct observation and control of internal states during manufacturing tests. The schematic shows a 4-bit scan chain consisting of flip-flops FF3, FF2, FF1, and FF0 connected in series. The Scan_Enable signal is asserted high to place the circuit in shift mode. The Scan_In pin feeds directly into FF3, which cascades down to FF0.

Determine the exact sequence of bits that must be applied to Scan_In over four clock cycles to load the target test vector 1011 into [FF3, FF2, FF1, FF0].

Constraints

  • Scan_Enable is held at 1 for the duration of the shift operation.
  • The target state is represented as [FF3, FF2, FF1, FF0] = 1, 0, 1, 1.
  • All flip-flops trigger on the rising edge of the clock.

Topics

sequential-logicdfttestingscan-chain

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

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Modulo ArithmeticMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks