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
    • Cross Coverage Puzzles
    • Coverage Options Puzzles
      • auto_bin_max and at_least together
      • Weighted aggregate coverage math
      • per_instance exposure of hidden holes
      • type_option.at_least across all instances
      • type_option.auto_bin_max bin grouping
      • option.weight zero removes metric influence
    • 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

‹Coverage Options Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Functional Coverage Puzzles
  4. Coverage Options Puzzles
  5. option.weight zero removes metric influence

VLSI DV Interview Puzzles · All levels

option.weight zero removes metric influence

Compute each coverpoint percentage and final group percentage when one coverpoint has weight 0.

On this page

    Puzzle

    Difficulty: Medium · Puzzle 6 of 6 · Topic: Coverage Options Puzzles

    Compute each coverpoint percentage and final group percentage when one coverpoint has weight 0.

    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 [1:0] main_mode, bit debug_mode);
      cp_main: coverpoint main_mode {
        option.weight = 1;
        bins m[] = {[0:2]};
      }
      cp_debug: coverpoint debug_mode {
        option.weight = 0;
        bins d0 = {0};
        bins d1 = {1};
      }
    endgroup
    
    initial begin
      cg c = new();
      c.sample(0,0);
      c.sample(1,0);
    end

    Hint

    Calculate cp_main and cp_debug first, then apply weights in group aggregation.

    Step-by-step solution

    Diagram
    1) cp_main bins are 0,1,2 with hits on 0 and 1 -> 2/3 = 66.67%.
    2) cp_debug bins are d0 and d1 with only d0 hit -> 1/2 = 50%.
    3) Group aggregation uses weights: (1*66.67 + 0*50) / (1+0).
    4) Final group coverage remains 66.67%.

    Answer

    Answer: cp_main=66.67%, cp_debug=50%, group coverage=66.67% because cp_debug has zero weight.

    Why candidates get it wrong

    A low-quality auxiliary metric can look harmless in top-line numbers if its weight is 0; reviewers must inspect component coverage too.

    Interviewer follow-up

    When is setting weight 0 justified, and what governance rule would you add to prevent abuse?

    Related topics

    • Back to Coverage Options Puzzles

    • Functional Coverage Puzzles section

    Previous

    147 / 210

    Next: Coverage Closure and Sampling Timing Puzzles

    Up next

    Up nextCoverage Closure and Sampling Timing Puzzles

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • auto_bin_max and at_least together
    • Weighted aggregate coverage math
    • per_instance exposure of hidden holes