Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ1022
Q1022DVASIC interview problem

Distribution constraints

TechniquesSystemVerilogConstrained randomization
DifficultyMedium
TopicConstraints
LanguageSystemVerilog
Format4 choices
01

Problem

What probability does this distribution assign to x equal to 2?

Starting declarationSystemVerilog
rand int x;
constraint c { x dist { 0 := 1, [1:3] :/ 6 }; }
02

Answer choices (4)