Number of 1's
Problem Description
Given an input binary value, output the number of bits that are equal to 1.
Example:
din: 16'b0111100001101010
output: 8
Verilog
Code Editor Access
Log in to write, run and submit your solution to this interview question. It's free.
Output
Output goes here...
