CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid...

6
FERMILAB-Pub-03/376-E CDF Run IIb Silicon Vertex Detector DAQ Upgrade N. Bacchetta , S. Behari 1 , G. Bolla , G. Cardoso § , C.I. Ciobanu , B. Flaugher § , M. Garcia-Sciveres , C. Haber , K. Hara , R. Harr †† , T.H. Hsiung , T. Junk , S. Kim , R.-S. Lu ‡‡ , P.J. Lujan , P. Maksimovic , P. Merkel § , B. Nord , V. Pavlicek § , D. Pellett x , J. Pursley , B. Schuyler , A. Shenai § , K. Treptow § , M. Weber , S. Zimmermann Universita’ di Padova and INFN-Padova, Italy Johns Hopkins University, Baltimore, MD 21218 Purdue University, West Lafayette, IN 47907 USA § Fermilab, Batavia, IL 60510 USA University of Illinois at Urbana-Champaign, Urbana, IL 61801 Lawrence Berkeley Laboratory, Berkeley, CA 94720 USA University of Tsukuba, Tsukuba, Ibaraki 305-8571, Japan †† Wayne State University, Detroit, MI 48202 USA ‡‡ Academia Sinica, Taipei, Taiwan 11529, Republic of China x University of California, Davis, CA 95616 USA Abstract— The CDF particle detector operates in the beamline of the Tevatron proton-antiproton collider at Fermilab, Batavia, IL. The Tevatron is expected to undergo luminosity upgrades (Run IIb) in the future, resulting in a higher number of interactions per beam crossing. To operate in this dense radiation environment, an upgrade of CDF’s silicon vertex detector (SVX) subsystem and a corresponding upgrade of its VME-based DAQ system has been explored. Prototypes of all the Run IIb SVX DAQ components have been constructed, assembled into a test stand and operated successfully using an adapted version of CDF’s network-capable DAQ software. In addition, a PCI-based DAQ system has been developed as a fast and inexpensive tool for silicon detector and DAQ component testing in the production phase. In this paper we present an overview of the Run IIb silicon DAQ upgrade, emphasizing the new features and improvements incorporated into the constituent VME boards, and discuss a PCI-based DAQ system developed to facilitate production tests. Index Terms—CDF Run IIb, Silicon strip detector, Data acqui- sition, VME, PCI. I. I NTRODUCTION I N the ongoing Run IIa phase, the Tevatron collides proton and antiproton beams at a bunch crossing interval of 396 ns, producing a center-of-mass energy of 1.96 TeV. In the future the instantaneous luminosity is expected to go up by a factor of 3-4. From the viewpoint of SVX DAQ, this change demands a radiation-hard electronic system, able to support a sufficiently high rate of data transfer. At a typical first level trigger rate of 40 KHz, the data necessary for making trigger decision must be digitized and read out within 10 μs. The Run IIb silicon upgrade [1] is thus driven by two important aspects of the Run IIb operating conditions. Since the SVX detector is located in a dense radiation environment, all the active electronic components need to be radiation-hard. Secondly, owing to a higher number of interactions per beam crossing, a high data 1 Contact address: [email protected] transfer rate and a fast trigger decision logic must be employed for deadtimeless DAQ operation. The first issue is addressed by minimizing electronic components in the high radiation region and fabricating all the remaining active components based on a 0.25 μm CMOS technology, which is adequately radiation tolerant for Run IIb purposes. For deadtimeless operation of the DAQ an optimized readout configuration has been adopted. II. CHANGES IN DAQ SCHEME In the present (Run IIa) configuration, silicon data is digitized and read out from double-sided sensors (r-φ and z) using SVX3 chips. Silicon sensors in the SVX detector are assembled into ladders, arranged in a 12-fold symmetry in φ, 5 layers radially and 3 barrels in z. A single readout chain comprises of a Port Card (PC) connected to 44 SVX3 chips, mounted on sensors from 5 layers in a φ wedge, by means of High Density Interconnects (HDIs). The PC decodes control signals from a Fiber Interface Board (FIB) directed to the chips, generates calibration voltages using a DAC and provides regulated analog power to the chips. It also converts the data coming from the chips into optical signals to be sent out to the FIB, through a FIB Transition Module (FTM). At the FTM these signals are converted back to electrical (ECL) signals. These inter- conversions are achieved by Dense Optical Interface Modules (DOIMs), which employ transmitters (PC-end) and receivers (FIB-end) to send the data from the PC to the FIB. A FIB module controls 2 PCs through a set of copper lines, based on commands sent from the Silicon Readout Controller board (SRC), which acts as a command/data flow supervisor for the whole SVX DAQ system. Command signals from SRC are sent to FIB boards in a crate via a FIB fanout board (FFO), over a 1.5 GHz optical link (G-Link). Data from each FIB are serialized into high speed G-Links and transferred to the VME Readout Buffers (VRBs). Each SRC controls 12 VRBs

