Skip to content

Commit 7d75107

Browse files
freidtshahor02
authored andcommitted
Updated of the ALPIDE Protocol Extension definitions for RU FW v1.22
1 parent b257056 commit 7d75107

1 file changed

Lines changed: 65 additions & 65 deletions

File tree

  • Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction

Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction/DecodingStat.h

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -34,46 +34,46 @@ struct ChipStat {
3434
};
3535

3636
enum DecErrors : int {
37-
BusyViolation, // Busy violation
38-
DataOverrun, // Data overrun
39-
Fatal, // Fatal (?)
40-
BusyOn, // Busy On
41-
BusyOff, // Busy Off
42-
TruncatedChipEmpty, // Data was truncated after ChipEmpty
43-
TruncatedChipHeader, // Data was truncated after ChipHeader
44-
TruncatedRegion, // Data was truncated after Region record
45-
TruncatedLondData, // Data was truncated in the LongData record
46-
WrongDataLongPattern, // LongData pattern has highest bit set
47-
NoDataFound, // Region is not followed by Short or Long data
48-
UnknownWord, // Unknown word was seen
49-
RepeatingPixel, // Same pixel fired more than once
50-
WrongRow, // Non-existing row decoded
51-
APE_STRIP, // lane data stripped for this chip event (behaviour changed with RU FW v1.16.0, for general APE behaviour see https://alice.its.cern.ch/jira/browse/O2-1717)
52-
APE_RESERVED_F3, // reserved F3
53-
APE_DET_TIMEOUT, // detector timeout (FATAL)
54-
APE_OOT_START, // 8b10b OOT (FATAL, start)
55-
APE_PROTOCOL_ERROR, // event protocol error marker (FATAL, start)
56-
APE_LANE_FIFO_OVERFLOW_ERROR, // lane FIFO overflow error (FATAL)
57-
APE_FSM_ERROR, // FSM error (FATAL, SEU error, reached an unknown state)
58-
APE_OCCUPANCY_RATE_LIMIT, // pending detector events limit (FATAL)
59-
APE_OCCUPANCY_RATE_LIMIT_2, // pending detector events limit in packager(FATAL)
60-
APE_LANE_PROTOCOL_ERROR, // lane protocol error
61-
APE_RESERVED_FC, // reserved FC
62-
APE_ERROR_NON_CRITICAL_BYTE, // Error in non critical byte
63-
APE_OOT_NON_CRITICAL, // OOT non-critical
64-
WrongDColOrder, // DColumns non increasing
65-
InterleavedChipData, // Chip data interleaved on the cable
66-
TruncatedBuffer, // truncated buffer, 0 padding
67-
TrailerAfterHeader, // trailer seen after header w/o FE of FD set
68-
FlushedIncomplete, // ALPIDE MEB was flushed by the busy handling
69-
StrobeExtended, // ALPIDE received a second trigger while the strobe was still open
37+
BusyViolation, // Busy violation
38+
DataOverrun, // Data overrun
39+
Fatal, // Fatal (ALPIDE trigger fifo overflow, trigger-event matching compromised)
40+
BusyOn, // Busy On
41+
BusyOff, // Busy Off
42+
TruncatedChipEmpty, // Data was truncated after ChipEmpty
43+
TruncatedChipHeader, // Data was truncated after ChipHeader
44+
TruncatedRegion, // Data was truncated after Region record
45+
TruncatedLondData, // Data was truncated in the LongData record
46+
WrongDataLongPattern, // LongData pattern has highest bit set
47+
NoDataFound, // Region is not followed by Short or Long data
48+
UnknownWord, // Unknown word was seen
49+
RepeatingPixel, // Same pixel fired more than once
50+
WrongRow, // Non-existing row decoded
51+
APE_STRIP_START, // 0xF2 - Lane data stripped for this chip event (behaviour changed with RU FW v1.16.0, for general APE behaviour see https://alice.its.cern.ch/jira/browse/O2-1717)
52+
APE_ILLEGAL_CHIPID, // 0xF3 - Chip ID jumped downwards within an ROF on a OB module (FATAL)
53+
APE_DET_TIMEOUT, // 0xF4 - Detector timeout (FATAL)
54+
APE_OOT, // 0xF5 - 8b10b OOT (FATAL, start)
55+
APE_PROTOCOL_ERROR, // 0xF6 - Event protocol error marker (FATAL, start)
56+
APE_LANE_FIFO_OVERFLOW_ERROR, // 0xF7 - Lane FIFO overflow error (FATAL)
57+
APE_FSM_ERROR, // 0xF8 - FSM error (FATAL, SEU error, reached an unknown state)
58+
APE_PENDING_DETECTOR_EVENT_LIMIT, // 0xF9 - Pending detector events limit (FATAL)
59+
APE_PENDING_LANE_EVENT_LIMIT, // 0xFA - Pending detector events limit in packager (FATAL)
60+
APE_O2N_ERROR, // 0xFB - Lane protocol error (FATAL)
61+
APE_RATE_MISSING_TRG_ERROR, // 0xFC - Received start of event before trigger (FATAL)
62+
APE_PE_DATA_MISSING, // 0xFD - Error in non critical byte
63+
APE_OOT_DATA_MISSING, // 0xFE - OOT non-critical
64+
WrongDColOrder, // DColumns non increasing
65+
InterleavedChipData, // Chip data interleaved on the cable
66+
TruncatedBuffer, // Truncated buffer, 0 padding
67+
TrailerAfterHeader, // Trailer seen after header w/o FE of FD set
68+
FlushedIncomplete, // ALPIDE MEB was flushed by the busy handling
69+
StrobeExtended, // ALPIDE received a second trigger while the strobe was still open
7070
NErrorsDefined
7171
};
7272

