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. Pure auto cross count

VLSI DV Interview Puzzles · All levels

Pure auto cross count

No ignores, no custom bins. Compute auto cross denominator and percentage.

On this page

    Puzzle

    Difficulty: Easy · Puzzle 2 of 6 · Topic: Cross Coverage Puzzles

    No ignores, no custom bins. Compute auto cross denominator and percentage.

    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 [1:0] a, bit b);
      cp_a: coverpoint a {
        bins a0 = {0};
        bins a1 = {1};
        bins a2 = {2};
      }
      cp_b: coverpoint b {
        bins b0 = {0};
        bins b1 = {1};
      }
      x_ab: cross cp_a, cp_b;
    endgroup
    
    initial begin
      cg c = new();
      c.sample(0,0);
      c.sample(1,1);
      c.sample(2,1);
      c.sample(2,0);
    end

    Hint

    Cross denominator is product of coverpoint bin counts.

    Step-by-step solution

    Diagram
    1) cp_a has 3 bins and cp_b has 2 bins -> auto cross has 6 bins.
    2) Hit tuples are (a0,b0), (a1,b1), (a2,b1), (a2,b0) -> 4 unique cross bins hit.
    3) Coverage = 4/6 = 66.67%.

    Answer

    Answer: Cross denominator is 6 bins and achieved coverage is 66.67%.

    Why candidates get it wrong

    Repeated hits on one tuple do not increase covered-bin count; only unique bin hits matter.

    Interviewer follow-up

    Which exact two tuples are still uncovered after the shown traffic?

    Related topics

    • Back to Cross Coverage Puzzles

    • Functional Coverage Puzzles section

    Previous

    137 / 210

    Next: binsof-selected tuples with default ignore

    Up next

    Up nextbinsof-selected tuples with default ignore

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • intersect filter removes one tuple
    • illegal cross tuple does not close coverage
    • Three-way cross with only custom bins scored