Transcript of CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid...

Page 1: CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid out on 500 µm thick BeO substrate. It is composed of 6 circuit layers made of Gold

FERMILAB-Pub-03/376-E

CDF Run IIb Silicon Vertex Detector DAQ UpgradeN. Bacchetta

�, S. Behari† � 1 , G. Bolla‡, G. Cardoso§, C.I. Ciobanu¶, B. Flaugher§, M. Garcia-Sciveres

�, C. Haber

�,

K. Hara���

, R. Harr††, T.H. Hsiung¶, T. Junk¶, S. Kim���

, R.-S.Lu‡‡, P.J. Lujan�, P. Maksimovic†, P. Merkel§, B.

Nord†, V. Pavlicek§, D. Pellettx, J. Pursley†, B. Schuyler†, A. Shenai§, K. Treptow§, M. Weber

�, S. Zimmermann

�Universita’ di Padova andINFN-Padova, Italy

†Johns HopkinsUniversity, Baltimore,MD 21218‡PurdueUniversity, WestLafayette, IN 47907 USA

§Fermilab,Batavia, IL 60510 USA¶University of Illi nois at Urbana-Champaign,Urbana,IL 61801�

Lawrence Berkeley Laboratory, Berkeley, CA 94720USA���

University of Tsukuba, Tsukuba,Ibaraki 305-8571,Japan††WayneStateUniversity, Detroit, MI 48202 USA

‡‡Academia Sinica,Taipei, Taiwan 11529, Republic of ChinaxUniversity of California, Davis, CA 95616USA

Abstract— The CDF particle detector operatesin the beamlineof the Tevatron proton-antiproton collider at Fermilab, Batavia,IL. The Tevatron is expectedto undergo luminosity upgrades(RunIIb) in the futur e, resulting in a higher number of interactions perbeam crossing. To operate in this denseradiation envir onment, anupgrade of CDF’s silicon vertex detector (SVX) subsystemand acorrespondingupgrade of its VME-based DAQ system has beenexplored. Prototypes of all the Run IIb SVX DAQ componentshave been constructed, assembledinto a test stand and operatedsuccessfullyusing an adapted version of CDF’s network-capableDAQ software. In addition, a PCI-based DAQ system has beendeveloped as a fast and inexpensive tool for silicon detector andDAQ component testing in the production phase. In this paperwe present an overview of the Run IIb silicon DAQ upgrade,emphasizingthe newfeaturesand impr ovementsincorporated intothe constituentVME boards,and discussa PCI-basedDAQ systemdeveloped to facilitate production tests.

Index Terms— CDF Run IIb, Silicon strip detector, Data acqui-sition, VME, PCI.

I . INTRODUCTION

I N the ongoing Run IIa phase,the Tevatron collidesprotonandantiprotonbeamsat a bunch crossinginterval of 396ns,

producing a center-of-massenergy of 1.96 TeV. In the futuretheinstantaneousluminosity is expectedto go up by a factorof3-4. From the viewpoint of SVX DAQ, this change demands aradiation-hardelectronicsystem,able to support a sufficientlyhigh rateof datatransfer. At a typical first level trigger rateof40 KHz, the datanecessaryfor making trigger decisionmustbe digitized and read out within 10 µs. The Run IIb siliconupgrade[1] is thusdrivenby two importantaspectsof theRunIIb operating conditions. Since the SVX detectoris locatedin a dense radiation environment, all the active electroniccomponentsneedto be radiation-hard. Secondly, owing to ahigher number of interactions per beamcrossing,a high data

