In reply to dave_59:
Trying to understand the code below, What is delta ? and why is it 5? i didnt understand why density is 1000. Please help me understand this
class addr_rand;
rand bit [31:0] addr;
int delta = 5;
int density = 1000;
constraint c{addr % density inside {[0:delta],[density-delta:density]};}
endclass