Skip to content

Commit

Permalink
resize with explicit number instead of other signal
Browse files Browse the repository at this point in the history
This is done as a workaround for a ghdl synthesis bug.
  • Loading branch information
marph91 committed Mar 21, 2021
1 parent e581163 commit ab11a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/adder_tree.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ architecture rtl of adder_tree is

if (C_UNSIGNED = 1) then
-- Pad a zero (sign) bit in case of unsigned input.
v_sum_init(i) := resize(signed('0' & v_input_datum), v_sum_init(0));
v_sum_init(i) := resize(signed('0' & v_input_datum), v_sum_init(0)'length);
else
v_sum_init(i) := resize(signed(v_input_datum), v_sum_init(0));
v_sum_init(i) := resize(signed(v_input_datum), v_sum_init(0)'length);
end if;

end loop;
Expand Down

0 comments on commit ab11a7b

Please sign in to comment.