Adder Tree

Block: Adder Tree (adder_tree)
Block Author: Aaron Parsons
Document Author: Aaron Parsons

Contents

Summary

Sums all inputs using a tree of adds and delays.

Mask Parameters

Parameter

Variable

Description

No. of inputs.

n_inputs

The number of inputs to be summed.

Add Latency

latency

The latency of each stage through the adder tree.

Ports

Port

Dir

Data Type

Description

sync

in

Boolean

Indicates the next clock cycle containing valid data

din

in

Inherited

A number to be summed.

Description

Sums all inputs using a tree of adds and delays. Total latency is ceil(log2(ninputs)) * latency.