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

fix: Fix conditionnal generate statement and typo

parent 37724a60
No related branches found
No related tags found
No related merge requests found
......@@ -101,21 +101,23 @@ begin
begin
-- Signal mux for X/Y coef and enable/reset, based on PSCID number
if I < 51 then
gen_x_sigmux:if I < 51 generate
coef_a <= coef_a_x;
coef_b <= coef_b_x;
coef_ic <= coef_ic_x;
coef_d <= coef_d_x;
enable_corr <= enable_corr_x;
reset_corr <= reset_corr_x;
else
end generate;
gen_y_sigmux:if I > 50 generate
coef_a <= coef_a_y;
coef_b <= coef_b_y;
coef_ic <= coef_ic_y;
coef_d <= coef_d_y;
enable_corr <= enable_corr_y;
reset_corr <= reset_corr_y;
end if;
end generate;
p_main:process(clk, rst_n)
begin
......
......@@ -240,9 +240,9 @@ begin
coef_ic_y => signed(mm_a2l.CORR_K1IC_Y.data.data),
coef_d_y => signed(mm_a2l.CORR_K1D_Y.data.data),
reset_corr_x => mm_a2l.CONTROL.RST_CORR.data(0),
reset_corr_x => mm_a2l.CONTROL_X.RST_CORR.data(0),
enable_corr_x => enable_corr_x,
reset_corr_y => mm_a2l.CONTROL.RST_CORR.data(0),
reset_corr_y => mm_a2l.CONTROL_Y.RST_CORR.data(0),
enable_corr_y => enable_corr_y,
-- Corr output
......
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