1 M. Ellis - 17th May 2007 SciFi Decoding (Everything you never wanted to know but couldn’t avoid going over and over) VLSB Data (unpacking to AFE, MCM, Chan) VLPC Cassette (AFE, MCM, Chan -> Module, Channel) External Waveguide (Module, Channel -> Patch Panel channel) Internal Waveguide (WG, Patch Panel Channel -> Station Connector, Channel) Station (Station Connector, Channel - > Tracker, Station, Plane, Fibre) Station 5
34
Embed
1M. Ellis - 17th May 2007 SciFi Decoding (Everything you never wanted to know but couldn’t avoid going over and over) VLSB Data (unpacking to AFE, MCM,
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Once the VlsbReadout2006 class has unpacked an event, the result will be 512 VlpcHit objects for each AFE board, each of which will have an AFE board number (recorded in the data file), an MCM and channel number and the ADC counts for that channel.
7M. Ellis - 17th May 2007
Verification of this stage
The correctness of this code has been checked on a number of occasions by using the self injection mechanism of the TRIP-t chip.
The TRIP-t chip is programmed to inject charge onto one channel of each TRIP chip (16 per board) such that each TRIP (and hence each MCM) has charge on a different chip.
This has also been done simultaneously on a LHB and RHB such that all 32 TRIPs had signal on a different channel.
The data file produced was analysed and the Board ID, MCM and channel of all hits that were found to be well above pedestal was found to agree exactly with those channels that had charge injected onto them.
So I am confident that when the data is unpacked, the board, MCM, channel and ADC values are all correct.
8M. Ellis - 17th May 2007
LVDS Links
In order to ensure that the LVDS links are connected correctly, the VLSB modules should be watched as the AFE boards are programmed.
As each of the DFPGAs on a board are programmed, the pair of red LEDs near the corresponding AFPGAs will light up.
When they do, the corresponding LED on the VLSB will change from Red to Green.
If the sequence of changing from Red to Green is correct, then the LVDS cables have been attached correctly.
9M. Ellis - 17th May 2007
VLPC Cassette
A VLPC Cassette contains 1024 channels. These are broken up into 8 128 channel modules. Each cassette is readout by two AFEIIt boards (one
Left Hand Board and one Right Hand Board). The 128 channels of a given module are read out by
one MCM of the LHB (64 channels) and one MCM of the RHB (the other 64 channels).
The VLPC cassette modules are numbered from 1 to 8, with 1 being that closest to the backplane and 8 being that farthest from the backplane.
The MCMs on a board are numbered 1 to 8, but the numbering with respect to the backplane depends on which side of the cassette the board is on.
10M. Ellis - 17th May 2007
Module vs MCM Numbers
BackPlane
Mod 1
Mod 8
Left H
and B
oard
Rig
ht H
and B
oard
MC
M 1
MC
M 8
MC
M 1
MC
M 8
11M. Ellis - 17th May 2007
LHB & RHB -> VLPC Channel
The mapping between a given channel on a VLPC module connector (i.e. the fibre that takes the light to the VLPC) and the electronic channel (which channel on an MCM on a LHB or RHB) involves some internal transformations inside the cassette/AFE system.
This mapping is described in a D0 document in terms of the SVX channel number on a module.
The following slides will show the D0 numbering scheme, and how the readout order can be determined with respect to this scheme.
12M. Ellis - 17th May 2007
D0 Warm End Connector
View from above, backplane in the background
Pin is on the backplane end of the connector.
First overlay shows the numbering assigned to the fibres that we will call the “D0 numbering scheme”.
Second overlay shows a sample of the SVX channel assignment to the same fibres.
Note that the SVX channel numbers are repeated on the Left and Right halfs of the cassette.
1 17 1131 17 113
16 32 16 32 128128
41 9241 92
92 87 92 87 4141
13M. Ellis - 17th May 2007
SVX Channel Assignments
We can now make a mapping between the fibre numbers defined on the previous slide (1-128) and these SVX channels for the LHB and RHB.
There is also a separate map showing the channel number on the MCM for each SVX channel (next slide...)
14M. Ellis - 17th May 2007
128 Way Connector -> SVX Channel -> MCM Channel
15M. Ellis - 17th May 2007
128 Way Warm End Connector
So it is now possible to take a hit on a known channel of a given MCM on a left or right hand board and determine which of the 128 fibres of a given module that corresponds to.
Example 1: LHB, MCM 2, Channel 10 MCM 2 on a LHB is Module 2 on the Cassette. Channel 10 on a LHB is SVX Channel 110 and is Fibre 43
on the warm end connector on the cassette. Example 2: RHB, MCM 2, Channel 45
MCM 2 on a RHB is Module 7 on the Cassette. Channel 45 on a RHB is SVX Channel 47 and is Fibre 125
on the warm end connector on the cassette. On the following slide, the module and fibre on that
module are identified for these two examples.
16M. Ellis - 17th May 2007
Warm End Connector Example 1
Module 2
Fibre 43
17M. Ellis - 17th May 2007
Warm End Connector Example 2
Module 7
Fibre 125
18M. Ellis - 17th May 2007
Implementation in G4MICE
The VlpcCableImperial class reads in two text files (readout-left and readout-right) which contain the mapping between channel on an MCM and the fibre number on the connector.
The AFEIIt versions are called: readout-left.v2.txt readout-right.v2.txt
These files list the MCM channel ID followed by the corresponding fibre number:
TYPE = READOUT-LEFTVERSION = 12 May 2007
# MCM CHANNEL ID = HOLE ID OF EXTERNAL WAVEGUIDE @ READOUT-END
36 = 139 = 242 = 345 = 452 = 5
...
19M. Ellis - 17th May 2007
Verification of this stage
Other than by inspecting the documents from D0, the mapping from AFE channel to module and fibre number on the warm end connector has not been verified.
Perhaps it is worth taking LED data with most of the fibres masked off to check that this stage is correct?
We could pick 16 different channels and mask off all but two channels (one on each side of the cassette) on each of the 8 modules and take some LED data and then look to see that the MCM, channel and board numbers of the channels that show light match the fibre numbers that were exposed to the light according to these readout files.
20M. Ellis - 17th May 2007
External Waveguide
The External and Internal Waveguides and Patch Panel connection have a numbering system that is internally consistent and which has been checked by the Osaka group as the waveguides are constructed.
The numbers assigned to the 128 fibres on the D0 warm end connector on the external waveguide are not the same as those already shown for the corresponding connector on the VLPC cassette.
It is necessary to make a translation from the fibre number on the VLPC cassette to the fibre number on the D0 end of the external waveguide.
21M. Ellis - 17th May 2007
VLPC Cassette vs D0 Connector on WG
22M. Ellis - 17th May 2007
VLPC Cassette vs D0 Connector on WG
1 2 3 4 5 6 7 8
121 122 123 124 125 126 127 128
Dowel
1 1131 113
1616 128128
Hole
23M. Ellis - 17th May 2007
Patch Panel Connector
The Patch Panel connector has 128 fibres and the numbering scheme is identical to that on the 128 way D0 connector.
So fibre 1 on the D0 connector of the external waveguide is connected to fibre 1 of the patch panel connector on the same waveguide and so on:
1 2 3 4 5 6 7 8
121 122 123 124 125 126 127 128
24M. Ellis - 17th May 2007
Internal Waveguide
The Patch Panel connector of the internal waveguide has 128 fibres.
The station connector side consists of 6 individual bundles of between 20 and 22 fibres.
1-20
21-42
43-64
65-86
87-108
109-128
1
2
3
4
5
6
1-128
25M. Ellis - 17th May 2007
Internal Waveguide Connections
The channels on the 128 way interface have the mapping shown below to each of the 6 station connectors.
The channel numbering on the station connector is also shown:
1 - 20
1 - 22
1 - 22
1 - 22
1 - 22
1 - 20
1-1
1-2
1-3
1-4
1-5
1-6
Station Connector
26M. Ellis - 17th May 2007
Station Connections
The station connectors can in theory be attached to any of the station connectors on a station.
For station 5, the 5 waveguides’ station connectors were numbered from 1 to 30 and corresponding numbers were marked on the station:
27M. Ellis - 17th May 2007
Station Connectors
Plane V used Station Connectors 1- 10
Plane X used Station Connectors 11 – 20
Plane W used Station Connectors 21 – 30
The station connector numbering increased clockwise when the station is viewed as shown on the photo in the previous slide.
28M. Ellis - 17th May 2007
Fibre Numbering
Each bundle of seven 350 m fibres will be referred to as a “fibre”.
The detailed description of the mapping of the fibres from the plane to the station connector can be found here: