← All problems

Counting Ones

Easy · Combinational · SystemVerilog

Design a module that, given an input value {din}, outputs the number of bits that are equal to $1$ on {dout}.

Open this challenge in the editor →