OpenCores

Population Counter Generator

Issue List
Performance? #1
Open allanh opened this issue almost 13 years ago
allanh commented almost 13 years ago

I inspected the code generated and was surprised to find that it was simply a large tree of small adders.

Have you considered the following:

  1. Having the first stage add more than two bits? Most FPGAs have four or six input LUTs, so only adding two bits wastes a lot of space for a wide counter.

  2. Using Wallace trees? They should improve the performance.

There are some performance figures for a Wallace Tree population counter given in this thread: http://opencores.org/forum,Cores,0,3737

(e.g. 512 bit input : 585 LUTs, 5.271 ns clock period in slowest speed grade part.)

Regards, Allan

NikosAl commented almost 13 years ago

Hi Allan,

Thanks for your comments.

I will have a look and try to improve the code.

Nikos


Assignee
No one
Labels
Request