Skip to content

Milt-Adder trees must have a power of 2 input #3

Description

@alan4186

The trees cannot handle other input sizes.

The quick fix is to round the number of inputs up and pad with zeros:
mult_adder mult_adder_inst(
.clock(clock),
.reset(reset),
**.in({WINDOW_PAD_WIDTH'd0, window_content}),** .kernal({WINDOW_PAD_WIDTH'd0, k[tree_count]}),
.out(fm_pixel_vector[tree_count])
);

Alternatively, the tree could be changed to be made up of smaller trees. This complicates the coding and would likely require a python script to automatically build a tree of arbitrary size.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions