Forum Discussion
Altera_Forum
Honored Contributor
10 years agoWhy are you trying to access individual bits of a number? You cannot sum them as they are just std_logic so no arithmetic is defined for them.
I think you need to make a function to count the bits for you.