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

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=7]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 & 4 & ... & 67 \\ \hline
\textbf{CPU cycles} & 217 & 217 & 217 & 217 & ... & 210 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{x (DSP)} & -32768 & -31775 & -30782 & -29789 & ... & 32767 \\ \hline
\textbf{y (DSP)} & 26214 & 25370 & 24526 & 23682 & ... & -29491 \\ \hline
\textbf{x} & -1 & -0.97 & -0.939 & -0.909 & ... & 1 \\ \hline
\textbf{y} & 0.8 & 0.774 & 0.748 & 0.723 & ... & -0.9 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{TableData} & \SetCell[c=6]{c}[1x561] \\ \hline
\textbf{DimX} & \SetCell[c=6]{c}17 \\ \hline
\textbf{x\_min} & \SetCell[c=6]{c}-0.8 \\ \hline
\textbf{x\_max} & \SetCell[c=6]{c}0.7 \\ \hline
\textbf{DimY} & \SetCell[c=6]{c}33 \\ \hline
\textbf{y\_min} & \SetCell[c=6]{c}-0.6 \\ \hline
\textbf{y\_max} & \SetCell[c=6]{c}0.9 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -0 & -0.013 & -0.026 & -0.039 & ... & 0.05 \\ \hline
\textbf{Exp. Out} & 0 & -0.013 & -0.026 & -0.039 & ... & 0.05 \\ \hline
\textbf{Out (DSP)} & -1 & -423 & -845 & -1267 & ... & 1637 \\ \hline
\textbf{Exp. Out (DSP)} & 0 & -422 & -844 & -1266 & ... & 1638 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$9,1553e-05 ($\pm$3 LSB) \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 210 \\ \hline
Max CPU cycles & 234 \\ \hline
Avg CPU cycles & 228 \\ \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} & -1 \\ \hline
\textbf{x\_max} & 1 \\ \hline
\textbf{DimY} & 17 \\ \hline
\textbf{y\_min} & -1 \\ \hline
\textbf{y\_max} & 1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=2]{l} \textit{Controller parameters} \\ \hline
\textbf{gainX} & 16384 \\ \hline
\textbf{maskY} & 4095 \\ \hline
\textbf{maskX} & 2047 \\ \hline
\textbf{Table} & [1x561] \\ \hline
\textbf{gainY} & 16384 \\ \hline
\textbf{maxY} & 32767 \\ \hline
\textbf{maxX} & 32767 \\ \hline
\textbf{sfrX} & 11 \\ \hline
\textbf{sfrY} & 12 \\ \hline
\textbf{offsetX} & 0 \\ \hline
\textbf{sizeX} & 33 \\ \hline
\textbf{offsetY} & 0 \\ \hline
\textbf{minY} & -32767 \\ \hline
\textbf{minX} & -32767 \\ \hline
\textbf{gainXsfr} & 14 \\ \hline
\textbf{idxOffsetY} & 8 \\ \hline
\textbf{idxOffsetX} & 16 \\ \hline
\textbf{gainYsfr} & 14 \\ \hline
\textbf{Exp. gainX} & 16384 \\ \hline
\textbf{Exp. maskY} & 4095 \\ \hline
\textbf{Exp. maskX} & 2047 \\ \hline
\textbf{Exp. Table} & [1x561] \\ \hline
\textbf{Exp. gainY} & 16384 \\ \hline
\textbf{Exp. maxY} & 32767 \\ \hline
\textbf{Exp. maxX} & 32767 \\ \hline
\textbf{Exp. sfrX} & 11 \\ \hline
\textbf{Exp. sfrY} & 12 \\ \hline
\textbf{Exp. offsetX} & 0 \\ \hline
\textbf{Exp. sizeX} & 33 \\ \hline
\textbf{Exp. offsetY} & 0 \\ \hline
\textbf{Exp. minY} & -32767 \\ \hline
\textbf{Exp. minX} & -32767 \\ \hline
\textbf{Exp. gainXsfr} & 14 \\ \hline
\textbf{Exp. idxOffsetY} & 8 \\ \hline
\textbf{Exp. idxOffsetX} & 16 \\ \hline
\textbf{Exp. gainYsfr} & 14 \\ \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}