1 Contact address:[email protected]

transferrateanda fasttriggerdecisionlogic mustbeemployedfor deadtimelessDAQ operation. Thefirst issueis addressedbyminimizing electroniccomponentsin the high radiationregionand fabricating all the remaining active componentsbasedona 0.25 µm CMOS technology, which is adequately radiationtolerant for Run IIb purposes.For deadtimelessoperation oftheDAQ anoptimizedreadout configurationhasbeenadopted.

I I . CHANGES IN DAQ SCHEME

In thepresent (RunIIa) configuration,silicondatais digitizedandreadout from double-sidedsensors(r-φ andz) usingSVX3chips.Silicon sensorsin the SVX detectorareassembledintoladders, arrangedin a 12-fold symmetry in φ, 5 layersradiallyand 3 barrels in z. A single readout chain comprises of aPort Card (PC) connected to 44 SVX3 chips, mounted onsensorsfrom 5 layersin a φ wedge,by meansof High DensityInterconnects(HDIs). The PC decodescontrol signalsfrom aFiber Interface Board (FIB) directed to the chips, generatescalibration voltagesusinga DAC andprovidesregulatedanalogpower to the chips. It also converts the datacoming from thechips into optical signals to be sent out to the FIB, througha FIB Transition Module (FTM). At the FTM thesesignalsare converted back to electrical (ECL) signals. Theseinter-conversionsare achieved by DenseOptical InterfaceModules(DOIMs), which employ transmitters (PC-end)and receivers(FIB-end) to sendthe data from the PC to the FIB. A FIBmodule controls 2 PCs through a set of copper lines, basedon commands sentfrom the Silicon ReadoutControllerboard(SRC),which actsasa command/dataflow supervisor for thewhole SVX DAQ system.Commandsignals from SRC aresent to FIB boards in a cratevia a FIB fanout board (FFO),over a 1.5 GHz optical link (G-Link). Data from each FIBare serializedinto high speedG-Links and transferred to theVME ReadoutBuffers (VRBs). EachSRC controls 12 VRBs

Page 2: CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid out on 500 µm thick BeO substrate. It is composed of 6 circuit layers made of Gold

in a crate through a VRB fanout (VFO) board. The SRCcommunicateswith CDF Trigger SystemInterface(TSI) overan optical link.

In the Run IIb design, a stave is usedas the fundamentalelementof the new SVX system.Figure1 show the layout ofthe Run IIb silicon detector(SVXIIb). A stave consistsof 3

Mini PortCard

SVX4 Chips

Staves

Fig. 1. Stave configuration and layout of the SVXIIb detector.

modules mounted on eachside of a carbonfiber - foam corewith embedded cooling andcables.Eachmodule consistsof 2single-sidedsilicon sensorsandonehybrid. Eachhybrid has4SVX4 chipsfor charge integration, digitization andreadout ofsilicon data.Eachstave (6 modules)comprisesa singlereadoutunit. Thestave designwasoptimized to give excellenttrackingperformancein ahighradiationenvironmentwith minimalmassand easeof construction. Figure 2 shows a block diagramofthe SVXIIb DAQ components.Commandanddataflow direc-tions are indicatedby arrowheads.As mentioned earlier, it isdesirableto move active electronic componentsout of the highradiationenvironment. As a stepin this direction, the decoder

functionality of the DAC/Decoder/Regulator (DDR) chip ofRun IIa Port Cardhasbeenmoved to a new FTM [2], outsidethe high radiation region of Run IIb, leaving the transceiverchips on a new Mini Port Card (MPC) [3] which is mountedon one end of eachstave. A new pair of JunctionPort Cards(JPC)[4] arelocatedjust outsidethedetectorvolume,betweenMPC andFTM, for data/control transmissionandpowersupply.The data JPC transmitsdata and control (LVDS) signalsbi-directionally, asappropriate,andthepowerJPCprovidesdigitaland analogvoltagesfor the SVX4 chips, HV for the sensorsand power for the MPC. JPC is split into two boards due tospaceconstraints. A studyshowed the DOIMs not sufficientlyradiation-hardto survive Run IIb. So copper cablesarechosento carry datafrom the MPCs to the FTMs.

