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
    • Sequence Puzzles
    • Implication Puzzles
    • Temporal Corner Puzzles
      • $past Startup History Hole
      • $rose Sampled on Clock Edge
      • $fell Is an Event, Not a Level
      • $stable Repeated Hold Check
      • $past After Reset Release
      • Vector $rose Sampling Trap
    • Assertion Debug Puzzles
    • SVA Assertion Puzzles: Tricky Q&A
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
  • Scenario & Debug Puzzles25
  • UVM Testbench Puzzles25
  • Clock, Reset & CDC Puzzles25
  • Bus and Interface Protocol Puzzles25
  • Interview Prep: Puzzle Rounds7
  • DV Puzzle Cheatsheet
Loading lesson

←Temporal Corner Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. SVA Assertion Puzzles
  4. Temporal Corner Puzzles
  5. Vector $rose Sampling Trap
On this page

    VLSI DV Interview PuzzlesAll levels

    Vector $rose Sampling Trap

    Property intent: on $rose(state[3:0]), enter must assert. Timeline (all other samples are 0): state is 4'b0010 at C100 and 4'b0100 at C101, enter=0 at C101. Determine the verdict.

    Puzzle

    Difficulty: Hard · Puzzle 6 of 6 · Topic: Temporal Corner Puzzles

    Property intent: on $rose(state[3:0]), enter must assert. Timeline (all other samples are 0): state is 4'b0010 at C100 and 4'b0100 at C101, enter=0 at C101. Determine the verdict.

    Code

    design.sv
    property p_vector_rose;
      @(posedge clk) $rose(state[3:0]) |-> enter;
    endproperty

    Hint

    In SVA, $rose on a vector expression is based on the least significant bit transition.

    Step-by-step solution

    Diagram
    1) LSB of state is 0 at C100 and 0 at C101.
    2) $rose(state[3:0]) is therefore false at C101, despite upper-bit toggles.
    3) Antecedent does not trigger; consequent is not checked.

    Answer

    Answer: VACUOUS-PASS - no antecedent trigger occurs because the vector LSB did not rise, so implication passes vacuously.

    How this was checked

    Checked by running the code in Verilator 5; the printed output supports the answer above. state changes at C100 and C101, but only its LSB counts for $rose, so the antecedent never hits.

    Why candidates get it wrong

    Interviewers use this to catch assumptions that $rose(vector) means any-bit rise. With state going 4'b0010 to 4'b0101 (LSB 0 to 1) the same property would fire and FAIL at C101.

    Interviewer follow-up

    How would you rewrite the trigger to detect a rise on any bit of state? Model answer: compare against the previous sample bit by bit, for example |(state & ~$past(state)) as the antecedent (true here at C101: 0100 & ~0010 = 0100), or OR together $rose(state[i]) for each bit. Note $past needs a valid history (see the reset-release puzzle).

    Say it out loud

    I would look at the least significant bit, since rose on a vector looks only at bit zero. It is zero at C100 and zero at C101, so there is no rise and no attempt, and the property passes vacuously even though the upper bits toggled. The trap is assuming it means any bit rose. With state going from 0010 to 0101 the least significant bit would rise and the property would fail at C101 if enter is low. I would write per-bit or changed checks if the intent is any change.

    Related topics

    • $rose, $fell, $stable, $changed

    • Back to Temporal Corner Puzzles

    • SVA Assertion Puzzles section

    Previous

    128 / 293

    Next: Assertion Debug Puzzles

    Up next

    Up nextAssertion Debug Puzzles

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • $past Startup History Hole
    • $rose Sampled on Clock Edge
    • $fell Is an Event, Not a Level