Codiode

Flush vs Stall Waveform Analysis

EasyLogic CircuitAnalyze

Modern superscalar processors rely on precise pipeline control to handle hazards without dropping valid instructions.

The provided waveform captures a three-stage pipeline processing sequential instructions. The signals include clk, valid_in, stall, flush, and internal pipeline stage registers stage1_data, stage2_data, and stage3_data. A gap appears in the valid_out signal during cycles 5 through 7.

Analyze the register transitions during the gap. Determine whether the pipeline control logic issued a stall or a flush, and identify the cycle where the control action was triggered.

Constraints

  • Assume a synchronous active-high reset.
  • All pipeline registers update on the rising edge of clk.

Topics

pipeliningcontrol-logicwaveforms

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 Clocking and Synchronization

Problem 84 of 85 in the Clocking and Synchronization track.

Related problems

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

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