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
    • Covergroup and Coverpoint Puzzles
      • Auto vs explicit bins with illegal transition context
      • Default bin denominator puzzle
      • 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
  • Interview Prep: Puzzle Rounds5
  • 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

VLSI DV Interview Puzzles · All levels

Same traffic, different denominator

Two coverpoints observe the same signal. Compute both percentages and explain why they differ.

On this page

    Puzzle

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

    Two coverpoints observe the same signal. Compute both percentages and explain why they differ.

    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.

    Answer

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

    Why candidates get it wrong

    Coverage percentages are model-dependent metrics. You cannot compare them without checking denominator construction.

    Interviewer follow-up

    What model is better for signoff if 6 and 7 are service/debug modes excluded by spec?

    Related topics

    • Back to Covergroup and Coverpoint Puzzles

    • Functional Coverage Puzzles section

    Previous

    135 / 210

    Next: Cross Coverage Puzzles

    Up next

    Up nextCross Coverage Puzzles

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Auto vs explicit bins with illegal transition context
    • Default bin denominator puzzle
    • Bin array math with mixed declarations