Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ224
Q224DVASIC interview problem

Solve before

TechniquesSystemVerilogAdvanced randomization
DifficultyHard
TopicConstraints
LanguageSystemVerilog
Format4 choices
01

Problem

How does solve a before b change this randomization?

Starting declarationSystemVerilog
rand bit a;
rand bit [1:0] b;
constraint c {
  (a == 0) -> (b == 0);
  solve a before b;
}
02

Answer choices (4)