Sie sind auf Seite 1von 18

Some Details on CKM Data Format

Jinyuan Wu for CKM Collaboration April 2002

Questions

Q: TDC Word Bit Layout


0 TDC TS of Hit

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).

Centenaries: (TDC Example)


Check sum word 1 0 0 0 0 1 1 0 0 0 0 0 1 1 E E E E 1 1 E E E E E 1 0 D D D D 0 0 D D D D D 0 1 TS[7:0] TS[7:0] TS[7:0] TS[7:0] TS[9:6] TS[7:0] TS[7:0] TS[7:0] TS[7:0] TS[7:0] TS[9:6]
Check sum of past centenary

TDC data

Roll-over Marker Check sum word

0 1

Time (1ns/bin) Time (1ns/bin) Time (1ns/bin) Time (1ns/bin) Ch. #


Check sum of past centenary

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

Check sum of past centenary

TS[7:0] TS[9:6]

Time (1ns/bin) Ch. # Centenary ID = TS[15:8]


Check sum of past centenary

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]

TS[7:0] TS[7:0] TS[9:6]

Millenary Header Words


Centenary ID One for each centenary 15 1 1 0 0 8 7 0 Centenary ID = TS[15:8]

Optional Redundant check information. Inserted after collecting the whole Millenary

The 2nd header word The 1st header word

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

Header. 2 empty slots. Over-threshold slots. 2 empty tail slots.

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.

Veto System Data


15 Roll-over Marker Hitlet Header QIE only data 1 1 0 0 1 0 E 0 0 0 1 D CapID Time (1ns/bin) TS[9:6] 8 7 Ch. # TS[9:0] QIE (2 range, 6 mantissa) QIE (2 range, 6 mantissa)
Check sum of past centenary

(QIE+TDC) data
Check sum word

1 1 0 1

Hitlets, Centenary
Check sum word

(QIE+TDC) data QIE only data Hitlet Header

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

Check sum of past centenary

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. #

Summary (1): (QIE+TDC) Data


Millenary Centenary Centenary 255 Check Sum 0-42 Hitlets, 0-255 words Centenary 1 Centenary 0 M. Header QIE(+TDC) word(s) 2 Empty QIE words Hitlet

2 Empty QIE words Hitlet Hdr.

Roll-over marker Centenary ID

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.

Summary (2): TDC Data


Millenary Centenary

Centenary 255 Check Sum

0-255 TDC words Centenary 1 Centenary 0 M. Header

Roll-over marker Centenary ID

The End
Thanks

Das könnte Ihnen auch gefallen