Constraint a 9x9 matrix

class my_item;

rand bit a[9][9];

constraint c2{

a.sum() with (int'(item==1)) == 10;

}

endclass