%==============================================================================
% Document header
%==============================================================================
\documentclass[a4paper,11pt]{article}

% Color package
\usepackage[usenames,dvipsnames,table]{xcolor}

% Hyperrefs
\usepackage[
  colorlinks = true,
  linkcolor  = Mahogany,
  citecolor  = Mahogany,
  urlcolor   = blue,
]{hyperref}

% Longtable
\usepackage{longtable}

% Graphics, multirow
\usepackage{graphicx}
\usepackage{multirow}

% Appendix package
\usepackage[toc,page]{appendix}

\usepackage{fancyhdr}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\fancyhead[L]{\nouppercase{\leftmark}}
\fancyhead[R]{}
\renewcommand{\footrulewidth}{0.4pt}

\usepackage{amssymb}

% Row number command
\newcounter{rownr}
\newcommand{\rownumber}{\stepcounter{rownr}\arabic{rownr}}

%==============================================================================
% Start of document
%==============================================================================
\begin{document}

%------------------------------------------------------------------------------
% Title
%------------------------------------------------------------------------------
\include{cern-title}

%------------------------------------------------------------------------------
% Revision history
%------------------------------------------------------------------------------
\thispagestyle{empty}
\section*{Revision history}

\centerline
{
  \rowcolors{2}{white}{gray!25}
  \begin{tabular}{l c p{.6\textwidth}}
  \hline
  \multicolumn{1}{c}{\textbf{Date}} & \multicolumn{1}{c}{\textbf{Version}} & \multicolumn{1}{c}{\textbf{Change}} \\
  \hline
  25-04-2014 & 0.1 & First draft \\
  \hline
  \end{tabular}
}

\pagebreak
\pagenumbering{roman}
\setcounter{page}{1}
\tableofcontents

%------------------------------------------------------------------------------
% List of figs, tables
%------------------------------------------------------------------------------
%\listoffigures
%\listoftables

%------------------------------------------------------------------------------
% List of abbreviations
%------------------------------------------------------------------------------
\pagebreak
\section*{List of Abbreviations}
\begin{tabular}{l l}
DUT & Device Under Test \\
\end{tabular}

\pagebreak
\pagenumbering{arabic}
\setcounter{page}{1}


%==============================================================================
% SEC: Intro
%==============================================================================
\section{Introduction}
\label{sec:intro}

This document presents the test procedure to be performed prior to the release of
every gateware version of the CONV-TTL-BLO~\cite{ctb-proj} board.

The purpose is to test all the basic features of the board prior to releasing
a new gateware version. The following features are tested:

\begin{itemize}
  \item basic pulse conversion and repetition on all channels
  \begin{itemize}
    \item TTL to TTL
    \item TTL to blocking
    \item blocking to TTL
    \item TTL-BAR to TTL-BAR
    \item TTL-BAR to blocking
    \item blocking to TTL-BAR
    \item TTL to TTL-BAR (basic pulse inversion)
  \end{itemize}
  \item no pulses generated on power-on
\end{itemize}

%==============================================================================
% SEC: Test preparation
%==============================================================================
\pagebreak
\section{Test preparation}
\label{sec:prep}

This section lists the steps to be taken prior to starting the actual test.
It is recommended to follow the steps listed in the following subsections \textbf{in
sequence}.

%==============================================================================
\subsection{Necessary equipment}
\label{sec:prep-equip}
%==============================================================================

\let \oldlabelitemi=\labelitemi
\let \oldlabelitemii=\labelitemii
\let \oldlabelitemiii=\labelitemiii
\let \oldlabelitemiv=\labelitemiv
\renewcommand{\labelitemi}{$\square$}
\renewcommand{\labelitemii}{$\square$}
\renewcommand{\labelitemiii}{$\square$}
\renewcommand{\labelitemiv}{$\square$}

\begin{itemize}
  \item \textbf{1x} Two-slot ELMA crate
  \item \textbf{1x} CONV-TTL-BLO
