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
    • Cross Coverage Puzzles
    • Coverage Options Puzzles
      • auto_bin_max and at_least together
      • Weighted aggregate coverage math
      • Instance coverage, type coverage and merge_instances
      • option.at_least per instance with averaged type coverage
      • auto_bin_max is ignored once bins are explicit
      • option.weight zero removes metric influence
    • 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

←Coverage Options Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Functional Coverage Puzzles
  4. Coverage Options Puzzles
  5. option.weight zero removes metric influence
On this page

    VLSI DV Interview PuzzlesAll levels

    option.weight zero removes metric influence

    Compute each coverpoint percentage and final group percentage when one coverpoint has weight 0. Options set: cp_main option.weight = 1, cp_debug option.weight = 0 (at_least = 1).

    Puzzle

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

    Compute each coverpoint percentage and final group percentage when one coverpoint has weight 0. Options set: cp_main option.weight = 1, cp_debug option.weight = 0 (at_least = 1).

    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.

    How this was checked

    Checked by running a model of the rule in a Python model. A model of weighted aggregation: weight 0 removes cp_debug from the group number.

    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? Model answer: Justified for purely diagnostic or informational coverpoints that are not a spec requirement. Require a written reason for each weight 0 in review, list all weight-0 items in the coverage report so reviewers still read their own percentages, and make CI flag any new weight 0.

    Say it out loud

    I would compute each coverpoint, then weight them. The main coverpoint is 66.67 percent and debug is 50 percent, and because debug has weight zero, the group coverage equals the main one, 66.67 percent. The trap is that a weak auxiliary metric looks harmless in the top-line number. I would inspect the component coverage too, not only the group figure.

    Related topics

    • Weights, Goals & at_least

    • Back to Coverage Options Puzzles

    • Functional Coverage Puzzles section

    Previous

    153 / 293

    Next: Coverage Closure and Sampling Timing Puzzles

    Up next

    Up nextCoverage Closure and Sampling Timing Puzzles

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • auto_bin_max and at_least together
    • Weighted aggregate coverage math
    • Instance coverage, type coverage and merge_instances