Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ535
Q535DVNVIDIAASIC interview problem

Constrain five non-overlapping address windows

TechniquesDVSystemVerilogConstraintsMemory map
DifficultyMedium
TopicSystemVerilog Constraints
LanguageSystemVerilog
Requirements4 checkpoints
01

Problem

Randomize five sorted, non-overlapping 16-byte windows inside byte addresses 0 through 1023. Every base must be 4-byte aligned.

Starting declarationSystemVerilog
rand bit [9:0] base[5];

Example input and output

Use this case to check your interpretation
Input
base='{0,16,64,128,1008}
Output
Legal result
Explanation

Each base is aligned; adjacent inclusive windows do not overlap; the last window ends at 1023.

02

Requirements (4)

  • Align every base to four bytes.
  • Keep each inclusive window [base, base+15] within 0..1023.
  • Sort bases in strictly increasing order.
  • Require neighboring windows to be disjoint.