Verification Academy
Constraint a 9x9 matrix
SystemVerilog
systemverilog-arrays-struct-constraint-randomization-indexes
,
SystemVerilog
sumedha101
August 19, 2020, 1:41am
2
class my_item;
rand bit a[9][9];
constraint c2{
a.sum() with (int'(item==1)) == 10;
}
endclass
show post in topic