%    \begin{itemize}
%      \item \textbf{1x} DUT with gateware to be tested for release
%      \item \textbf{1x} with \textit{pulsetest} gateware programmed into its
%      flash memory
%    \end{itemize}
  \item \textbf{1x} CONV-TTL-BLO-RTM
  \item \textbf{1x} Pulse generator
  \item \textbf{1x} Oscilloscope
  \item \textbf{5x} Long LEMO cables
  \item \textbf{3x} Short LEMO cables
  \item \textbf{4x} BNC M / LEMO F adapters
  \item \textbf{4x} LEMO "Y" splitter plug
  \item \textbf{2x} LEMO 50~$\Omega$ terminations
\end{itemize}

%==============================================================================
\subsection{Oscilloscope configuration}
\label{sec:prep-osc}
%==============================================================================

\begin{figure}[h]
  \centerline{\includegraphics[width=\textwidth]{fig/IMG_2334.JPG}}
  \caption{Oscilloscope connections}
  \label{fig:osc-cfg}
\end{figure}

\begin{itemize}
  \item \textbf{Trigger on the rising-edge of the external trigger channel}
  \item Connect \textbf{1x BNC M / LEMO F adapter} to the oscilloscope's \textbf{external trigger channel}
  \item Connect \textbf{2x BNC M / LEMO F adapters} to oscilloscope \textbf{channels 1 and 2}
  \item Connect \textbf{2x LEMO "Y" splitter plugs} to these BNC/LEMO adapters
  \item Connect \textbf{2x 50~$\Omega$ terminations} to one side of each LEMO "Y" splitter
\end{itemize}

Note that any channel on the oscilloscope may be used, even though across this
document we use channels 1 and 2 (Figure~\ref{fig:osc-cfg}). The trigger may also be set for another channel,
it is not necessary to trigger on the external channel.

%==============================================================================
\subsection{Pulse generator configuration}
\label{sec:prep-pulse-gen}
%==============================================================================

\begin{figure}
  \centerline{\includegraphics[width=.5\textwidth]{fig/IMG_2330.JPG}}
  \caption{Pulse generator connection}
  \label{fig:pulse-gen-cfg}
\end{figure}

