From cd81bddd4b129dd02e653637d1e8b3f5c4b6d816 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Wed, 21 Jul 2010 08:49:28 +0000 Subject: [PATCH] *** empty log message *** --- ipudataformat.tex | 2 +- lvl1trigger.tex | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/ipudataformat.tex b/ipudataformat.tex index 58133bd..b299083 100755 --- a/ipudataformat.tex +++ b/ipudataformat.tex @@ -254,7 +254,7 @@ The first bits (16 -- 19) are generated by checks performed in every stage of da 23 & single broken event & event data corrupted, next event most likely not affected. Set by user. \\ 24 & Ethernet link broken & Ethernet link to send data is down. Data has been lost. \\ 25 & SubEvent buffer almost full & The buffer to store events in the Ethernet interface is almost full, a stop within the next few events is likely \\ -26 & & \\ +26 & Ethernet error & The ethernet interface found partially corrupted data and discarded this event. Only partial data has been transmitted to the EB. \\ 27 & & \\ 28 & & \\ 29 & & \\ diff --git a/lvl1trigger.tex b/lvl1trigger.tex index d2d850d..9b2c719 100755 --- a/lvl1trigger.tex +++ b/lvl1trigger.tex @@ -108,12 +108,38 @@ If deleting the data is not possible any more, the TTL trigger is ignored by the \label{fig:triggerinterface} \end{figure} +\begin{description} + \item [\portname{Lvl1\_\-Trg\_\-Data\_\-Valid\_\-Out}] Trigger information, number, code and type are valid. The falling edge marks the sending of busy release to the CTS - might be used to reset the internal trigger state machines of the FEE. + \item [\portname{Lvl1\_\-Valid\_\-Timing\_\-Trg\_\-Out}] A timing trigger has been received and the internal state machine marked it as valid. Strobe signal, typically set 60~ns clock cycles after the trigger input goes high. Should be used to start state machines to handle normal triggers. + \item [\portname{Lvl1\_\-Valid\_\-Notiming\_\-Trg\_\-Out}] A valid timing-trigger-less LVL1 trigger has been received. Strobe signal, typically high in the same clock cycle as \portname{Lvl1\_\-Trg\_\-Data\_\-Valid\_\-Out} goes high. Should be used to start state machines to handle TTL triggers. + \item [\portname{Lvl1\_\-Invalid\_\-Trg\_\-Out}] The current LVL1 trigger is invalid, there was no timing trigger + + \item [\portname{Lvl1\_\-Trg\_\-Number\_\-Out}] (16 bit) Trigger number. + \item [\portname{Lvl1\_\-Trg\_\-Code\_\-Out}] (8 bit) A random code generated by CTS that has to be stored and put to the IPU data stream. + \item [\portname{Lvl1\_\-Trg\_\-Information\_\-Out}] (24 bit) Additional information about trigger as explained in the corresponding section. + \item [\portname{Lvl1\_\-Trg\_\-Type\_\-Out}] (4 bit) The trigger type. + \item [\portname{Lvl1\_\-Int\_\-Trg\_\-Number\_\-Out}] (16 bit) Internally generated trigger number. This number is always valid, despite within 50 ns after the falling edge of \portname{Lvl1\_\-Trg\_\-Data\_\-Valid\_\-Out}. + + \item [\portname{Lvl1\_\-Error\_\-Pattern\_\-In} / \portname{Fee\_\-Trg\_\-Statusbits\_\-In}] (32 bit) Error and status bits as explained in the corresponding section. Must be valid when \portname{Lvl1\_\-Trg\_\-Release} is high. + \item [\portname{Lvl1\_\-Trg\_\-Release\_\-In} / \portname{Fee\_\-Trg\_\-Release\_\-In}] Releases the trigger busy. Has to be set in any case where \portname{Lvl1\_\-Trg\_\-Data\_\-Valid\_\-Out} is high. Length must be at least one clock cycle. + + \item [\portname{Lvl1\_\-Spike\_\-Detected\_\-Out}] A spike on the timing trigger input has been detected. Stays high until the next busy release is sent. + \item [\portname{Lvl1\_\-Missing\_\-TmgTrg\_\-Out}] A LVL1 trigger without preceeding timing trigger has been found. Stays high until the next busy release is sent. + \item [\portname{Lvl1\_\-TmgTrg\_\-Timeout\_\-Out}] Time between timing trigger and LVL1 trigger was very long (>20us). Stays high until the next busy release is sent. + \item [\portname{Lvl1\_\-Multiple\_\-TmgTrg\_\-Out}] There have been multiple timing triggers on the input Stays high until the next busy release is sent. + \item [\portname{Lvl1\_\-Spurious\_\-TmgTrg\_\-Out}] There was a timing trigger before a TTL trigger. + +\end{description} + + + + % \begin{description} % % \item [\portname{Lvl1\_\-valid\_\-timing\_\-trg\_\-out}] A timing trigger has been received and the internal state machine marked it as valid. Typically set 2 to 5 clock cycles after \portname{trg\_\-timing\_\-trg\_\-received\_\-in} was high. % \item [\portname{Lvl1\_\-valid\_\-notiming\_\-trg\_\-out}] A valid timing-trigger-less LVL1 trigger has been received. Typically high 1 to 2 clock cycles after the rising edge of \portname{Lvl1\_\-trg\_\-data\_\-valid\_\-out}. % \item [\portname{Lvl1\_\-invalid\_\-trg\_\-out}] A trigger (either timing trigger or LVL1 trigger) has been received which has been marked invalid by the internal state machine. E.g. to timing triggers without a LVL1 trigger or a LVL1 trigger without preceeding timing trigger has been detected. -% \item [\portname{Lvl1\_\-trg\_\-type\_\-out}] The trigger type, similar to the old system. +% % \item [\portname{Lvl1\_\-trg\_\-data\_\-valid\_\-out}] Rising edge marks that a LVL1 trigger information has been received. Falling edge comes after user set \portname{Lvl1\_\-Trg\_\-Release}. While high, all trigger information ports, namely \portname{Lvl1\_\-Trg\_\-Type}, \portname{Lvl1\_\-Trg\_\-Number}, \portname{Lvl1\_\-Trg\_\-Code} and \portname{Lvl1\_\-Trg\_\-In\-for\-ma\-tion} are valid. % \item [\portname{Lvl1\_\-trg\_\-number\_\-out}] (16 bit) Trigger number. % \item [\portname{Lvl1\_\-trg\_\-code\_\-out}] (8 bit) A random code generated by CTS that has to be stored and put to the IPU data stream. -- 2.43.0