Reply To: Possible infinite loop in FindBinInside

Why OSVVM™? Forums OSVVM Possible infinite loop in FindBinInside Reply To: Possible infinite loop in FindBinInside

#673
Jim Lewis
Member

Hi Reuven,

I ran this on 9.2 of ActiveHDL, 2013.02 on RivieraPro, and 10.2a of QuestaSim and I am not able to reproduce the error.  Maybe you need to send me more of the test code.

I note that it is doing a memory allocation for  (10**6)*8 32 bit values.  It also allocates an additional (10**6)*10 memory locations in small chunks (10 integers at a time).   I have plans to update the data structure.  I will plan in changes that allow it to allocate memory in smaller chunks, say 10*3 words rather than the larger size. 

In the mean time, I will expedite the change to the printing of illegal messages to allow you to shrink the size of your data structure.

With the good messages, if you can live with the illegal bins as a catch all, the following only uses two bins.  The example in my previous post takes 2**6 = 64 bins. 

tst_sv.AddCross(ONE_BIN, ONE_BIN, ONE_BIN, ONE_BIN, ONE_BIN, ONE_BIN);

tst_sv.AddCross(ALL_ILLEGAL, ALL_ILLEGAL, ALL_ILLEGAL, ALL_ILLEGAL, ALL_ILLEGAL, ALL_ILLEGAL) ;

Jim