\begin{itemize}
  \item Connect \textbf{1x BNC M / LEMO F adapter} together with \textbf{1x LEMO "Y" splitter plug}
  to the \textbf{pulse generator's output}
  \item Connect one side of the \textbf{LEMO "Y" splitter plug} (the \textbf{oscilloscope trigger})
  to the \textbf{oscilloscope's external trigger input} (Figure~\ref{fig:pulse-gen-cfg})
  \item The other side (the \textbf{DUT trigger}) of the \textbf{LEMO "Y" splitter plug} will be used to trigger
  the DUT (Figure~\ref{fig:pulse-gen-cfg})
  \item If the pulse generator is configurable, configure it as follows:
    \begin{itemize}
      \item 2~$\mu$s pulses
      \item approx. 25~V on 50~$\Omega$ load
      \item 1 Hz frequency
    \end{itemize}
  \item Turn on the pulse generator
\end{itemize}


%==============================================================================
\subsection{Board connections}
\label{sec:prep-board}
%==============================================================================

\begin{itemize}
  \item Prepare the \textbf{two-slot ELMA crate}
  \item Plug in the \textbf{CONV-TTL-BLO} in \textbf{slot 1} on the \textbf{front
  part of the crate}, and the \textbf{RTM} in \textbf{slot 1} on the
  \textbf{rear part of the crate}
  \item Using \textbf{short LEMO cables}, make a \textbf{daisy-chain} of the
  \textbf{four INV-TTL channels} on the \textbf{front panel}
  \begin{itemize}
    \item \textbf{INV-TTL channel D OUT} to \textbf{INV-TTL channel C IN}
    \item \textbf{INV-TTL channel C OUT} to \textbf{INV-TTL channel B IN}
    \item \textbf{INV-TTL channel B OUT} to \textbf{INV-TTL channel A IN}
    \item Plug a \textbf{long LEMO cable} in the \textbf{INV-TTL channel A OUT}
    connector
  \end{itemize}
\end{itemize}

%==============================================================================
% SEC: Test procedure
%==============================================================================
\pagebreak
\section{Test procedure}
\label{sec:procedure}

\let \oldlabelenumi=\labelenumi
\let \oldlabelenumii=\labelenumii
\let \oldlabelenumiii=\labelenumiii
\let \oldlabelenumiv=\labelenumiv
\renewcommand{\labelenumi}{\oldlabelenumi     \ $\square$}
\renewcommand{\labelenumii}{\oldlabelenumii   \ $\square$}
\renewcommand{\labelenumiii}{\oldlabelenumiii \ $\square$}
\renewcommand{\labelenumiv}{\oldlabelenumiv   \ $\square$}

\renewcommand{\labelitemi}{\oldlabelitemi}
\renewcommand{\labelitemii}{\oldlabelitemii}
\renewcommand{\labelitemiii}{\oldlabelitemiii}
\renewcommand{\labelitemiv}{\oldlabelitemiv}

It is recommended to go through each of the following subsections in sequence
and follow the steps one by one, ticking on completion.

%==============================================================================
\subsection{MultiBoot}
\label{sec:proc-multiboot}
%==============================================================================
\begin{enumerate}
  \item \textbf{MultiBoot} the new gateware to \textbf{address 0x170000} in flash
    (use, for example, \textit{software/multiboot/multiboot.py})
\end{enumerate}

%==============================================================================
\subsection{TTL to blocking pulse conversion}
\label{sec:proc-ttl-blo}
%==============================================================================
\begin{enumerate}
  \item Make sure the \textbf{TTL switch} of the CONV-TTL-BLO is in the \textbf{TTL position (on)}
  \item Make sure the \textbf{glitch filter switch} is in the \textbf{OFF} position
  \item \label{item:ttl-proc} Repeat the following steps for \textbf{all six channels}, filling in the
    \textbf{table in Appendix~\ref{app:pulse-validation-ttl}}:
    \begin{enumerate}
      \item Connect the \textbf{DUT trigger} to the \textbf{front panel  INV-TTL channel D
        input connector}
      \item Connect the \textbf{INV-TTL channel A OUT} to the \textbf{front panel channel input}
      \item \label{item:ttl-meas-start} Connect the \textbf{front panel channel output} to \textbf{channel 1
        on the oscilloscope}
      \item Connect \textbf{a rear panel channel output} to \textbf{channel 2 on the oscilloscope}
      \item \label{item:ttl-meas-ttl-out} Check that the characteristics of the signal
        on \textbf{channel 1 of the oscilloscope} are as follows (Figure~\ref{fig:ttl-blo}):
        \begin{itemize}
          \item 1.2~$\mu$s
          \item 3.3~V
          \item less than 1.2~$\mu$s delay from trigger
        \end{itemize}
      \item \textbf{Tick} the \textbf{TTL column for the channel} on the \textbf{Front panel} side
        of the table in Appendix~\ref{app:pulse-validation-ttl} if they are
      \item \label{item:ttl-meas-blo-out} Check that the characteristics of the signals at the
        \textbf{rear panel} are as follows (Figure~\ref{fig:ttl-blo}):
        \begin{itemize}
          \item approx. 1.2~$\mu$s
          \item approx. 24~V
          \item less than 1.2~$\mu$s delay from trigger
        \end{itemize}
      \item \label{item:ttl-meas-end} \textbf{Tick} the \textbf{Blo} column for the channel
        on the \textbf{Front panel} side of the table in Appendix~\ref{app:pulse-validation-ttl}
        if they are
      \item Connect the \textbf{DUT trigger} to the CONV-TTL-BLO \textbf{channel 1 rear panel
        input connector}
      \item Repeat \textbf{steps \ref{item:ttl-meas-start} to \ref{item:ttl-meas-end}}, this time
        ticking the \textbf{TTL} and \textbf{Blo} columns on the \textbf{Rear panel} side of the
        table in Appendix~\ref{app:pulse-validation-ttl}
    \end{enumerate}
  \item Turn off power to the ELMA crate
  \item Change the \textbf{glitch filter switch} to the \textbf{ON position}
  \item Turn on power to the ELMA crate
  \item Repeat the steps under step~\ref{item:ttl-proc}, filling in the table in
    Appendix~\ref{app:pulse-validation-ttl-gf}
  \item Turn off power to the ELMA crate
  \item Change the \textbf{glitch filter switch} back to the \textbf{OFF position}
\end{enumerate}

\begin{figure}
  \centerline{\includegraphics[width=.8\textwidth]{fig/ttl-blo.png}}
  \caption{TTL to blocking conversion waveforms}
  \label{fig:ttl-blo}
\end{figure}

%==============================================================================
\subsection{TTL-BAR to blocking pulse conversion}
\label{sec:proc-ttlbar-blo}
%==============================================================================
\begin{figure}
  \centerline{\includegraphics[width=.8\textwidth]{fig/ttlbar-blo.png}}
  \caption{TTL-BAR to blocking conversion waveforms}
  \label{fig:ttlbar-blo}
\end{figure}

\begin{enumerate}
  \item Turn off power and change the \textbf{TTL switch} to \textbf{TTL-BAR position (OFF)}
  \item \label{item:ttlbar-proc} Repeat the following steps for \textbf{all six channels}, filling in the
    \textbf{table in Appendix~\ref{app:pulse-validation-ttlbar}}:
    \begin{enumerate}
      \item Connect the \textbf{DUT trigger} to the \textbf{front panel  INV-TTL channel C
        input connector}
      \item Connect the \textbf{INV-TTL channel A OUT} to the \textbf{front panel channel input}
      \item \label{item:ttlbar-meas-start} Connect the \textbf{front panel channel output} to \textbf{channel 1
        on the oscilloscope}
      \item Connect \textbf{a rear panel channel output} to \textbf{channel 2 on the oscilloscope}
      \item \label{item:ttlbar-meas-ttl-out} Check that the characteristics of the signal
        on \textbf{channel 1 of the oscilloscope} are as follows (Figure~\ref{fig:ttlbar-blo}):
        \begin{itemize}
          \item 1.2~$\mu$s
          \item 3.3~V
          \item less than 1.2~$\mu$s delay from trigger
        \end{itemize}
      \item \textbf{Tick} the \textbf{TTL column for the channel} on the \textbf{Front panel} side
        of the table in Appendix~\ref{app:pulse-validation-ttlbar} if they are
      \item \label{item:ttlbar-meas-blo-out} Check that the characteristics of the signals at the
        \textbf{rear panel} are as follows (Figure~\ref{fig:ttlbar-blo}):
        \begin{itemize}
          \item approx. 1.2~$\mu$s
          \item approx. 24~V
          \item less than 1.2~$\mu$s delay from trigger
        \end{itemize}
      \item \label{item:ttlbar-meas-end} \textbf{Tick} the \textbf{Blo} column for the channel
        on the \textbf{Front panel} side of the table in Appendix~\ref{app:pulse-validation-ttlbar}
        if they are
      \item Connect the \textbf{DUT trigger} to the CONV-TTL-BLO \textbf{channel 1 rear panel
        input connector}
      \item Repeat \textbf{steps \ref{item:ttlbar-meas-start} to \ref{item:ttlbar-meas-end}}, this time
        ticking the \textbf{TTL} and \textbf{Blo} columns on the \textbf{Rear panel} side of the
        table in Appendix~\ref{app:pulse-validation-ttlbar}
    \end{enumerate}
  \item Turn off power to the ELMA crate
  \item Change the \textbf{glitch filter switch} to the \textbf{ON position}
  \item Turn on power to the ELMA crate
  \item Repeat the steps under step~\ref{item:ttlbar-proc}, filling in the table in
    Appendix~\ref{app:pulse-validation-ttlbar-gf}
  \item Turn off power to the ELMA crate
  \item Change the \textbf{glitch filter switch} back to the \textbf{OFF position}
\end{enumerate}

%==============================================================================
\subsection{Power-on tests (TTL-BAR)}
\label{sec:proc-power-on-ttlbar}
%==============================================================================
\begin{enumerate}
	\item Turn off the ELMA crate
  \item Remove \textbf{all cables} from the \textbf{TTL and blocking inputs}
  \item Make sure the TTL switch is \textbf{OFF}
  \item \label{item:ttlbar-poweron} Follow the following procedure:
  \begin{enumerate}
	  \item Configure the oscilloscope to trigger on the \textbf{falling edge} of the 
	    \textbf{channel 1} input, at \textbf{approx. 2.5~V}
	  \item Connect the \textbf{output of TTL channel 1} to \textbf{channel 1} on the
	  oscilloscope
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    TTL-BAR output with an unconnected TTL-BAR input)
	  \item Turn off ELMA crate
	  \item Connect \textbf{1x short LEMO cable} from \textbf{INV-TTL channel A output} to
	    \textbf{TTL channel 6 input}
	  \item Connect the \textbf{output of TTL channel 6} to the \textbf{oscilloscope
	    trigger}
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    TTL-BAR output with a connected TTL-BAR input)
	  \item Turn off ELMA crate
	  \item Configure the oscilloscope to trigger on the \textbf{rising edge} of the 
	    \textbf{channel 1} input
	  \item Connect \textbf{1x long LEMO cable} from \textbf{blocking output channel 1}
	  to the \textbf{oscilloscope trigger}
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    blocking output with an unconnected TTL-BAR input)  
	  \item Turn off ELMA crate
	  \item Connect \textbf{1x long LEMO cable} from \textbf{blocking output channel 6}
	  to \textbf{oscilloscope trigger}
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    blocking output with a connected TTL-BAR input)
	  \item Turn off ELMA crate
  \end{enumerate}    
  \item Flip the \textbf{glitch filter switch} to the \textbf{ON position}
  \item Follow the procedure in step~\ref{item:ttlbar-poweron}
  \item Power-cycle the ELMA crate
  \item Run the \textit{rdchxpcr.py} script (\textit{software/diag/rdchxpcr.py})
    and confirm that all channel counters are 0
  \item Run the \textit{rdtb.py} script (\textit{software/diag/timetag/rdtb.py})
    and confirm that no pulses were stored to the timetag buffer
  \item Turn off ELMA crate
  \item Flip the \textbf{glitch filter switch} back to the \textbf{OFF position}
