Beruflich Dokumente
Kultur Dokumente
Questions
TS of Hit
TDC
The rearrangement is very useful. TDC word represents unique time. TDC ordering represents hit ordering. Caution: TS and TDC are in different units: convert unit while calculating DT.
Q: Error Checking
Its important to consider it from beginning. A check sum word is attached at the end of a centenary. (Place holder only for now).
TDC data
0 1
C. 1
TDC data
Roll-over Marker
Time (1ns/bin) Time (1ns/bin) Time (1ns/bin) Time (1ns/bin) Time (1ns/bin) Ch. #
C. 0
TDC Data
15 Roll-over Marker Check sum word TDC data 1 1 0 0 1 1 0 1 0 E D TS[7:0] TS[9:6] 8 7 Ch. #
Check sum of past centenary
Time (1ns/bin)
Error bit Double hit marker from TDC Earliest Time from CLK leading edge
Q: Centenary, Millenary
A centenary is 256 CLK cycles. (Or 2.5 to 6.4 ms). A millenary could be 256 centenaries. (Or 0.65 to 1.6 ms. Use 256 for now, should be determined after having knowledge about switch).
Millenary Structure
Centenary 255
1 0 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1
1 E 1 1 1 E E 1 1 1 1 1 1 1 1 1 1
0 1 D 0 0 0 0 0 D D 0 0 1 1 1 1 1 1 1 1 1
TS[7:0] TS[9:6]
Centenary 0
Centenary ID word: Inserted while forming Millenary
Millenary Header
0 0 1 1 1 1 1 1 1 0
Time (1ns/bin) Time (1ns/bin) Ch. # Centenary ID = TS[15:8] Millenary Check Sum [11:0] Millenary Word Count [23:12] Millenary Word Count [11:0] Unified Channel Number [23:12] Unified Channel Number [11:0] Reset ID [3:0] Millenary ID [31:24] Millenary ID [23:12] Millenary ID [11:0]
Optional Redundant check information. Inserted after collecting the whole Millenary
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 Millenary Check Sum [11:0] 1 Millenary Word Count [23:12] 1 Millenary Word Count [11:0] 1 Unified Channel Number [23:12] 1 Unified Channel Number [11:0] 1 Reset ID [3:0] Millenary ID [31:24] 1 Millenary ID [23:12] 0 Millenary ID [11:0]
Remarks on Millenary
Both header identification and data block size mechanisms are allowed. Header identification is preferred. Word count and check sum are used as redundant check.
0-4 0-4 0-4 0-4 0-4 5 7 0-4 5 6 9 0-4 0-4 0-4 0-4
Q: Hitlet?
Suggested module for now: direct pipeline dump. When over-threshold data exist, dump:
Hitlet Hdr
Any other data fragments can be chopped from the pipeline dump in software.
Q: (QIE+TDC) or (QIE)+(TDC)?
PMT
QIE
TDC
There is a possibility TDC and QIE data exist in same chip. Hardware effort is the same for (QIE+TDC) or (QIE)+(TDC). (QIE+TDC) might have advantage in software stage. Suggestion: leave both schemes possible, defer the choice until the trigger study result comes out.
(QIE+TDC) data
Check sum word
1 1 0 1
Hitlets, Centenary
Check sum word
Roll-over Marker
1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1
1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1
0 1
CapID CapID CapID CapID CapID E CapID CapID CapID Time (1ns/bin) CapID CapID CapID
E 0 0
TS[9:6]
QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) TS[9:0] QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa) TS[9:0] Ch. #
Further Saving
Use centenary ID only (eliminate roll-over marker). Eliminate empty centenaries. Suggestion: dont worry about it for now but keep it in mind.
The End
Thanks