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
