\item[5XXX] use with General Purpose AddOn - with NIM connectors
\item[6XXX] use with Nxyter
\item[7XXX] use with 32PinAddOn
- \item[8XXX] uses RX clock as main internal clock
+ \item[9XXX] use with ADC AddOn
\item[X0nX] contains $2^n$ TDC channels, single edge, n<8
\item[X1nX] contains $2^n$ TDC channels, double edge, n<8
\item[X2XX] contains a network hub
\item[X8XX] Double edge TDC realized with two single edge channels
\item[XX8X] Non-TDC (because of bad choice of encoding)
\item[XX9X] for MVD converter board 2013
+ \item[XXX1] uses RX clock as main internal clock
\end{description*}
\end{description*}
\item 0x44 for a design for FPGA 4 only
\item 0x48 TDC design for peripheral FPGA
\item 0x49 peripheral FPGA with Nxyter AddOn
+ \item 0x4b peripheral FPGA with ADC AddOn
\item 0x4d peripheral FPGA for MAPS read-out
\item 0x50 CBM-Rich
\end{itemize*}
--- /dev/null
+\section{Data File Format}
+The data in the hld file is binary data, organized in 32 Bit words. For historic reasons, some parts are big endian, some are little endian - check the existing data reading code for their detection method.
+Each event has an event header, followed by an arbitrary number of subevents. The subevents contain a header and a data block, consisting of subsubevents, which are data blocks from individual FPGAs. The structure is shown in figures \ref{fig:hldfile} and \ref{fig:hldheaders}.
+
+
+\begin{figure}[!ht]
+ \centering
+ \includegraphics[width=1.0\textwidth]{figures/hldfile.png}
+ \caption{The structure of the hld file.}
+ \label{fig:hldfile}
+\end{figure}
+
+\begin{figure}[!ht]
+ \centering
+ \includegraphics[width=1.0\textwidth]{figures/hldformat.png}
+ \caption{The structure of the event header and sub-event inside the hld file.}
+ \label{fig:hldheaders}
+\end{figure}
\ No newline at end of file
\cleardoublepage
\input{trb3qs_part}
-
+\input{hldfileformat}
\cleardoublepage
\part{Synchronous TrbNet}
\end{figure}
-\begin{figure}[!ht]
- \centering
- \includegraphics[width=1.0\textwidth]{trb3qs_img/TDCregs}
- \caption{TDC settings panel}
-\end{figure}
-
-\begin{figure}[!ht]
- \centering
- \includegraphics[width=1.0\textwidth]{trb3qs_img/GbEregs}
- \caption{Gigabit Ethernet settings panel}
-\end{figure}
-
-\begin{figure}[!ht]
- \centering
- \includegraphics[width=1.0\textwidth]{trb3qs_img/Threshreg}
- \caption{Threshold settings panel}
-\end{figure}
-