Beforean SVXIIb dataacquisitioncycle begins, the SVX4chips are initialized by FIB. In this step FIB commandsaredecoded by FTM which then sendsthem to the chips via thedataJPC and the MPC. The configuration and channel maskbits are first downloaded to a 148-bit shift register on eachSVX4 chip and then the configuration bits are clocked into ashadow register, completing the initialization. As in Run IIascheme,SRC coordinatestrigger, control and data flow in aDAQ cycle.

A. Trigger Configuration

To facilitatehigher rejection power for uninterestingevents,CDF employs a 3 tieredtriggersystemin RunIIa. Thedecisiontime for level-1 trigger being 4 µs, all front-end electronicsare pipelined, with on-board buffering of 42 beamcrossings.The level-1 trigger is distributed by the TSI to SRC, andsubsequently transmittedto the SVX3 chips through FIBs,controlling them,for thereadout of datafrom a particularpipe-cell. Thedatais sentto VRB bufferswherethey wait for a level-2 trigger. VRBs storedatafrom eventscorrespondingto up to 4pending level-2 decisions in their internal buffers.A splitter isemployed to senda replicaof this datato help discriminatingtracks with large impact parametersin level-2. A successful

FFO

FIB

VRB VFOFTM

BackplaneJ3

Stave

Hybrids MPCs

Back Panel Front Panel

FTM FIB

Comds

FFO

VRB VFO SRC

Comds

Comds

SRC

BackplaneJ3

Comds

JPC1

JPC2

Data

For Level−2 trigger

DataSplitters

Fig. 2. Block diagram of the SVXIIb DAQ system.Also shown arepicturesof real DAQ components from a test stand.

Page 3: CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid out on 500 µm thick BeO substrate. It is composed of 6 circuit layers made of Gold

level-2 trigger initiatestransfer of the datato DAQ buffersandsubsequently to level-3 nodes via a network (ATM) switch,whereevents arefully reconstructedfrom various sub-detectorinformations.A successfullevel-3 trigger letsthedatabestoredin massstoragemedia.

Most of theRunIIa triggerschemeremains samein RunIIbwith a few exceptions. The non-wedgegeometry of SVXIIbrequires a few modifications to the existing (Run IIa) wedge-symmetriclevel-2 Silicon Vertex Trigger (SVT) hardware, forcomplete compatibility . Thesemodifications,however, have noimpacton the Run IIb SVX DAQ design.

I I I . DESIGN AND FUNCTIONALITY OF THE BOARDS

MPC is a fine pitch thick film circuit laid out on 500 µmthick BeOsubstrate.It is composedof 6 circuit layers madeofGold and featureshigh thermal dissipationand long radiationlength.EachMPC has5 transceiverchipsfor control signalandclock reception from theFIB andsilicon dataandcontrol signaltransmissionback to it. In addition, it converts differentialsignalsto single-ended,asnecessary, andregeneratestheclocksto drive the SVX4 chips.MPC is electricallyconnected to theφ–side bus cable by meansof wire bonds and to the z–sidebus cableby meansof a flex circuit, calledthe Wing, solderedto it. Another pair of flex circuits (pigtails) provide low biasvoltagesfor SVX4 operation,highvoltage for sensorsandcarrydataout of the chips.A total of 180 MPCs would be usedtoreadout layers1–5of theSVXIIb detector. MPC functionalitiesareembedded into the hybrids for the innermost (L0) layer.

