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

    VLSI DV Interview PuzzlesAll levels

    auto_bin_max and at_least together

    Compute final percentages for each coverpoint. Options set: cp_addr has option.auto_bin_max = 4 (at_least stays 1); cp_err has option.at_least = 3 (weight stays 1).

    Puzzle

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

    Compute final percentages for each coverpoint. Options set: cp_addr has option.auto_bin_max = 4 (at_least stays 1); cp_err has option.at_least = 3 (weight stays 1).

    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%.

    How this was checked

    Checked by running a model of the rule in a Python model. A model of the option rules: auto_bin_max = 4 groups 16 values into 4 bins, and at_least = 3 leaves one bin covered.

    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%? Model answer: One. zero has 2 hits and needs 3; one already has 3, so a single extra sample with err = 0 gives 2/2 = 100%.

    Say it out loud

    I would apply each option separately. With auto_bin_max of 4 the address coverpoint has grouped bins, and its result is 75 percent. With at_least of 3 the error coverpoint is 50 percent, because a touched bin is not covered until it meets the threshold. The trap is calling a bin covered after one hit when at_least is higher, so I would check the hit counts per bin.

    Related topics

    • Weights, Goals & at_least

    • Coverage Options That Change the Numbers

    • Back to Coverage Options Puzzles

    • Functional Coverage Puzzles section

    Previous

    148 / 293

    Next: Weighted aggregate coverage math

    Up next

    Up nextWeighted aggregate coverage math

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • 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