Forum Discussion
Altera_Forum
Honored Contributor
9 years agoRepresenting only a set of bits in a binary number
Hello, I need a clarification regarding this topic. I have a binary number, say "00000011111111100......" and I need to write a VHDL code such that it calculates the number of 0s and 1s for a...
Altera_Forum
Honored Contributor
9 years agoIn the Altera Advanced Synthesis Cookbook are simple examples for counting bits (Bit Population Count) and Priority Masking. Maybe this already covers your question.