\XtoCVerification{LookupTable2D FiP32 CPU STM32G474RE}
\begin{tabular}{l l}
\textbf{Date of Test} & 2026-06-19 \\
\textbf{Target controller} & STM32G474RE \\
\end{tabular}
\vspace{1ex}
\XtoCTestCase{Inport test}{1}
Inport test for General block LookupTable2D.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=5]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & ... & 67 \\ \hline
\textbf{CPU cycles} & 374 & 374 & ... & 321 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Inputs} \\ \hline
\textbf{x (DSP)} & -2147483648 & -2082408386 & ... & 2147483647 \\ \hline
\textbf{y (DSP)} & 1717986918 & 1662672946 & ... & -1932735283 \\ \hline
\textbf{x} & -1 & -0.97 & ... & 1 \\ \hline
\textbf{y} & 0.8 & 0.774 & ... & -0.9 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Parameters} \\ \hline
\textbf{TableData} & \SetCell[c=4]{c}[1x561] \\ \hline
\textbf{DimX} & \SetCell[c=4]{c}17 \\ \hline
\textbf{x\_min} & \SetCell[c=4]{c}-0.8 \\ \hline
\textbf{x\_max} & \SetCell[c=4]{c}0.7 \\ \hline
\textbf{DimY} & \SetCell[c=4]{c}33 \\ \hline
\textbf{y\_min} & \SetCell[c=4]{c}-0.6 \\ \hline
\textbf{y\_max} & \SetCell[c=4]{c}0.9 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -0 & -0.013 & ... & 0.05 \\ \hline
\textbf{Exp. Out} & 0 & -0.013 & ... & 0.05 \\ \hline
\textbf{Out (DSP)} & -1 & -27656987 & ... & 107374181 \\ \hline
\textbf{Exp. Out (DSP)} & 0 & -27656986 & ... & 107374182 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$2,3283e-09 ($\pm$5 LSB) \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 321 \\ \hline
Max CPU cycles & 412 \\ \hline
Avg CPU cycles & 393 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Conversion test}{1}
Conversion test for General block LookupTable2D.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|X[c]|}}
\hline
\SetRow{lightgray} \SetCell[c=2]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=2]{l} \textit{Mask parameters} \\ \hline
\textbf{TableData} & [1x561] \\ \hline
\textbf{DimX} & 33 \\ \hline
\textbf{x\_min} & -0.8 \\ \hline
\textbf{x\_max} & 0.7 \\ \hline
\textbf{DimY} & 17 \\ \hline
\textbf{y\_min} & -0.6 \\ \hline
\textbf{y\_max} & 0.9 \\ \hline
\SetRow{lightgray!50} \SetCell[c=2]{l} \textit{Controller parameters} \\ \hline
\textbf{gainX} & 1431655765 \\ \hline
\textbf{maskY} & 268435455 \\ \hline
\textbf{maskX} & 134217727 \\ \hline
\textbf{Table} & [1x561] \\ \hline
\textbf{gainY} & 1431655765 \\ \hline
\textbf{maxY} & 1932735283 \\ \hline
\textbf{maxX} & 1503238554 \\ \hline
\textbf{sfrX} & 27 \\ \hline
\textbf{sfrY} & 28 \\ \hline
\textbf{offsetX} & -107374182 \\ \hline
\textbf{sizeX} & 33 \\ \hline
\textbf{offsetY} & 322122547 \\ \hline
\textbf{minY} & -1288490189 \\ \hline
\textbf{minX} & -1717986918 \\ \hline
\textbf{gainXsfr} & 30 \\ \hline
\textbf{idxOffsetY} & 8 \\ \hline
\textbf{idxOffsetX} & 16 \\ \hline
\textbf{gainYsfr} & 30 \\ \hline
\textbf{Exp. gainX} & 1431655765 \\ \hline
\textbf{Exp. maskY} & 268435455 \\ \hline
\textbf{Exp. maskX} & 134217727 \\ \hline
\textbf{Exp. Table} & [1x561] \\ \hline
\textbf{Exp. gainY} & 1431655765 \\ \hline
\textbf{Exp. maxY} & 1932735283 \\ \hline
\textbf{Exp. maxX} & 1503238554 \\ \hline
\textbf{Exp. sfrX} & 27 \\ \hline
\textbf{Exp. sfrY} & 28 \\ \hline
\textbf{Exp. offsetX} & -107374182 \\ \hline
\textbf{Exp. sizeX} & 33 \\ \hline
\textbf{Exp. offsetY} & 322122547 \\ \hline
\textbf{Exp. minY} & -1288490189 \\ \hline
\textbf{Exp. minX} & -1717986918 \\ \hline
\textbf{Exp. gainXsfr} & 30 \\ \hline
\textbf{Exp. idxOffsetY} & 8 \\ \hline
\textbf{Exp. idxOffsetX} & 16 \\ \hline
\textbf{Exp. gainYsfr} & 30 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance gainX & $\pm$0,0000e+00 \\ \hline
Tolerance maskY & $\pm$0,0000e+00 \\ \hline
Tolerance maskX & $\pm$0,0000e+00 \\ \hline
Tolerance Table & $\pm$0,0000e+00 \\ \hline
Tolerance gainY & $\pm$0,0000e+00 \\ \hline
Tolerance maxY & $\pm$0,0000e+00 \\ \hline
Tolerance maxX & $\pm$0,0000e+00 \\ \hline
Tolerance sfrX & $\pm$0,0000e+00 \\ \hline
Tolerance sfrY & $\pm$0,0000e+00 \\ \hline
Tolerance offsetX & $\pm$0,0000e+00 \\ \hline
Tolerance sizeX & $\pm$0,0000e+00 \\ \hline
Tolerance offsetY & $\pm$0,0000e+00 \\ \hline
Tolerance minY & $\pm$0,0000e+00 \\ \hline
Tolerance minX & $\pm$0,0000e+00 \\ \hline
Tolerance gainXsfr & $\pm$0,0000e+00 \\ \hline
Tolerance idxOffsetY & $\pm$0,0000e+00 \\ \hline
Tolerance idxOffsetX & $\pm$0,0000e+00 \\ \hline
Tolerance gainYsfr & $\pm$0,0000e+00 \\ \hline
\end{XtoCtabular}