\end{enumerate}
  
  
  
%==============================================================================
\subsection{Power-on tests (TTL)}
\label{sec:proc-power-on-ttl}
%==============================================================================
\begin{enumerate}
	\item Turn off the ELMA crate
  \item Remove \textbf{all cables} from the \textbf{TTL and blocking inputs}
  \item Put the TTL switch in the \textbf{ON} position
  \item \label{item:ttl-poweron} Follow the following procedure:
  \begin{enumerate}
	  \item Configure the oscilloscope to trigger on the \textbf{rising edge} of the 
	    \textbf{channel 1} input
	  \item Connect the \textbf{output of TTL channel 1} to \textbf{channel 1} on
	  the oscilloscope
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    TTL output with an unconnected TTL input)
	  \item Turn off ELMA crate
	  \item Connect \textbf{1x short LEMO cable} from \textbf{INV-TTL channel B output} to
	  \textbf{INV-TTL channel A input}
	  \item Connect \textbf{1x short LEMO cable} from \textbf{INV-TTL channel A} to
	    \textbf{TTL channel 6 input}
	  \item Connect the \textbf{output of TTL channel 6} to \textbf{channel 1} on the
	  oscilloscope
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    TTL output with a connected TTL input)
	  \item Turn off ELMA crate
	  \item Connect \textbf{1x long LEMO cable} from \textbf{blocking output channel 1}
	  to \textbf{oscilloscope trigger}
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	    blocking output with an unconnected TTL input)  
	  \item Turn off ELMA crate
	  \item Connect \textbf{1x long LEMO cable} from \textbf{blocking output channel 6}
	  to the \textbf{oscilloscope trigger}
	  \item Turn on ELMA crate
	  \item Make sure the oscilloscope does not trigger (no pulse is generated on the
	  blocking output with a connected TTL input)
	  \item Turn off ELMA crate
  \end{enumerate}    
  \item Flip the \textbf{glitch filter switch} to the \textbf{ON position}
  \item Follow the procedure in step~\ref{item:ttl-poweron}
  \item Power-cycle the ELMA crate
  \item Run the \textit{rdchxpcr.py} script (\textit{software/diag/rdchxpcr.py})
    and confirm that all channel counters are 0
  \item Run the \textit{rdtb.py} script (\textit{software/diag/timetag/rdtb.py})
    and confirm that no pulses were stored to the timetag buffer
  \item Turn off ELMA crate
  \item Flip the \textbf{glitch filter switch} back to the \textbf{OFF position}
