Ones Count 64 bit on Xilinx in VHDL

Jul 19, 2005 22 Replies
< Using 63bits rather than 64 bits takes precisely 63 adder cells>

Should say Using 63bits rather than 64 bits takes precisely 63-6 adder cells and

64 bits take 63.

Its been awhile. You probably didn't realize I was using 32x for oversampling

(snip)

Well, I might describe Peter's as using 12 bit wide (or is it deep) carry save adders. I forget by now if he actually made a tree out of it, though.

-- glen

Here's a pipeline in Verilog - the theory should translate easily to VHDL. I'm a beginner at Verilog, so forgive me if there's something obviously wrong here.

module pop64( input clk, input [63:0] vec, output reg [6:0] sum);

reg [63:0] s1, s2, s3, s4, s5;

always @(posedge clk) begin s1

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required