Skip to content
Snippets Groups Projects
Commit da5a328d authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: Protect resize before SUM

* Effective number of bit did not get over, but it is better to protect.
parent eb9b2396
No related branches found
Tags 1.1.1
No related merge requests found
......@@ -127,9 +127,9 @@ begin
end process;
-- resize
rz_mult_a <= resize(mult_a, C_W_COR_SUMSAT);
rz_mult_b <= resize(mult_b, C_W_COR_SUMSAT);
rz_mult_d <= resize(mult_d, C_W_COR_SUMSAT);
rz_mult_a <= f_resize_sat(mult_a, C_W_COR_SUMSAT);
rz_mult_b <= f_resize_sat(mult_b, C_W_COR_SUMSAT);
rz_mult_d <= f_resize_sat(mult_d, C_W_COR_SUMSAT);
-- round then sat
rnd_abicd <= f_resize_lsb(mult_ic, rnd_abicd'length) when mult_ic(C_N_COR_RND-1) = '0' else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment