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
      • Named cross bins plus default ignore
      • Pure auto cross count
      • binsof-selected tuples with default ignore
      • intersect filter removes one tuple
      • illegal cross tuple does not close coverage
      • Three-way cross with only custom bins scored
    • Coverage Options Puzzles
    • 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

‹Cross Coverage Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Functional Coverage Puzzles
  4. Cross Coverage Puzzles
  5. binsof-selected tuples with default ignore

VLSI DV Interview Puzzles · All levels

binsof-selected tuples with default ignore

Determine scored bin count and final percentage when only selected tuples are named.

On this page

    Puzzle

    Difficulty: Medium · Puzzle 3 of 6 · Topic: Cross Coverage Puzzles

    Determine scored bin count and final percentage when only selected tuples are named.

    Code

    design.sv
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    covergroup cg with function sample(bit [2:0] size, bit [1:0] qos);
      cp_size: coverpoint size {
        bins small = {[0:3]};
        bins big   = {[4:7]};
      }
    
      cp_qos: coverpoint qos {
        bins low    = {0};
        bins high   = {1};
        bins urgent = {2};
      }
    
      x_sz_qos: cross cp_size, cp_qos {
        bins big_high   = binsof(cp_size.big)   && binsof(cp_qos.high);
        bins big_urgent = binsof(cp_size.big)   && binsof(cp_qos.urgent);
        bins small_low  = binsof(cp_size.small) && binsof(cp_qos.low);
        ignore_bins rest = default;
      }
    endgroup
    
    initial begin
      cg c = new();
      c.sample(6,1);
      c.sample(7,2);
      c.sample(2,2);
    end

    Hint

    Only the three named bins are scored; one sample lands in ignored space.

    Step-by-step solution

    Diagram
    1) Denominator is 3 scored bins: big_high, big_urgent, small_low.
    2) sample(6,1) hits big_high.
    3) sample(7,2) hits big_urgent.
    4) sample(2,2) is rest and ignored.
    5) Coverage = 2/3 = 66.67%.

    Answer

    Answer: 3 bins are scored and coverage is 66.67% (2 hit of 3).

    Why candidates get it wrong

    Many candidates incorrectly include all 2x3=6 possible tuples in denominator even with ignore default.

    Interviewer follow-up

    What single stimulus would close this model to 100%?

    Related topics

    • Back to Cross Coverage Puzzles

    • Functional Coverage Puzzles section

    Previous

    138 / 210

    Next: intersect filter removes one tuple

    Up next

    Up nextintersect filter removes one tuple

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Named cross bins plus default ignore
    • illegal cross tuple does not close coverage
    • Three-way cross with only custom bins scored