Either way you need an address generator and then a decoder for each address
that indicates #1's at that address and take that result and add it to total.....
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
Possible Duplicate: Best algorithm to count the number of set bits in a 32-bit integer? Hello, Is there a more compact way of counting the number of ones in a byte without using a loop? I don't
What I am trying to do in my mind is take 8 1-bit inputs and count the 1's. Then represent those 1's. 01010111 should output 0101 (There are five 1's from input) module 8to4 (in,out,hold,clk,res...
stackoverflow.com
You can use this to convert Verilog code back to schematic -
I guess this is a school project.
So what hardware do you have?
What programming language do you use?
What size and irganisation is the PROM?
What interface does it use?
Do you ave any timing requirements?