\input{preamble.tex}
\input{shared/dactino.tex}
\graphicspath{{images/5632}, {images}}

\title{5632 DAC Fastino}
\author{M-Labs Limited}
\date{January 2025}
\revision{Revision 1}
\companylogo{\includegraphics[height=0.73in]{artiq_sinara.pdf}}

\begin{document}
\maketitle

\section{Features}

    \begin{itemize}
        \item{32-channel fast DAC}
        \item{16-bit resolution}
        \item{3 MSPS per channel}
        \item{Output voltage ±10V}
        \item{Gateware CIC interpolation}
        \item{HD68 connector}
        \item{Can be broken out to BNC/SMA/MCX}
    \end{itemize}

\section{Applications}

    \begin{itemize}
        \item{Low-frequency arbitrary waveform generation}
        \item{Driving DC electrodes in ion traps}
    \end{itemize}

\generaldescription{5632 DAC Fastino}{slower 5432 DAC Zotino}

% Switch to next column
\vfill\break

%\begin{figure}[h]
%    \centering
%    \scalebox{1.15}{
%    \begin{circuitikz}[european, every label/.append style={align=center}]
%        \begin{scope}[]
%            % if applicable
%        \end{scope}
%    \end{circuitikz}
%    }

%    \caption{Simplified Block Diagram}
%\end{figure}

\begin{figure}[hbt!]
    \centering
    \includegraphics[height=2.25in]{photo5632.jpg}
    \caption{Fastino card}
    \includegraphics[height=3in, angle=90]{fp5632.pdf}
    \caption{Fastino front panel}
\end{figure}

% For wide tables, a single column layout is better. It can be switched
% page-by-page.
\onecolumn

\sourcesection{5632 DAC Fastino}{https://github.com/sinara-hw/Fastino}

\section{Electrical Specifications}

    % \hypersetup{hidelinks}
    % \urlstyle{same}
    These specifications are based on the datasheet of the DAC IC
    (AD5542\footnote{\label{dac}\url{https://www.analog.com/media/en/technical-documentation/data-sheets/AD5512A_5542A.pdf}}),
    and various information from the Sinara wiki\footnote{\label{fastino_wiki}\url{https://github.com/sinara-hw/Fastino/wiki}}.

    \begin{table}[h]
    \centering
    \begin{threeparttable}
    \caption{Output Specifications}
    \begin{tabularx}{0.8\textwidth}{l | c c c | c | X}
        \thickhline
        \textbf{Parameter} & \textbf{Min.} & \textbf{Typ.} & \textbf{Max.} &
        \textbf{Unit} & \textbf{Conditions} \\
        Sampling rate & & 3\dag & & MSPS & per channel \\
        \hline
        Output voltage & -10 & & 10 & V & \\
        \hline
        Resolution\repeatfootnote{dac} & & 16 & & bits & \\
        \hline
        Settling time\repeatfootnote{dac} & & 1 & & \textmu s & \\
        \hline
        Temperature coefficient\repeatfootnote{fastino_wiki} & & & 7 & ppm & \\
        \hline
        3dB bandwidth & & 500 & & kHz & \\
        \hline
        Power consumption & 7 & & 13 & W & \\
        \thickhline
    \end{tabularx}
    \end{threeparttable}
    \end{table}

    \dag Note that current QUARTIQ gateware supports 2.55 MSPS maximum.

    The following table records cross-talk and transient behavior by Fastino, collected in various Sinara issues, see spur analysis\footnote{\label{fastino56}\url{https://github.com/sinara-hw/Fastino/issues/56}}, cross-talk\footnote{\url{https://github.com/sinara-hw/Fastino/issues/85}}, and noise summary\footnote{\url{https://github.com/sinara-hw/Fastino/issues/51}}. DAC output during output noise measurement was 6.875 V, updating continuously, channel 27 used for recording.

    \begin{table}[h]
    \centering
    \begin{threeparttable}
    \caption{Electrical Characteristics}
    \begin{tabularx}{0.8\textwidth}{l | c c c | c | X}
        \thickhline
        \textbf{Parameter} & \textbf{Min.} & \textbf{Typ.} & \textbf{Max.} &
        \textbf{Unit} & \textbf{Conditions / Comments} \\
        \hline
        DC cross-talk & & & -65 & dBmV & \\
        \hline
        Output noise & & & & & over 1kHz bandwidth \\
        \hspace{18mm} @ 500 kHz & & 60 & 80 & nV/rtHz & \\
        \hspace{18mm} @ 2 MHz & & & 12 & nV/rtHz & \\
        \hspace{18mm} @ 10 MHz & & & 4 & nV/rtHz & \\
        \hline
        Broadband noise & & & & & over 6.9kHz bandwidth \\
        \hspace{18mm} @ 100 kHz & & 56 & & nV/rtHz & \\
        \hspace{18mm} @ 1 MHz & & 14 & & nV/rtHz & \\
        \hline
        Spur-free range & 0.1 & & 5 & MHz & Correctly configured\repeatfootnote{fastino56} \\
        Digital update spurs & & 560 & & nVrm & @ 2.55MHz \\
        \thickhline
    \end{tabularx}
    \end{threeparttable}
    \end{table}

    % Is it worth recounting spur summary issue here?

\newpage

\section{LEDs}

    5632 DAC Fastino provides eight user LEDs in the front panel. These are directly accessible with ARTIQ RTIO. Four additional LEDs indicate, respectively, power good (\texttt{PG}), FPGA done (\texttt{FD}), overtemperature (\texttt{OT}), and gateware or initialization error (\texttt{ERR}).

\sysdescsection

    5632 DAC Fastino should be entered in the \texttt{peripherals} list of the corresponding core device in the following format:

    \begin{tcolorbox}[colback=white]
        \begin{minted}{json}
            {
                "type": "fastino",
                "ports": [0],
                "log2_width": 0 // select 0 to 5, default is 0
            }
        \end{minted}
    \end{tcolorbox}

    Replace 0 with the EEM port used on the core device. Any port may be used on the core device side. Fastino provides two EEM ports, of which ARTIQ always requires the first, \texttt{EEM0}. The second, \texttt{EEM1}, should not be used.

    The \texttt{log2\_width} field accepts a number from 0 to 5 inclusive and represents (in powers of two) the number of DAC channels packed into a single RTIO write (1 to 32). This allows and defines the use of \texttt{set\_group()} functions rather than \texttt{set\_dac()} as in examples given below.

\codesectiondactino{5632 DAC Fastino}{Fastino}{fastino.py}

    \subsection{CIC interpolators}

    Fastino gateware features dynamically configurable CIC (cubic B-spline) interpolators, defined individually by channel, with interpolation rates from 1 (2.55 MSPS) to 65536 (39 SPS). For more details, see manual documentation on ARTIQ driver functions \texttt{stage\_cic} and \texttt{apply\_cic}.

\ordersection{5632 DAC Fastino}

\finalfootnote

\end{document}
