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. auto_bin_max and at_least together

VLSI DV Interview Puzzles · All levels

auto_bin_max and at_least together

Compute final percentages for each coverpoint when both option.auto_bin_max and option.at_least are active.

On this page

    Puzzle

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

    Compute final percentages for each coverpoint when both option.auto_bin_max and option.at_least are active.

    Code

    design.sv
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    covergroup cg with function sample(bit [3:0] addr, bit err);
      cp_addr: coverpoint addr {
        option.auto_bin_max = 4;
      }
    
      cp_err: coverpoint err {
        option.at_least = 3;
        bins zero = {0};
        bins one  = {1};
      }
    endgroup
    
    initial begin
      cg c = new();
      c.sample(0, 0);
      c.sample(1, 1);
      c.sample(2, 0);
      c.sample(15,1);
      c.sample(8, 1);
    end

    Hint

    addr values are grouped into 4 auto bins; err bins need at least 3 hits each.

    Step-by-step solution

    Diagram
    1) cp_addr has 4 grouped bins over 0..15.
    2) Samples hit groups 0..3, 8..11, and 12..15 -> 3/4 = 75%.
    3) cp_err counts are zero=2 and one=3.
    4) With at_least=3, only one bin is covered -> 1/2 = 50%.

    Answer

    Answer: cp_addr = 75%, cp_err = 50%.

    Why candidates get it wrong

    A touched bin is not covered until it meets threshold. Grouped auto bins also change denominator intuition.

    Interviewer follow-up

    How many additional err=0 samples are required to make cp_err reach 100%?

    Related topics

    • Back to Coverage Options Puzzles

    • Functional Coverage Puzzles section

    Previous

    142 / 210

    Next: Weighted aggregate coverage math

    Up next

    Up nextWeighted aggregate coverage math

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • per_instance exposure of hidden holes
    • type_option.at_least across all instances
    • type_option.auto_bin_max bin grouping