Forum Discussion
Altera_Forum
Honored Contributor
10 years agoProblem with while loop in an array
I need to check how many cells in an array are "filled" and how many are zeroed. The array is a one-dimensional array of 64 bits vector. Declaration in package: package my_pack is
typ...
Altera_Forum
Honored Contributor
10 years agoThe error is pretty normal because the while termination condition is indeed undefined.
You should use a FOR loop to loop on the 18 packets and then an IF statement to test the zero condition and increment num_packets. But first of all, consider if your code would be really synthesizable in your device logic: it seems you are using VHDL (which is a logic description language) as a sequential programming language.