As mentionedin SectionII, JPCfunctionalitiesaresplit intotwo boards due to spaceconstraints.The power supply JPCis responsible for providing regulated power to all the stavecomponents.The data JPC, on the other hand,acts as a bi-directional LVDS repeaterbetween5 MPCs and half of anFTM. Severalcontrol signalsarefannedout from FTM to JPC,each of which are connectedto two LVDS drivers in JPC.The SVX4 chip has 3 bi-directional LVDS bus lines whichare driven in opposite directions during digitize and readoutoperations, using a control signal. JPC usesthe samesignalto control its bi-directional drivers, ensuringtheir compatibilitywith theMPC drivers. A total of 52 JPCs(18 � 2 for layers1–5�

8 � 2 for L0) would be usedto readout the SVXIIb detector.FFOandFIB boards areunchangedin RunIIb DAQ design.

The FFO is a 9U � 400 VME board which residesin slot-14of eachFIB subrack. It receivescommandsandtiming signalsfrom SRC via G-Link and fansthemout on the J3 backplanefor useby theFIBs. Like theFFO,theFIB is a 9U � 400 VMEboard, a maximum of 12 of which populate a FIB subrack.On receiving SRC commandsvia FFO, it interpretsthemandsendsclock sequencesto theSVX4 chipsfor initialize, digitizeandreadout operations.It controls datareadout from theSVX4chips, transfers data to VRBs and the SVT systemfor level-2 trigger decision.The FIB firmware has been modified toaccommodatenew command clock sequencesin Run IIb.

Thenew FTM is a 9U � 120 VME boardwhich mateswith aFIB board via J3backplanein a FIB subrack.An FTM controls

240 SVX4 chips through 2 JPCs,eachconnectedto 5 staves.It employs an FPGA to control and readout eachJPC. Theelectrical protocol of the front and back panelsof FTM areLVDS (JPC interface) and TTL (FIB interface), respectively.So a CPLD is usedas a level translatorto enable the FPGAsto drive thedatabusdirectly to thebackplane.A local 53 MHzclock is usedto realigndatain the FPGAs,beforebeingsentout to the FIB, and also to readout data from SVX4 chips.FIB commands aredecoded in eachdatachannel of the FTMandthensentto 10 stavesvia 2 JPCs.Otherattractive featuresof the FTM include remoteprogramming through the VMEbus,loopbackmode,detector dataemulation andlogic analyseraccessfor diagnostics.

The VRB, VFO and VTM 9U � 400 VME boards are un-changed in Run IIb DAQ design. Functionalitiesof VFO andVTM are similar to thoseof the FFO and the FTM in FIBparlance. VRB is a multiport memory designed to buffer andfilter data for transfer to online processors.It is capable ofstoringupto 12events(programmable)whichareeitherwaitingfor a L2 decisionor waiting for readout to L3. In CDF SVXmode, the VRB is controlled by SRC. Following a level-1trigger acceptance SRC assignsa readout buffer number forstorageof incoming data.Several dataconsistency checksareperformed while data is being received, e.g. pipe-cell andbunch crossingnumber mismatchwith respectto the SRC,datatruncation, etc. Following a level-2 trigger acceptancetheSRC assignsa scanbuffer number for the storeddata to betransferred to a VME dataoutput FIFO.

The SRC is a 9U � 400 VME board which coordinatesSVXIIb operation anddatareadout with the trigger supervisor(TS) andCDF masterclock. It receivesclocksignalsandbunchcrossinginformationfrom themasterclock andpassesthemonto FIB for use by the SVX4 chips and for timing all the G-Link connections.On receiving a level-1 trigger acceptance,SRC marks a particular pipeline capacitorof an SVX4 chip(containing an event of interest) and instructs FIB for itsdigitization and readout. On completion, marked by successstatusfrom the FIBs and VRBs, the SRC clears this cell atthe next beamgap. TheVRBs return statussignalsto the SRCindicating whenthey arebusy reading datafrom the FIBs andwhenthey arepassingdatato level-3 processorsafter a level-2 acceptance. After completion of all the taskspertaining toa trigger decision,the SRC returnsstatussignals to TS. Anon-boardtrigger emulator on the SRC is convenient for DAQdebugging in test standenvironment. Taking advantageof theon-board data buffering capability of the new FTM, studiesare underway to allow the SRC to handle a level-1 triggeracceptancerateof 100KHz, comparedto thepresentrateof 40KHz. This wouldbeachievedby usinga fasterSRC/FTMclockfor datadigitization, reading out a fraction of datanecessaryfor SVT processing, in additionto replacing present 8 FPGAson the SRC with a fasterandhigh logic capacityFPGA.

