11
DAQ Software for Mini- 2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona 12/21/2013 1

DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

Embed Size (px)

Citation preview

Page 1: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

1

DAQ Software for Mini-2

Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu,

Jonathan Snavely, Dan TompkinsUniversity of Arizona

12/21/2013

Page 2: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

Configuration and Readoutof Mini-2 using GLIB ver. 3

2

SFP+GbE (UDPpackets)

Mini-2, containing1 VMM ASIC

miniSAS cables and SMA cables

Custom S6-FMC

The Virtex 6 containsthe logic to configureand readout the VMM

OTS FMC is used to digitize analog VMM data

GbE (RJ-45)IN: Configuration String and CommandsOUT: UDP packets to MATLAB

PCIeIPBus via μTCA(UDP packets)

12/21/2013

Page 3: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

3

DAQ Software for Mini-2

• IPBus 1.3• Works as fabric for GLIB v3 Firmware System Core – Wishbone • No overall IPBus packet header • Works with PyChips which is no longer supported

• UDP• Low overhead• Easy to build client/server in software• Packets can be received out of order and/or lost• Use firmware to build UDP packets or use Microblaze

• Matlab• Works well with UDP packets• Easy to set up Runnable Histograms

12/21/2013

Page 4: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

4

• Configuration is via Python GTK gui using PyChips.• Transactions with registers via IPBus/Wishbone bridge

DAQ Software for Mini-2

12/21/2013

Page 5: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

5

GLIB ver. 3 Firmware Architecture

With IPBus 1.3and PyChips

12/21/2013

Page 6: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

6

DAQ Software for Mini-2

• IPBus 2.x A Better UDP protocol

• Combined Firmware and Software• Uses UDP w/ IPBus 32bit header*• Packet numbering, etc.• Better than UDP alone with less overhead than TCP• Requires RARP (Reverse Address Resolution Protocol)• Software updates are automatically downloaded• Requires a non-trivial rebuild of the GLIB v.3 Firmware

System Core• Firmware examples for other Xilinx boards exist• Appears to be the future for ATLAS

12/21/2013

Page 7: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

712/21/2013

IPBus Packet Header

Transaction Header

DAQ Software for Mini-2

IPBus Packet Type

Page 8: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

8

NET gt_clkp LOC=M6 | DIFF_TERM=TRUE | TNM_NET=gtpclk;NET gt_clkn LOC=M5 | DIFF_TERM=TRUE; -- MGTREFCLK1, Bank 115 -- LVDS CLK

INST eth/*/gtxe1_i LOC=GTXE1_X0Y9; -- V1, V2, W3, W4 -- PCIe pins, Bank 114

NET leds<0> LOC=AF31 | IOSTANDARD=LVCMOS25; -- onNET leds<1> LOC=AB25 | IOSTANDARD=LVCMOS25; -- heartbeatNET leds<2> LOC=AC25 | IOSTANDARD=LVCMOS25; -- off

# interface between FPGA and CPLD

NET "v6_cpld[0]" LOC = AE32 ; # IO_L14N_VREF_13NET "v6_cpld[1]" LOC = AB27 ; # IO_L15P_13NET "v6_cpld[2]" LOC = AC27 ; # IO_L15N_13NET "v6_cpld[3]" LOC = AG33 ; # IO_L16P_13NET "v6_cpld[4]" LOC = AG32 ; # IO_L16N_13NET "v6_cpld[5]" LOC = AA26 ; # IO_L17P_13

IPBus 2.x GLIB Virtex 6 Pinout (.ucf)

12/21/2013

Page 9: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

9

GLIB ver. 3 Firmware Architecture

With IPBus 1.3and PyChips

With IPBus 2.x

12/21/2013

Page 10: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

• One can use Xilinx V7 or K7 boards in place of the GLIB (Virtex 6)

• Output data are UDP packets over GbE• Readout software options– MATLAB (AZ)– QT (G. Iakovidis/NTUA)– LabVIEW (BNL?)

DAQ Software for Mini-2

1012/21/2013

Page 11: DAQ Software for Mini-2 Kenneth Johns, Charlie Armijo, Bill Hart, Karen Palmer, Sarah Jones, Kayla Niu, Jonathan Snavely, Dan Tompkins University of Arizona

1112/21/2013

Questions?