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

AboutRoadmapCareersInternshipsFAQContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • Study Route: One Week Before the Interview
  • Study Route: Two Weeks
  • Study Route: Four Weeks (Full Course)4
  • OOP & Testbench Puzzles25
  • Concurrency & Timing Puzzles25
  • Randomization & Constraint Puzzles25
  • SVA Assertion Puzzles25
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
  • Scenario & Debug Puzzles25
  • UVM Testbench Puzzles25
    • UVM Phases and Objections
    • Factory and config_db
    • Sequences and Sequencers
    • Analysis, Scoreboards and RAL
      • Waiting Inside write()
      • Two Analysis Imps, One write()
      • Auto-Predict, No Predictor, and a Second Master
      • Desired, Mirrored and update()
      • Backdoor Read of a Clear-on-Read Register
      • Register Reads Return Zero With a Good Waveform
    • UVM Testbench Puzzles: Tricky Q&A
  • Clock, Reset & CDC Puzzles25
  • Bus and Interface Protocol Puzzles25
  • Interview Prep: Puzzle Rounds7
  • DV Puzzle Cheatsheet
Loading lesson

←Analysis, Scoreboards and RAL
  1. Topics
  2. DV Interview Puzzles
  3. UVM Testbench Puzzles
  4. Analysis, Scoreboards and RAL
  5. Backdoor Read of a Clear-on-Read Register
On this page

    VLSI DV Interview PuzzlesAll levels

    Backdoor Read of a Clear-on-Read Register

    UVM 1.2. An interrupt status register holds 3 and clears itself when read over the bus (RC). The test reads it twice by backdoor (peek) and then twice by front-door read. What are the four values?

    Puzzle

    Difficulty: Medium · Puzzle 5 of 6 · Topic: Analysis, Scoreboards and RAL

    UVM 1.2. An interrupt status register holds 3 and clears itself when read over the bus (RC). The test reads it twice by backdoor (peek) and then twice by front-door read. What are the four values?

    Code

    design.sv
    1
    2
    3
    4
    5
    status.peek(st, a, UVM_BACKDOOR);
    status.peek(st, b, UVM_BACKDOOR);
    status.read(st, c, UVM_FRONTDOOR);
    status.read(st, d, UVM_FRONTDOOR);
    `uvm_info("R", $sformatf("%0d %0d %0d %0d", a, b, c, d), UVM_LOW)

    Hint

    What actually causes the clearing in the RTL, and does a backdoor access produce it?

    Step-by-step solution

    Diagram
    1) The register clears because the RTL sees a bus read strobe. A backdoor peek reads the register's signal hierarchically and produces no bus transaction.
    2) So the two peeks both return 3 and leave it at 3.
    3) The first front-door read returns 3 and triggers the clear; the second returns 0.
    4) Values: 3 3 3 0.

    Answer

    Answer: 3 3 3 0.

    How this was checked

    Checked by running the code in Verilator 5; the printed output supports the answer above. Hand-written model of the documented UVM 1.2 behaviour in plain SystemVerilog (Verilator), not the UVM library: a clear-on-read register: only the front-door read has the side effect.

    Why candidates get it wrong

    Backdoor accesses bypass side effects (clear-on-read, FIFO pops, W1C), so a backdoor check of such a register tells you the stored value but proves nothing about the read side effect; and conversely a front-door read of an RC register destroys the state you wanted to inspect.

    Interviewer follow-up

    Which access do you use to verify the clear-on-read behaviour itself? Model answer: front-door reads: read once and check the returned value (3), read again and check 0; backdoor peek can then be used to confirm the stored bits cleared, without disturbing further state.

    Related topics

    • Back to Analysis, Scoreboards and RAL

    • UVM Testbench Puzzles section

    Previous

    233 / 293

    Next: Register Reads Return Zero With a Good Waveform

    Up next

    Up nextRegister Reads Return Zero With a Good Waveform

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • Waiting Inside write()
    • Two Analysis Imps, One write()
    • Auto-Predict, No Predictor, and a Second Master