IV. VME DAQ SOFTWARE AND USER INTERFACE

In Run IIa a Java-basedframework, called cdfvme [5],has beenadopted for DAQ code development, operation and

Page 4: CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid out on 500 µm thick BeO substrate. It is composed of 6 circuit layers made of Gold

maintenance.It offers a convenient way to createboard ob-jects and link them together into a complex DAQ system.It employs a Fermilab version of CORBA (Common ObjectRequestBroker Architecture), ROBIN, for the board objects(clients), e.g. FIB, SRC etc., to talk to VME crates(servers)over ethernet. A Fermilab version of VISION (Versatile I/oSoftware Interface for Open-bus Networks) library, FISION,lets the actual boards in a crate talk to each other. On theVME cratesMVME processors (68K or PowerPCarchitecture)runVxWorksoperatingsystem,capableof network-basedDAQoperation. Figure 3 shows a block diagramof the SVX DAQcodeand its components. For convenience, cdfvmeframework

MainJavaCode

1Crate

2Crate

3Crate

TS

Src

Vrb[0]

Vrb[n]

Fib[0]

Fib[n]

SrcClient

TSClient TSServer

SrcServer

VrbServerVrbClient

FibClient FibServer

C code TS

C code Src

C code Vrb

C code Fib

O

N

S

I

I

F

V

E

M

V

E

M

V

E

M

Server code: VxWorks − CPPC/68K compilers: Irix,

Client code: JavaJava compilers: Irix,

Network Transport: ROBIN

Sun, Linux, NT Sun, Linux, NT

Fig. 3. A block diagram of various components of SVX DAQ code

is split into 3 packages,which are maintained and distributedcentrallyasFermilabproducts:

� cdfvme common: a packagewhich carries all the codecommon to CDF DAQ systems,definition of boards,tools to combine basicboardsinto complex systems,baseclassesto write test programsand meansto run them. Italsoprovidesa library of useful utility functions.

� cdfvme template: a package containing templatesforVME board control, monitoring and testing.Thesetem-platesprovide codestructurefor easyimplementation ofboard-specificserver-side(C) andclient-side(Java) codesandlink themtogether. For example, the coreSVX DAQpackage, svxdaq, is derived from this package, whichimplementsthe whole CDF silicon DAQ boardassemblyand the client code for driving HistoScope, the onlinehistogrammingpackage.

� cdfvme teststand: a package containing templateuserinterfacecodeto implement, manipulate and run a boardsystemderived from cdfvme template. For example, thesvxii package implements a test stand for the svxdaqsystem-of-boards, and is in usefor all Run II silicon testpurposes.

The user interfaceto svxii is highly configurable,makinguseof a set of ASCII config files. One of its most attractive

features is that it lets direct access/manipulation of VMEregisterson the constituentboards for diagnostic purposes.AFermilab-developedgraphics package, HistoScope, is employedin svxdaq package for visualization and customization ofonline data.For Run IIb tests,an SVX4 chip classis createdandintegratedinto thesvxii package.The modified codeletsuseof SVX4 chip systemson demand andmaintains backwardcompatibility with the Run IIa usage.Figure 4 shows a GUIpanelfor configurationof a seriesof SVX4 chips.

Fig. 4. A Java-baseduserinterface to SVX DAQ system

V. AN SVXIIB VME TEST STAND

All theprototypeboardshavebeencombinedinto aVME teststandandoperatedusingthemodified DAQ software.Utilizingthe SRC on-board trigger emulator, this systemworks wellin various modes of operation of the SVX4 chips, namelydeadtimeless, read-all, sparsificationand real-time pedestalsubtraction. Figure2 shows picturesof this setupin operation,which lets various detector and DAQ components, namelyhybrids, silicon sensormodules andstaves, to be testedunderalmostreal conditions. A HistoScope online display is shownin Figure 5. The red (upper-left) histogram shows averagepedestaldistribution of 4 � 128 channels of an SVX4 hybrid.Thebumps correspondto the injectedcharge. Theblue(lower-left) histogramshows channel-by-channel measured noise.

