Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • OOP & Testbench Puzzles25
  • Concurrency & Timing Puzzles25
  • Randomization & Constraint Puzzles25
  • SVA Assertion Puzzles25
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
  • Scenario & Debug Puzzles25
    • Testbench Debug Puzzles: Why Did the Test Hang?
    • Deadlock Scenario Puzzles: Objection and Phase Stalls
    • Scoreboard Puzzles: Mismatch or Ordering Bug?
      • Out-of-Order Responses Miscompared as Corruption
      • Missing First Transaction After Reset
      • Duplicate Transactions from Handle Reuse
      • Mismatch Cascade from Incorrect Pop Policy
      • End-of-Test Draining Missing
      • Duplicate Expected Entries from Predictor Retry Path
    • Real Interview Rounds: End-to-End Debug Walkthrough
    • Scenario & Debug Puzzles: Tricky Q&A
  • Interview Prep: Puzzle Rounds5
  • DV Puzzle Cheatsheet
Loading lesson

‹Scoreboard Puzzles: Mismatch or Ordering Bug?
  1. Topics
  2. DV Interview Puzzles
  3. Scenario & Debug Puzzles
  4. Scoreboard Puzzles: Mismatch or Ordering Bug?
  5. Duplicate Expected Entries from Predictor Retry Path

VLSI DV Interview Puzzles · All levels

Duplicate Expected Entries from Predictor Retry Path

Scoreboard reports 'unexpected actual' and duplicate expected IDs under retry traffic. Find predictor-side overcounting.

On this page

    Puzzle

    Difficulty: Medium · Puzzle 6 of 6 · Topic: Scoreboard Puzzles: Mismatch or Ordering Bug?

    Scoreboard reports 'unexpected actual' and duplicate expected IDs under retry traffic. Find predictor-side overcounting.

    Code

    design.sv
    1
    2
    3
    4
    5
    6
    function void predictor::write_req(req_t r);
      exp_ap.write(model_rsp(r));
      if (r.retry) begin
        exp_ap.write(model_rsp(r)); // bug: duplicate expectation
      end
    endfunction

    Hint

    Retry metadata does not always mean a second architectural completion.

    Step-by-step solution

    Diagram
    1) Compare expected-id histogram against actual-id histogram.
    2) Observe duplicate expected entries only for retry-marked requests.
    3) Review protocol: retry indicates deferred completion, not duplicate completion.
    4) Emit one expected response per architectural completion key.
    5) Add protocol-aware predictor test covering retries and replays.

    Answer

    Answer: Bug: predictor enqueues two expected responses for one retried operation. Fix: model retry as delay/reissue semantics and generate only one expected completion per transaction id.

    Why candidates get it wrong

    It looks like DUT dropped data, but predictor created phantom expectations.

    Interviewer follow-up

    How would you key expected entries when request id can be reused after retry windows?

    Related topics

    • Back to Scoreboard Puzzles: Mismatch or Ordering Bug?

    • Scenario & Debug Puzzles section

    Previous

    197 / 210

    Next: Real Interview Rounds: End-to-End Debug Walkthrough

    Up next

    Up nextReal Interview Rounds: End-to-End Debug Walkthrough

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Out-of-Order Responses Miscompared as Corruption
    • Missing First Transaction After Reset
    • Duplicate Transactions from Handle Reuse