7373
static constexpr std::array<std::string_view, NErrorsDefined> ErrNames = {
7474
"BusyViolation flag ON", // BusyViolation
7575
"DataOverrun flag ON", // DataOverrun
76-
"Fatal flag ON", // Fatal
76+
"Fatal flag ON", // Fatal (ALPIDE trigger fifo overflow, trigger-event matching compromised)
7777
"BusyON", // BusyOn
7878
"BusyOFF", // BusyOff
7979
"Data truncated after ChipEmpty", // TruncatedChipEmpty
@@ -85,31 +85,31 @@ struct ChipStat {
8585
"Unknown word", // UnknownWord
8686
"Same pixel fired multiple times", // RepeatingPixel
8787
"Non-existing row decoded", // WrongRow
88-
"APE_STRIP", // lane data stripped for this chip event (behaviour changed with RU FW v1.16.0, for general APE behaviour see https://alice.its.cern.ch/jira/browse/O2-1717)
89-
"APE_RESERVED_F3", // reserved F3
90-
"APE_DET_TIMEOUT", // detector timeout (FATAL)
91-
"APE_OOT_START", // 8b10b OOT (FATAL, start)
92-
"APE_PROTOCOL_ERROR", // event event protocol error marker (FATAL, start)
93-
"APE_LANE_FIFO_OVERFLOW_ERROR", // lane FIFO overflow error (FATAL)
94-
"APE_FSM_ERROR", // FSM error (FATAL, SEU error, reached an unknown state)
95-
"APE_OCCUPANCY_RATE_LIMIT", // pending detector events limit (FATAL)
96-
"APE_OCCUPANCY_RATE_LIMIT_2", // pending detector events limit in packager(FATAL)
97-
"APE_LANE_PROTOCOL_ERROR", // lane protocol error
98-
"APE_RESERVED_FC", // reserved
99-
"APE_ERROR_IN_NON_CRITICAL_BYTE", // Error in non critical byte
100-
"APE_OOT_NON_CRITICAL", // OOT non-critical
88+
"APE_STRIP_START", // 0xF2 - Lane data stripped for this chip event (behaviour changed with RU FW v1.16.0, for general APE behaviour see https://alice.its.cern.ch/jira/browse/O2-1717)
89+
"APE_ILLEGAL_CHIPID", // 0xF3 - Chip ID jumped downwards within an ROF on a OB module (FATAL)
90+
"APE_DET_TIMEOUT", // 0xF4 - Detector timeout (FATAL)
91+
"APE_OOT", // 0xF5 - 8b10b OOT (FATAL, start)
92+
"APE_PROTOCOL_ERROR", // 0xF6 - Event protocol error marker (FATAL, start)
93+
"APE_LANE_FIFO_OVERFLOW_ERROR", // 0xF7 - Lane FIFO overflow error (FATAL)
94+
"APE_FSM_ERROR", // 0xF8 - FSM error (FATAL, SEU error, reached an unknown state)
95+
"APE_PENDING_DETECTOR_EVENT_LIMIT", // 0xF9 - Pending detector events limit (FATAL)
96+
"APE_PENDING_LANE_EVENT_LIMIT", // 0xFA - Pending detector events limit in packager (FATAL)
97+
"APE_O2N_ERROR", // 0xFB - Lane protocol error (FATAL)
98+
"APE_RATE_MISSING_TRG_ERROR", // 0xFC - Received start of event before trigger (FATAL)
99+
"APE_PE_DATA_MISSING", // 0xFD - Error in non critical byte
100+
"APE_OOT_NON_CRITICAL", // 0xFE - OOT non-critical
101101
"DColumns non-increasing", // DColumns non increasing
102102
"Chip data interleaved on the cable", // Chip data interleaved on the cable
103-
"TruncatedBuffer", // truncated buffer, 0 padding
104-
"TrailerAfterHeader", // trailer seen after header w/o FE of FD set
103+
"TruncatedBuffer", // Truncated buffer, 0 padding
104+
"TrailerAfterHeader", // Trailer seen after header w/o FE of FD set
105105
"FlushedIncomplete", // ALPIDE MEB was flushed by the busy handling
106106
"StrobeExtended" // ALPIDE received a second trigger while the strobe was still open
107107
};
108108

109109
static constexpr std::array<uint32_t, NErrorsDefined> ErrActions = {
110110
ErrActPropagate | ErrActDump, // Busy violation
111111
ErrActPropagate | ErrActDump, // Data overrun
112-
ErrActPropagate | ErrActDump, // Fatal (?)
112+
ErrActPropagate | ErrActDump, // Fatal (ALPIDE trigger fifo overflow, trigger-event matching compromised)
113113
ErrActNone, // Busy On
114114
ErrActNone, // Busy Off
115115
ErrActPropagate | ErrActDump, // Data was truncated after ChipEmpty
@@ -121,19 +121,19 @@ struct ChipStat {
121121
ErrActPropagate | ErrActDump, // Unknown word was seen
122122
ErrActPropagate, // Same pixel fired more than once
123123
ErrActPropagate | ErrActDump, // Non-existing row decoded
124-
ErrActPropagate | ErrActDump, // lane data stripped for this chip event (behaviour changed with RU FW v1.16.0, for general APE behaviour see https://alice.its.cern.ch/jira/browse/O2-1717)
125-
ErrActPropagate | ErrActDump, // reserved F3
126-
ErrActPropagate | ErrActDump, // detector timeout (FATAL)
127-
ErrActPropagate | ErrActDump, // 8b10b OOT (FATAL, start)
128-
ErrActPropagate | ErrActDump, // event protocol error marker (FATAL, start)
129-
ErrActPropagate | ErrActDump, // lane FIFO overflow error (FATAL)
130-
ErrActPropagate | ErrActDump, // FSM error (FATAL, SEU error, reached an unknown state)
131-
ErrActPropagate | ErrActDump, // pending detector events limit (FATAL)
132-
ErrActPropagate | ErrActDump, // pending detector events limit in packager(FATAL)
133-
ErrActPropagate | ErrActDump, // lane protocol error
134-
ErrActPropagate | ErrActDump, // reserved FC
135-
ErrActPropagate | ErrActDump, // Error in non critical byte
136-
ErrActPropagate | ErrActDump, // OOT non-critical
124+
ErrActPropagate | ErrActDump, // 0xF2 - Lane data stripped for this chip event (behaviour changed with RU FW v1.16.0, for general APE behaviour see https://alice.its.cern.ch/jira/browse/O2-1717)
125+
ErrActPropagate | ErrActDump, // 0xF3 - Chip ID jumped downwards within an ROF on a OB module (FATAL)
126+
ErrActPropagate | ErrActDump, // 0xF4 - Detector timeout (FATAL)
127+
ErrActPropagate | ErrActDump, // 0xF5 - 8b10b OOT (FATAL, start)
128+
ErrActPropagate | ErrActDump, // 0xF6 - Event protocol error marker (FATAL, start)
129+
ErrActPropagate | ErrActDump, // 0xF7 - Lane FIFO overflow error (FATAL)
130+
ErrActPropagate | ErrActDump, // 0xF8 - FSM error (FATAL, SEU error, reached an unknown state)
131+
ErrActPropagate | ErrActDump, // 0xF9 - Pending detector events limit (FATAL)
132+
ErrActPropagate | ErrActDump, // 0xFA - Pending detector events limit in packager (FATAL)
133+
ErrActPropagate | ErrActDump, // 0xFB - Lane protocol error (FATAL)
134+
ErrActPropagate | ErrActDump, // 0xFC - Received start of event before trigger (FATAL)
135+
ErrActPropagate | ErrActDump, // 0xFD - Error in non critical byte
136+
ErrActPropagate | ErrActDump, // 0xFE - OOT non-critical
137137
ErrActPropagate | ErrActDump, // DColumns non increasing
138138
ErrActPropagate | ErrActDump, // Chip data interleaved on the cable
139139
ErrActPropagate | ErrActDump, // Truncated buffer while something was expected
@@ -156,7 +156,7 @@ struct ChipStat {
156156
static int getAPENonCritical(uint8_t c)
157157
{
158158
if (c == 0xfd || c == 0xfe) {
159-
return APE_STRIP + c - 0xf2;
159+
return APE_STRIP_START + c - 0xf2;
160160
}
161161
return -1;
162162
}
@@ -169,7 +169,7 @@ struct ChipStat {
169169
return -1;
170170
}
171171
ft = c >= 0xf2 && c <= 0xfe;
172-
return APE_STRIP + c - 0xf2;
172+
return APE_STRIP_START + c - 0xf2;
173173
}
174174
uint32_t getNErrors() const;
175175
uint32_t addErrors(uint32_t mask, uint16_t chID, int verbosity);

0 commit comments

Comments
 (0)