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

\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 & ... & 74 \\ \hline
\textbf{CPU cycles} & 173 & 174 & 174 & 174 & ... & 174 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In1 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In2 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In3 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In4 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In5 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In6 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In7 (DSP)} & -32768 & -30948 & -29127 & -27307 & ... & 32767 \\ \hline
\textbf{In8 (DSP)} & -32768 & -31870 & -30972 & -30075 & ... & 32767 \\ \hline
\textbf{In1} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In2} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In3} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In4} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In5} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In6} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In7} & -1 & -0.944 & -0.889 & -0.833 & ... & 1 \\ \hline
\textbf{In8} & -1 & -0.973 & -0.945 & -0.918 & ... & 1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{In1} & \SetCell[c=6]{c}+ \\ \hline
\textbf{In2} & \SetCell[c=6]{c}+ \\ \hline
\textbf{In3} & \SetCell[c=6]{c}+ \\ \hline
\textbf{In4} & \SetCell[c=6]{c}- \\ \hline
\textbf{In5} & \SetCell[c=6]{c}- \\ \hline
\textbf{In6} & \SetCell[c=6]{c}- \\ \hline
\textbf{In7} & \SetCell[c=6]{c}0 \\ \hline
\textbf{In8} & \SetCell[c=6]{c}+ \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -1 & -0.973 & -0.945 & -0.918 & ... & 1 \\ \hline
\textbf{Exp. Out} & -1 & -0.973 & -0.945 & -0.918 & ... & 1 \\ \hline
\textbf{Out (DSP)} & -32767 & -31870 & -30972 & -30075 & ... & 32767 \\ \hline
\textbf{Exp. Out (DSP)} & -32768 & -31870 & -30972 & -30075 & ... & 32767 \\ \hline
\end{tblr}
\vspace{1ex}

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

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 173 \\ \hline
Max CPU cycles & 174 \\ \hline
Avg CPU cycles & 173 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Conversion test}{1}
Conversion test for Math block Sum.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|X[c]|X[c]|X[c]|}}
\hline
\SetRow{lightgray} \SetCell[c=4]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 \\ \hline
\SetRow{lightgray!50} \SetCell[c=4]{l} \textit{Mask parameters} \\ \hline
\textbf{In1} & + & - & 0 \\ \hline
\textbf{In2} & + & - & 0 \\ \hline
\textbf{In3} & + & - & 0 \\ \hline
\textbf{In4} & + & - & 0 \\ \hline
\textbf{In5} & + & - & 0 \\ \hline
\textbf{In6} & + & - & 0 \\ \hline
\textbf{In7} & + & - & 0 \\ \hline
\textbf{In8} & + & - & 0 \\ \hline
\SetRow{lightgray!50} \SetCell[c=4]{l} \textit{Controller parameters} \\ \hline
\textbf{sign} & 21845 & 43690 & 0 \\ \hline
\textbf{Exp. sign} & 21845 & 43690 & 0 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance sign & $\pm$0,0000e+00 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Conversion-on-Target test}{1}
Conversion-on-Target test for Math block Sum.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|X[c]|X[c]|X[c]|}}
\hline
\SetRow{lightgray} \SetCell[c=4]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 \\ \hline
\SetRow{lightgray!50} \SetCell[c=4]{l} \textit{Mask parameters} \\ \hline
\textbf{In1} & + & - & 0 \\ \hline
\textbf{In2} & + & - & 0 \\ \hline
\textbf{In3} & + & - & 0 \\ \hline
\textbf{In4} & + & - & 0 \\ \hline
\textbf{In5} & + & - & 0 \\ \hline
\textbf{In6} & + & - & 0 \\ \hline
\textbf{In7} & + & - & 0 \\ \hline
\textbf{In8} & + & - & 0 \\ \hline
\SetRow{lightgray!50} \SetCell[c=4]{l} \textit{Controller parameters} \\ \hline
\textbf{sign} & 21845 & 43690 & 0 \\ \hline
\textbf{Exp. sign} & 21845 & 43690 & 0 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance sign & $\pm$0,0000e+00 \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 303 \\ \hline
Max CPU cycles & 335 \\ \hline
Avg CPU cycles & 323 \\ \hline
\end{XtoCtabular}
