--- /dev/null
+\begin{figure}[hp]
+ \centering
+ \includegraphics[width=.9\textheight,page=1,angle=90]{ebmonitordescription.pdf}
+ \caption[EB Monitor Guide 1]{EB Monitor Guide 1}
+ \label{fig:ebmonitorguide1}
+\end{figure}
+\begin{figure}[hp]
+ \centering
+ \includegraphics[width=.9\textheight,page=2,angle=90]{ebmonitordescription.pdf}
+ \caption[EB Monitor Guide 2]{EB Monitor Guide 2}
+ \label{fig:ebmonitorguide2}
+\end{figure}
+\begin{figure}[hp]
+ \centering
+ \includegraphics[width=.9\textheight,page=3,angle=90]{ebmonitordescription.pdf}
+ \caption[EB Monitor Guide 3]{EB Monitor Guide 3}
+ \label{fig:ebmonitorguide3}
+\end{figure}
+\begin{figure}[hp]
+ \centering
+ \includegraphics[width=.9\textheight,page=4,angle=90]{ebmonitordescription.pdf}
+ \caption[EB Monitor Guide 4]{EB Monitor Guide 4}
+ \label{fig:ebmonitorguide4}
+\end{figure}
7200 & LVL1 release status & Release-flag for each of the data channel \\
7201 & Data Handler Debug & Debug register of the data handler \\
7202 & IPU Handler Status & IPU handler status register (see table \ref{endpointipuhandlerstatus})\\
+7300 - 730F & Data Full Time & The total time in microseconds during which the corresponding data buffer was almost full \\
+7310 & LVL1 Full Time & The total time in microseconds during which the LVL1 buffer was almost full \\
+7311 & Buffer Idle Time & The total time in microseconds during which the data handler was idle \\
+7312 & Buffer Working time & The total time in microseconds during which the data handler was working \\
+7313 & IPU Idle Time & The total time in microseconds during which the IPU handler was idle \\
+7314 & IPU Working Time & The total time in microseconds during which the IPU handler was working \\
+7315 & IPU Waiting Time & The total time in microseconds during which the IPU handler was waiting for the network to accept data \\
\hline
\end{tabularx}
\caption{Register Map of the full endpoint containing data handlers.}
\label{endpointipuhandlerstatus}
\end{center}
\end{table}
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{IPU Data Format}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-Each word sent by an OEP can be of three types as shown in table \ref{MDCDataFormat}:
+Each word sent by an OEP can be of three types as shown in table \ref{MDCDataFormat}:
\begin{itemize}
- \item The standard, compressed data format with two hits in one data word
+ \item The standard, compressed data format with two hits in one data word
\item The long, debug format, with one word per hit.
\item Status words which can be of several types, see table \ref{MDCDataFormatStatusWords}
\end{itemize}
Single Hit 1 & 0x08 & Bit 23 -- 0: Number of single, double or triple hit 1 & 1 \\
Single Hit 0 & 0x09 & Bit 23 -- 0: Number of single, double or triple hit 0 & 1 \\
Retransmit Req. & 0x0A & Bit 11 -- 0: Number of retransmit requests sent, Bit 23 -- 12: Number of retransmit requests received & 1\\
+Words & 0x0B & Bit 23 -- 0: Number of words given to data handler & 1\\
Dummy Word & 0x1E & Dummy data word. Sent in every event when selected by CCR2 Bit 22 (see table \ref{MDCCommonCtrlReg2}). Bit 23 -- 16: Lower 8 bit of trigger number. Bit 11 -- 0: Word counter & \\
Debug Word & 0x1F & Debug word. Sent in every event when selected by CCR2 Bit 30 (see table \ref{MDCCommonCtrlReg2}). Bit 15 -- 0: Trigger number & \\
\hline
8000 - 803F & ADC & Voltage monitoring ADC. see table \ref{MDCOEPADCMemoryMap} \\
9000 - 90FF & Status & Status of the various state machines and control signals \\
9100 - 91FF & Statistics & Various statistics regarding data and MBO status. For details see table \ref{MDCDataFormatStatusWords}. N.B. in these registers the cummulative values are shown. \\
+9200 -
A000 - A0FF & Config. Mem. & Configuration memory for thresholds and TDC settings \\
D000 & SPI Status Reg. & see section SPI Flash \\
D001 & SPI Control Reg. & see section SPI Flash \\
15 & reboot FPGA & reboot OEP\\
14 -- 11 & reserved & n/a\\
10 & reset sequence counter & reset seq. counter\\
-9 -- 6 & reserved & n/a\\
+9 & reinitialize MBO \\
+8 -- 6 & reserved & n/a\\
5 & reset status registers / error counters & \\
4 & reset persistent error flags & \\
3 & master reset & n/a\\
\item[0x9114: Waiting Time] Timer. Counts how long the trigger handler state machine waits for the data handler. I.e. when buffers are almost full or waiting for the LVL1 trigger information. Values are given in microseconds.
\end{description}
+% STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_fifo_almost_full(addr));
+% STATISTICS_READY_OUT <= '1';
+% STATISTICS_UNKNOWN_OUT <= '0';
+% elsif addr >= 16 and addr <= 21 then
+% case addr is
+% when 16 => STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_lvl1_almost_full);
+% when 17 => STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_lvl1_idle);
+% when 18 => STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_lvl1_working);
+% when 19 => STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_ipu_idle);
+% when 20 => STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_ipu_working);
+% when 21 => STATISTICS_DATA_OUT <= x"00" & std_logic_vector(timer_ipu_waiting);
+% end case;
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Hardware}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
One voltage regulator block on the FanPW is shown in figure \ref{fanpw}. The position of each of the five potentiometers is shown.
-The suggested voltage settings are:
+The suggested voltage settings are:
\begin{itemize}
\item 6V: Set to 5.85V, resp. 6.2V due to heavy noise on power cable
\item 3.8V: Set to 3.8V, resp. 4.1V
\includegraphics[width=.7\textwidth]{fanpw_poti.png}
\caption{FanPW potentiometer positions.}
\label{fanpw}
-\end{figure}
+\end{figure}