\end{enumerate}


%==============================================================================
% APPENDICES
%==============================================================================
\pagebreak

\begin{appendices}

%==============================================================================
% APP: TTL pulse validation table
%==============================================================================
\section{Pulse conversion validation table (TTL, without glitch filter)}
\label{app:pulse-validation-ttl}

\centerline{
\resizebox{.8\textwidth}{!}{
\begin{tabular}{|l|*{2}{c}|*{2}{c}|}
  \hline
  \textbf{Input} & \multicolumn{2}{c|}{\textbf{Front panel}} & \multicolumn{2}{c|}{\textbf{Rear panel}} \\
  \hline
  \textbf{Output} & \textbf{TTL} & \textbf{Blo} & \textbf{TTL} & \textbf{Blo}       \\
  \hline
  \textbf{CH1} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH2} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH3} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH4} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH5} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH6} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \hline
\end{tabular}
}
}

\vspace*{11pt}

Instructions for filling in the table:

\begin{itemize}
  \item Following the test procedure in Section~\ref{sec:proc-ttl-blo} (under step~\ref{item:ttl-proc}),
  tick each box if the output is as expected
  \item Start with inputting a signal from the pulse generator on the front panel,
  then after validation, change the input to the rear panel
  \item Tick the \textbf{TTL} boxes if the TTL output on the front panel is as specified
  in step \ref{item:ttl-meas-ttl-out}
  \item Tick the \textbf{Blo} boxes if the blocking output on the rear panel
  is as specified in step \ref{item:ttl-meas-blo-out}
