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. type_option.at_least across all instances

VLSI DV Interview Puzzles · All levels

type_option.at_least across all instances

Compute each instance coverage and type-level average when type_option.at_least applies to every instance.

On this page

    Puzzle

    Difficulty: Hard · Puzzle 4 of 6 · Topic: Coverage Options Puzzles

    Compute each instance coverage and type-level average when type_option.at_least applies to every instance.

    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 err);
      option.per_instance = 1;
      cp_err: coverpoint err {
        type_option.at_least = 2;
        bins zero = {0};
        bins one  = {1};
      }
    endgroup
    
    initial begin
      cg c0 = new();
      cg c1 = new();
      c0.sample(0);
      c0.sample(1);
      c1.sample(1);
      c1.sample(1);
    end

    Hint

    Each bin in each instance needs at least 2 hits due to type_option.at_least=2.

    Step-by-step solution

    Diagram
    1) For c0: zero count=1 and one count=1, neither reaches 2 -> 0/2 = 0%.
    2) For c1: one count=2 reaches threshold, zero count=0 does not -> 1/2 = 50%.
    3) Type-level average with per_instance=1 is (0 + 50)/2 = 25%.

    Answer

    Answer: c0=0%, c1=50%, type coverage=25%.

    Why candidates get it wrong

    Candidates often apply threshold only once globally; type_option still enforces threshold per instance/bin.

    Interviewer follow-up

    What minimum extra samples are needed to raise type coverage to at least 75%?

    Related topics

    • Back to Coverage Options Puzzles

    • Functional Coverage Puzzles section

    Previous

    145 / 210

    Next: type_option.auto_bin_max bin grouping

    Up next

    Up nexttype_option.auto_bin_max bin grouping

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • auto_bin_max and at_least together
    • Weighted aggregate coverage math
    • option.weight zero removes metric influence