From 71a0455abc730107972f741d9862a09072b82332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.broucquart@synchrotron-soleil.fr> Date: Thu, 14 Dec 2023 10:45:07 +0100 Subject: [PATCH] Fix index for x/Y plane separation in by plane control * Matrix lines are numbered from 0 to 99 * X from 0 to 49 included, Y from 50 to 99 included --- hdl/corr_ll.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hdl/corr_ll.vhd b/hdl/corr_ll.vhd index cda56f1..6325d65 100644 --- a/hdl/corr_ll.vhd +++ b/hdl/corr_ll.vhd @@ -101,7 +101,7 @@ begin begin -- Signal mux for X/Y coef and enable/reset, based on PSCID number - gen_x_sigmux:if I < 51 generate + gen_x_sigmux:if I < 50 generate coef_a <= coef_a_x; coef_b <= coef_b_x; coef_ic <= coef_ic_x; @@ -110,7 +110,7 @@ begin reset_corr <= reset_corr_x; end generate; - gen_y_sigmux:if I > 50 generate + gen_y_sigmux:if I > 49 generate coef_a <= coef_a_y; coef_b <= coef_b_y; coef_ic <= coef_ic_y; -- GitLab