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

fix: Change register bitsize

* Matmul coefs are now on 24 bits (23 effectives)
* Round more after matmul to keep result on 32b
parent 5d70f6e0
No related branches found
No related tags found
No related merge requests found
......@@ -26,14 +26,14 @@ package pkg_corr_matrixpi is
constant C_N_MM_BPM : natural := 122; -- number of bpm (matrix columns)
constant C_N_MM_PSC : natural := 100; -- number of psc (matrix lines)
constant C_W_MM_COEF : natural := 18;
constant C_W_MM_COEF : natural := 24;
constant C_W_MM_MULT : natural := 42; -- C_W_OE+C_W_MM_COEF;
constant C_W_MM_MULT : natural := 48; -- C_W_OE+C_W_MM_COEF;
constant C_W_MM_IDCNT : natural := 7; -- natural(ceil(log2(real(C_N_MM_BPM))));
constant C_W_MM_ACCU : natural := 49; -- C_W_MM_MULT+C_W_MM_IDCNT;
constant C_W_MM_ACCU : natural := 55; -- C_W_MM_MULT+C_W_MM_IDCNT;
constant C_N_MM_SAT : natural := 0;
constant C_N_MM_RND : natural := 17;
constant C_N_MM_RND : natural := 23;
constant C_W_MM : natural := 32; --C_W_MM_ACCU-C_N_MM_SAT-C_N_MM_RND
-- PI corrector
......
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