VI . A PCI-BASED DAQ SYSTEM

The PCI TestStand(PTS)[6] is an inexpensive andflexibleDAQ system,developed to test SVXIIb detectorcomponentsduring production. Its design is driven by the necessityto

Page 5: CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid out on 500 µm thick BeO substrate. It is composed of 6 circuit layers made of Gold

hybrid #16 (V2)

Avg Pedestals HDI #4

0 100 200 300 400 500

0

20

40

60

80

100

120

140

160

Channel Channel

Dnoise HDI #4

50 100 150 200 250 300 350 400 450 500

0

0.5

1

1.5

2

2.5

3

Channel

ADC Counts

Noise HDI #4

0 100 200 300 400 500

0

0.5

1

1.5

2

2.5

3

3.5

Channel Channel

Last Pulse HDI #4

0 100 200 300 400 500

0

20

40

60

80

100

120

140

160

Channel

ADC Counts

Fig. 5. A HistoScope (online) display of a pedestal run with internal chargeinjection

build several test stationsto test the componentsquickly andefficiently, soasnot to slow down theassemblyandverificationtasks.Flexibility is also important becausenew ways to studytheelectronicsareconstantly devisedandmustbeimplementedquickly for optimal progress.

ThePTSconsistsof a Linux hostcomputer andtwo special-ized boards, a PCI Test Adapter (PTA) and a ProgrammableMezzanine Card (PMC). Figure 6 shows a pair of PTA andPMC cards ready for installation into a host computer. The

Programmable Mezzanine Card (PMC)

PCI Test Adapter (PTA) Card

Fig. 6. A pair of PTA andPMC cards

PTA contains2 Mb of on-boardmemory, a PCI interfacechip,an Altera APEX EP20K200E FPGA, and connectors neededto attachthe mezzanine card. The PMC has a Xilinx VirtexII XC2V1000 FPGA which supports a large number of I/Ostandards, such as LVTTL, LVCMOS, LVDS, bi-directionalLVDS, andDDR bufferingon morethan200pinsconnectedtoI/O headers on thePMC board. A 50 MHz crystalprovidesthetiming reference.The Virtex II alsohasa small programmableRAM which is convenient for storing command sequencesto be sent to the SVX4 chips. Signalsmay be programmedindividually by direct register writes under computer control,or they maybeclockedout of FPGA RAM at high speed.The

former technique is usedfor initializing the chips, when thesynchronizationof the readback of the initialization bits is notguaranteedby the SVX4 chip. Acquisition, digitization, andreadout are accomplished with high-speedsequencing of thecontrol pattern,andthe dataaresynchronizedwith the OBDVsignal returning from the SVX4 chips.

The control patternsfor the SVX4 chips are encoded ineasily-editable ASCII files which areparsedon the computer,and thenloadedinto the Xilinx FPGA RAM. A signal is sentby the computer to execute the patternonce. Data receivedfrom the SVX4 chips are latchedin DDR buffers and senttoPTA RAM. The computer thenreadsthe databack from PTARAM at PCI bus speeds.An option allows an acquirepatternto loop indefinitely until an external trigger (which can alsobe simulatedby a computer write to a register) arrives,uponwhichthedigitize-and-readoutpatternis sequenced, andcontrolpassesbackthento theacquirepattern. ThePTSis configurableto test single chips and hybrids by directly connecting themto the FPGA I/O pins, or to test staves via MPC and JPCinterfaces.

Data acquisition with PTS is performed through a cus-tomizedROOT-basedgraphical userinterfacesoftwarepackage(ROOTXTL). Most of thededicatedtestsavailablein theVME-basedDAQ systemareimplementedin PTSandarefunctional,namely pedestalreadback, noise measurement, scan of cali-bration signal strengthto measure the gain, bandwidth scanand a deadtimelessscan.Resultsof deadtimeless scansfromstaves using PTS have beenpresented[7] in this conference.Figure 7(a) shows the main DAQ panelcapable of executing

