Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ448
Q448DVASIC interview problem

Basic constraints

TechniquesSystemVerilogConstrained randomization
DifficultyMedium
TopicConstraints
LanguageSystemVerilog
Format4 choices
01

Problem

Which set exactly describes all possible values of x after a successful randomize()?

Class declarationSystemVerilog
class C;
  rand int unsigned x;
  constraint c { x inside {[1:4]}; x != 3; }
endclass
02

Answer choices (4)