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. Three-way cross with only custom bins scored

VLSI DV Interview Puzzles · All levels

Three-way cross with only custom bins scored

Find the scored denominator and percentage for this 3-D cross model.

On this page

    Puzzle

    Difficulty: Hard · Puzzle 6 of 6 · Topic: Cross Coverage Puzzles

    Find the scored denominator and percentage for this 3-D cross model.

    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
    27
    28
    29
    covergroup cg with function sample(bit [1:0] port, bit prio, bit drop);
      cp_port: coverpoint port {
        bins p0 = {0};
        bins p1 = {1};
        bins p2 = {2};
      }
      cp_prio: coverpoint prio {
        bins lo = {0};
        bins hi = {1};
      }
      cp_drop: coverpoint drop {
        bins no  = {0};
        bins yes = {1};
      }
      x3: cross cp_port, cp_prio, cp_drop {
        bins p0_hi_drop = binsof(cp_port.p0) && binsof(cp_prio.hi) && binsof(cp_drop.yes);
        bins p1_lo_no   = binsof(cp_port.p1) && binsof(cp_prio.lo) && binsof(cp_drop.no);
        bins p2_hi_no   = binsof(cp_port.p2) && binsof(cp_prio.hi) && binsof(cp_drop.no);
        ignore_bins others = default;
      }
    endgroup
    
    initial begin
      cg c = new();
      c.sample(0,1,1);
      c.sample(1,0,0);
      c.sample(2,1,0);
      c.sample(2,0,1);
    end

    Hint

    default ignore means only three named bins are scored.

    Step-by-step solution

    Diagram
    1) Denominator is exactly 3 scored bins.
    2) First three samples hit p0_hi_drop, p1_lo_no, and p2_hi_no.
    3) Final sample (2,0,1) is ignored by default rest space.
    4) Coverage = 3/3 = 100%.

    Answer

    Answer: Scored bins = 3 and coverage = 100%.

    Why candidates get it wrong

    In high-dimensional crosses, default ignore can make closure look easy; ensure selected bins truly represent spec risk.

    Interviewer follow-up

    Which additional named bin would you add first if silicon escapes were seen on p2 low-priority drops?

    Related topics

    • Back to Cross Coverage Puzzles

    • Functional Coverage Puzzles section

    Previous

    141 / 210

    Next: Coverage Options Puzzles

    Up next

    Up nextCoverage Options Puzzles

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Named cross bins plus default ignore
    • Pure auto cross count
    • binsof-selected tuples with default ignore