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
    • Covergroup and Coverpoint Puzzles
      • Auto vs explicit bins with illegal transition context
      • Default bin is not scored
      • Bin array math with mixed declarations
      • Transition bin sequence counting
      • illegal_bins vs ignore_bins accounting
      • Same traffic, different denominator
    • Cross Coverage Puzzles
    • Coverage Options Puzzles
    • Coverage Closure and Sampling Timing Puzzles
    • Functional Coverage Puzzles: Tricky Q&A
  • 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

←Covergroup and Coverpoint Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Functional Coverage Puzzles
  4. Covergroup and Coverpoint Puzzles
  5. Same traffic, different denominator
On this page

    VLSI DV Interview PuzzlesAll levels

    Same traffic, different denominator

    Two coverpoints observe the same signal. Compute both percentages and explain why they differ. Options: none set (all defaults: at_least = 1, weight = 1, auto_bin_max = 64).

    Puzzle

    Difficulty: Medium · Puzzle 6 of 6 · Topic: Covergroup and Coverpoint Puzzles

    Two coverpoints observe the same signal. Compute both percentages and explain why they differ. Options: none set (all defaults: at_least = 1, weight = 1, auto_bin_max = 64).

    Code

    design.sv
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    covergroup cg with function sample(bit [2:0] mode);
      cp_auto: coverpoint mode;
    
      cp_manual: coverpoint mode {
        bins legal[] = {[0:5]};
        ignore_bins svc = {6,7};
      }
    endgroup
    
    initial begin
      cg c = new();
      c.sample(0);
      c.sample(1);
      c.sample(2);
      c.sample(6);
      c.sample(7);
    end

    Hint

    cp_auto on a 3-bit signal has 8 auto bins; cp_manual scores only legal[] bins.

    Step-by-step solution

    Diagram
    1) cp_auto bins are 0..7 -> 8 bins. Hits are 0,1,2,6,7 -> 5/8 = 62.5%.
    2) cp_manual has legal[] over 0..5 -> 6 scored bins. Hits among legal bins are 0,1,2 -> 3/6 = 50%.
    3) Samples 6 and 7 are ignored in cp_manual, but counted as valid bins in cp_auto.
    4) Note ignore_bins svc is redundant in cp_manual: 6 and 7 are not in legal[] anyway, so they never enter any bin. It documents intent but is not what shrinks the denominator.

    Answer

    Answer: cp_auto = 62.5%, cp_manual = 50%. Same samples, different scored bin sets.

    How this was checked

    Checked by running a model of the rule in a Python model. A model of the scored-bin rule: 8 auto bins give 5/8, while 6 explicit bins give 3/6 on the same samples.

    Why candidates get it wrong

    cp_auto scores 6 and 7 as ordinary bins, so the same five samples give 62.5% against 50%. Hits on service modes inflate cp_auto; the explicit legal[] list is what fixes the denominator, not the redundant ignore_bins.

    Interviewer follow-up

    What model is better for signoff if 6 and 7 are service/debug modes excluded by spec? Model answer: The explicit model (cp_manual), because its denominator holds only the six modes the spec requires, so 3/6 = 50% shows real progress. Use ignore_bins (with a spec reference) if they may occur and are not interesting, or illegal_bins if they must never occur.

    Say it out loud

    I would count the scored bins of each coverpoint separately. The auto coverpoint scores 6 and 7 as ordinary bins, so it reports 62.5 percent, and the manual one with an explicit legal list reports 50 percent on the same five samples. The difference is only the denominator and which hits count. The trap is blaming the stimulus, so I would check that the explicit list defines the real legal set.

    Related topics

    • Auto Bins vs Explicit Bins

    • Bin Design Strategy

    • Back to Covergroup and Coverpoint Puzzles

    • Functional Coverage Puzzles section

    Previous

    141 / 293

    Next: Cross Coverage Puzzles

    Up next

    Up nextCross Coverage Puzzles

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • Auto vs explicit bins with illegal transition context
    • Default bin is not scored
    • Bin array math with mixed declarations