senthilos
Newbie level 6
- Joined
- Feb 25, 2010
- Messages
- 12
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Location
- Raleigh, NC, USA
- Activity points
- 1,360
Hi,
Yesterday I got this design question in an interview. How do you detect the number of 1's in a 8 bit data line? There is a clock running. At each clock, the output should display the number of 1's(the count) in the data line.
The interviewer expected me to design a hardware circuit at gate level to achieve this functionality. Can anyone give me a hint on how to go about this?
Thanks
Senthil
Yesterday I got this design question in an interview. How do you detect the number of 1's in a 8 bit data line? There is a clock running. At each clock, the output should display the number of 1's(the count) in the data line.
The interviewer expected me to design a hardware circuit at gate level to achieve this functionality. Can anyone give me a hint on how to go about this?
Thanks
Senthil