HDLbits
Browse Problems

Verilog Language/More Features

255-Bit Population Count

hard
population-countfor-loopvectors

Return the number of set bits in in_bus as an unsigned eight-bit value. Its range is sufficient for values from 0 to 255.