� � � � � ��

Fig. 7. ROOTXTL user interface showing (a) Main test panel, (b) Chipiniti alization paneland(c) global taskbutton panel, aided with a pair of DAQprogressbars

multiple testsin a batch-like mode. Figures7(b) and(c) showSVX4 chip initialization panel anda global taskbutton panel,respectively. In Figure8 resultsof a gainscanon anSVX4 chipis shown. In the uppergraphaverage ADC counts are shownas a function of the input calibration voltage, set successivelyusing a DAC, over the 128 channelsof an SVX4 chip. Thelower graph shows meanADC countsaveraged over all thechannels.A fairly linearresponseis seenovermostof theinputvoltagerange.

Both VME DAQ and PTS save the acquired data intoASCII files in an identical gray-coded hexadecimal format.A set of ROOT-basedGUI classeshave beendeveloped for a

Page 6: CDF Run IIb Silicon Vertex Detector DAQ Upgrade · MPC is a fine pitch thick film circuit laid out on 500 µm thick BeO substrate. It is composed of 6 circuit layers made of Gold

Fig. 8. Gain scanof an SVX4 chip. (a) average ADC countsas a functionof input calibration voltage over 128 channels,(b) Y-projection showing ADCcounts averaged over all the channels Vs. input voltage

detailedanalysis of the data,andmore importantly, for cross-comparisonof resultsfrom the two systems.Within statisticalerror, resultsfrom boththesystemsarefound to becompatible.

VI I . CONCLUSION

In this paper, we have compared designof the CDF RunIIa SVX detector with that of its proposedRun IIb successorandhave outlined theupgradepathadopted for theVME DAQsystemto meetrequirementsof thenew environment. We havethenexplained implementationof thesemodifications involvingchanges at both the hardwareandsoftware levels of the DAQsystem,emphasizing the componentsbeing upgraded. A testsystemis establishedincorporatingall the upgradedcompon-

entsandfound to work well with the SVXIIb detectorcompo-nents,thusmeetingoneof the foremostgoalsof the new sys-tem.A PCI-basedDAQ system,developedto provide a simpletesting ground for the silicon detectorand DAQ componentsin the production phase, works well and featuresmost of thefunctionalitiesof the VME-basedfull DAQ system.

ACKNOWLEDGMENT

Oneof the authors (S.B) would like to thankS.C.Nahnforansweringnumerous questions regarding svxdaq and svxiipackages while the former was adapting them for Run IIb.The work presented in this paper is operated by Universi-ties ResearchAssociationInc. under Contract No. DE-AC02-76CH03000 with the United StatesDepartment of Energy andis supported in part by the United StatesNational ScienceFoundation Grant No. NSF-PHY-0245040 and Grant in Aidfor ScientificResearch(KAKENHI) on Priority Areas,Japan,No. 13047101.

REFERENCES

[1] The CDF IIb Collaboration, “The CDF IIb Detector Technical DesignReport”, CDF Note 6261 (Chapter 3), September 2002.

[2] J. Andresenet. al, “FIB Transition Module IIb”, ESE-CDFIIB-062402,June2002.

[3] J. Andresenet. al, “Mini Port Card, Pigtails and Wing”, ESE-CDF-20011104,November 2001.

[4] G. Cardoso, N. Wilcer, “Junction Port Card - Data and Control Board”,ESE-CDFIIB-010503,May 2003.

[5] C. Gayet.al, “CDFVME - SoftwareFramework for TestingVME Boards”,IEEE Trans.Nucl.Sci.47:259-262,2000.

[6] C. CiobanuandT. Junk,“The PCI TestStand(PTS)for theRun2b SiliconUpgrade”, CDF Note 6626,August2003.

[7] M.M. Weber, “Electrical Performance and Deadtime-less Operation ofStaves for the New CDF Silicon Detector”, IEEE-NSS-2003proceedings.