\end{itemize}

%==============================================================================
% APP: TTL pulse validation table, GF on
%==============================================================================
\pagebreak
\section{Pulse conversion validation table (TTL, with glitch filter)}
\label{app:pulse-validation-ttl-gf}

\centerline{
\resizebox{.8\textwidth}{!}{
\begin{tabular}{|l|*{2}{c}|*{2}{c}|}
  \hline
  \textbf{Input} & \multicolumn{2}{c|}{\textbf{Front panel}} & \multicolumn{2}{c|}{\textbf{Rear panel}} \\
  \hline
  \textbf{Output} & \textbf{TTL} & \textbf{Blo} & \textbf{TTL} & \textbf{Blo}       \\
  \hline
  \textbf{CH1} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH2} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH3} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH4} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH5} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH6} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \hline
\end{tabular}
}
}

\vspace*{11pt}

Instructions for filling in the table:

\begin{itemize}
  \item Make sure the glitch filter is \textbf{ON}
  \item Following the test procedure in Section~\ref{sec:proc-ttl-blo} (under step~\ref{item:ttl-proc}),
  tick each box if the output is as expected
  \item Start with inputting a signal from the pulse generator on the front panel,
  then after validation, change the input to the rear panel
  \item Tick the \textbf{TTL} boxes if the TTL output on the front panel is as specified
  in step \ref{item:ttl-meas-ttl-out}
  \item Tick the \textbf{Blo} boxes if the blocking output on the rear panel
  is as specified in step \ref{item:ttl-meas-blo-out}
