\XtoCBlock{Real2Int}
\label{block:Real2Int}
\begin{figure}[H]\includegraphics{Real2Int}\end{figure} 
Conversion block from real (floating point) datatypes to integer (fixed point) datatypes.

  Out = In / Scale 

\begin{XtoCtabular}{Inports}
In & Real input\\
\hline
\end{XtoCtabular}


\begin{XtoCtabular}{Outports}
Out & Integer output\\
\hline
\end{XtoCtabular}

\begin{XtoCMaskParamTabular}{Mask Parameters}
Scale & 1 & Scaling factor from real to integer\\
\hline
\end{XtoCMaskParamTabular}

\ifdefined \XcOverviewDocu
% omit optional documentation file
\else
% include optional documentation file
\IfFileExists{\XcHomePath/Library/General/Doc/Real2Int_Info.tex}
  {\subsubsection*{Description:}
   \input{\XcHomePath/Library/General/Doc/Real2Int_Info.tex}}
  {\vspace{1ex}}
\fi

\subsubsection*{Implementations:}
\begin{tabular}{l l}
\textbf{Float32\_FiP8} & 32 Floating Point to 8 Bit Fixed Point Implementation\\
\textbf{Float32\_FiP16} & 32 Floating Point to 16 Bit Fixed Point Implementation\\
\textbf{Float32\_FiP32} & 32 Floating Point to 32 Bit Fixed Point Implementation\\
\textbf{Float64\_FiP8} & 64 Floating Point to 8 Bit Fixed Point Implementation\\
\textbf{Float64\_FiP16} & 64 Floating Point to 16 Bit Fixed Point Implementation\\
\textbf{Float64\_FiP32} & 64 Floating Point to 32 Bit Fixed Point Implementation\\
\textbf{Float32\_Bool} & 32 Floating Point to Boolean Implementation\\
\textbf{Float64\_Bool} & 64 Floating Point to Boolean Implementation\\
\end{tabular}

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

32 Floating Point to 8 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float32\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float32\_FiP16}
\nopagebreak[0]

32 Floating Point to 16 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float32\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float32\_FiP32}
\nopagebreak[0]

32 Floating Point to 32 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float32\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float64\_FiP8}
\nopagebreak[0]

64 Floating Point to 8 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float64\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float64\_FiP16}
\nopagebreak[0]

64 Floating Point to 16 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float64\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float64\_FiP32}
\nopagebreak[0]

64 Floating Point to 32 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float64\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float32\_Bool}
\nopagebreak[0]

32 Floating Point to Boolean Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float32\\
\hline
\end{XtoCtabular}

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

\XtoCImplementation{Float64\_Bool}
\nopagebreak[0]

64 Floating Point to Boolean Implementation

\begin{XtoCtabular}{Inports Data Type}
In & float64\\
\hline
\end{XtoCtabular}

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

\ifdefined \AddTestReports
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float32_FiP8.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float32_FiP16.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float32_FiP32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float64_FiP8.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float64_FiP16.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float64_FiP32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float32_Bool.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/General/Doc/Test-Results/Test_Real2Int_Float64_Bool.tex}{}{}
\fi
\fi
