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

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.

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