\end{itemize}

%==============================================================================
% APP: TTL-BAR pulse validation table
%==============================================================================
\pagebreak
\section{Pulse conversion validation table (TTL-BAR, without glitch filter)}
\label{app:pulse-validation-ttlbar}

\centerline{
\resizebox{.8\textwidth}{!}{
\begin{tabular}{|l|*{2}{c}|*{2}{c}|}
  \hline
  \textbf{Input} & \multicolumn{2}{c|}{\textbf{Front panel}} & \multicolumn{2}{c|}{\textbf{Rear panel}} \\
  \hline
  \textbf{Output} & \textbf{TTL} & \textbf{Blo} & \textbf{TTL} & \textbf{Blo}       \\
  \hline
  \textbf{CH1} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH2} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH3} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH4} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH5} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH6} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \hline
\end{tabular}
}
}

\vspace*{11pt}

Instructions for filling in the table:

\begin{itemize}
  \item Following the test procedure in Section~\ref{sec:proc-ttlbar-blo} (under step~\ref{item:ttlbar-proc}),
  tick each box if the output is as expected
  \item Start with inputting a signal from the pulse generator on the front panel,
  then after validation, change the input to the rear panel
  \item Tick the \textbf{TTL} boxes if the TTL-BAR output on the front panel is as specified
  in step \ref{item:ttlbar-meas-ttl-out}
  \item Tick the \textbf{Blo} boxes if the blocking output on the rear panel
  is as specified in step \ref{item:ttlbar-meas-blo-out}
\end{itemize}

%==============================================================================
% APP: TTL-BAR pulse validation table, GF on
%==============================================================================
\pagebreak
\section{Pulse conversion validation table (TTL-BAR, with glitch filter)}
\label{app:pulse-validation-ttlbar-gf}

\centerline{
\resizebox{.8\textwidth}{!}{
\begin{tabular}{|l|*{2}{c}|*{2}{c}|}
  \hline
  \textbf{Input} & \multicolumn{2}{c|}{\textbf{Front panel}} & \multicolumn{2}{c|}{\textbf{Rear panel}} \\
  \hline
  \textbf{Output} & \textbf{TTL} & \textbf{Blo} & \textbf{TTL} & \textbf{Blo}       \\
  \hline
  \textbf{CH1} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH2} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH3} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH4} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH5} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \textbf{CH6} & $\square$ & $\square$ & $\square$ & $\square$ \\
  \hline
\end{tabular}
}
}

\vspace*{11pt}

Instructions for filling in the table:

\begin{itemize}
  \item Make sure the glitch filter is \textbf{ON}
  \item Following the test procedure in Section~\ref{sec:proc-ttlbar-blo} (under step~\ref{item:ttlbar-proc}),
  tick each box if the output is as expected
  \item Start with inputting a signal from the pulse generator on the front panel,
  then after validation, change the input to the rear panel
  \item Tick the \textbf{TTL} boxes if the TTL-BAR output on the front panel is as specified
  in step \ref{item:ttlbar-meas-ttl-out}
  \item Tick the \textbf{Blo} boxes if the blocking output on the rear panel
  is as specified in step \ref{item:ttlbar-meas-blo-out}
\end{itemize}
\end{appendices}


%==============================================================================
% Bibliography
%==============================================================================
\pagebreak
\bibliographystyle{ieeetr}
\bibliography{gw-test-procedure}

\end{document}
