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.
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.