Verification Academy
How to generate a random 16 bit number , having fixed number of "1" s in it . Like 16bit number with 5 "1"s in it, example "0000-1010-1110-0000"
UVM
UVM
dave_59
September 4, 2014, 3:45pm
2
constraint ex_num { $countones(typ_num[16:0]) == 5; }
show post in topic