Adder_tree - david-macmahon/wiki_convert_test GitHub Wiki
Block: Adder Tree (adder_tree
)
Block Author: Aaron Parsons
Document Author: Aaron Parsons
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(log_{2}(n_inputs))*latency).