-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree component #155
base: main
Are you sure you want to change the base?
Tree component #155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!
/// the tree is: depth + flopDepth * depthToflop; | ||
int get depth => _computed.depth; | ||
|
||
/// The flop depth of the tree from the output to the leaves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this equal to the latency in cycles?
/// needed in the tree, otherwise use zero-extension (default). | ||
/// | ||
/// Optional parameters to be used for creating a pipelined computation tree: | ||
/// - [clk], [reset], [enable] are optionally provided to allow for flopping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the enable
like a stall?
Description & Motivation
This adds a ReductionTree component which performs arbitrary radix tree reduction computation, including operand widening,
sign extension as specified, and works on arbitrary length input sequences using computation specified by a List-based functor.
Related Issue(s)
#94 Tree component.
Testing
Tests are provided for unpipelined, pipelined, radix2 and radix4 additions using native and prefix-tree adders with widening.
Backwards-compatibility
No.
Documentation
Yes, a reduction_tree markdown with code example is provided.