In reply to bmorris:
(item > 5) is returning a 1-bit number that is continually added as a 1-bit number. If you want the number of elements greater than 5, use:
y = numbers.sum with (int'(item > 5));
In reply to bmorris:
(item > 5) is returning a 1-bit number that is continually added as a 1-bit number. If you want the number of elements greater than 5, use:
y = numbers.sum with (int'(item > 5));