Reply To: RandCovPoint and illegal or ignored Bins
Why OSVVM™? › Forums › OSVVM › RandCovPoint and illegal or ignored Bins › Reply To: RandCovPoint and illegal or ignored Bins
		March 4, 2015 at 05:01
		
		#935
		
		
		
	
 Jim Lewis
Jim LewisMember
		
		
	Cool idea. I will look into adding it.
For now, for small sets of numbers (oddly there is no corresponding version of IllegalBin that allows integer_vector parameters):
v_cov_bin1.AddBins(GenBin((2,4,6,8)));
For now, for larger sets of numbers:
for i in 1 to 8 loop 
  if i mod 2 = 0 then 
    v_cov_bin1.AddBins(GenBin(i));
  end if ; 
end loop ; 
If you want to detect any remaining bin as an illegal bin, you can do (just make sure you do this last):
v_cov_bin1.AddBins(ALL_ILLEGAL);
