42 XLS: bit population count

42 : XLS: bit population count

Select Project123456789ONSW2

How it works

https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel

How to test

Pull up input bits, check that output bits represent the count.

External hardware

LEDs and resistors

Picture

IO

#InputOutput
0bit0count0
1bit1count1
2bit2count2
3bit3count3
4bit4count4
5bit5count5
6bit6count6
7bit7count7