\XtoCBlock{Sum}
\label{block:Sum}
\begin{figure}[H]\includegraphics{Sum}\end{figure} 
Sum of inputs:

    + ... Input will be added to result.

    - ... Input will be subtracted from result.

    0 ... Input will be ignored.

\begin{XtoCtabular}{Inports}
In1 & Input \#1\\
\hline
In2 & Input \#2\\
\hline
In3 & Input \#3\\
\hline
In4 & Input \#4\\
\hline
In5 & Input \#5\\
\hline
In6 & Input \#6\\
\hline
In7 & Input \#7\\
\hline
In8 & Input \#8\\
\hline
\end{XtoCtabular}


\begin{XtoCtabular}{Outports}
Out & Result\\
\hline
\end{XtoCtabular}

\begin{XtoCMaskParamTabular}{Mask Parameters}
In1 & 1 & Input \#1\\
\hline
In2 & 2 & Input \#2\\
\hline
In3 & 3 & Input \#3\\
\hline
In4 & 4 & Input \#4\\
\hline
In5 & 5 & Input \#5\\
\hline
In6 & 6 & Input \#6\\
\hline
In7 & 7 & Input \#7\\
\hline
In8 & 8 & Input \#8\\
\hline
\end{XtoCMaskParamTabular}

\ifdefined \XcOverviewDocu
% omit optional documentation file
\else
\fi

\subsubsection*{Implementations:}
\begin{tabular}{l l}
\textbf{FiP8} & 8 Bit Fixed Point Implementation\\
\textbf{FiP16} & 16 Bit Fixed Point Implementation\\
\textbf{FiP32} & 32 Bit Fixed Point Implementation\\
\textbf{Float32} & 32 Bit Floating Point Implementation\\
\textbf{Float64} & 64 Bit Floating Point Implementation\\
\end{tabular}

\ifdefined \XcOverviewDocu
% omit implementation details and test reports
\else
\XtoCImplementation{FiP8}
\nopagebreak[0]

8 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In1 & int8\\
\hline
In2 & int8\\
\hline
In3 & int8\\
\hline
In4 & int8\\
\hline
In5 & int8\\
\hline
In6 & int8\\
\hline
In7 & int8\\
\hline
In8 & int8\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int8\\
\hline
\end{XtoCtabular}

\XtoCImplementation{FiP16}
\nopagebreak[0]

16 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In1 & int16\\
\hline
In2 & int16\\
\hline
In3 & int16\\
\hline
In4 & int16\\
\hline
In5 & int16\\
\hline
In6 & int16\\
\hline
In7 & int16\\
\hline
In8 & int16\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int16\\
\hline
\end{XtoCtabular}

\XtoCImplementation{FiP32}
\nopagebreak[0]

32 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In1 & int32\\
\hline
In2 & int32\\
\hline
In3 & int32\\
\hline
In4 & int32\\
\hline
In5 & int32\\
\hline
In6 & int32\\
\hline
In7 & int32\\
\hline
In8 & int32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float32}
\nopagebreak[0]

32 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In1 & float32\\
\hline
In2 & float32\\
\hline
In3 & float32\\
\hline
In4 & float32\\
\hline
In5 & float32\\
\hline
In6 & float32\\
\hline
In7 & float32\\
\hline
In8 & float32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float64}
\nopagebreak[0]

64 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In1 & float64\\
\hline
In2 & float64\\
\hline
In3 & float64\\
\hline
In4 & float64\\
\hline
In5 & float64\\
\hline
In6 & float64\\
\hline
In7 & float64\\
\hline
In8 & float64\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float64\\
\hline
\end{XtoCtabular}

\ifdefined \AddTestReports
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Sum_FiP8.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Sum_FiP16.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Sum_FiP32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Sum_Float32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Sum_Float64.tex}{}{}
\fi
\fi
