VME Data Acquisition System: Fundamentals and Beyond. Abhinav Kumar Bhabha Atomic Research Centre, Mumbai March 2011



Similar documents
I/O Products IC697VSC096

USB readout board for PEBS Performance test

The new frontier of the DATA acquisition using 1 and 10 Gb/s Ethernet links. Filippo Costa on behalf of the ALICE DAQ group

APPLICATION NOTE GaGe CompuScope based Lightning Monitoring System

Design of a High Speed Communications Link Using Field Programmable Gate Arrays

MVME162P2. VME Embedded Controller with Two IP Slots

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

power rid B ge C o m p u t e r

Description: Multiparameter System (4 or 8 channels)

What is LOG Storm and what is it useful for?

AXI Performance Monitor v5.0

The Bus (PCI and PCI-Express)

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

Serial Communications

Computer Organization & Architecture Lecture #19

EPICS VME Crate Monitor Software Design Note Rev. 0 Date:

Silicon Lab Bonn. Physikalisches Institut Universität Bonn. DEPFET Test System Test DESY

Switch Fabric Implementation Using Shared Memory

Lizy Kurian John Electrical and Computer Engineering Department, The University of Texas as Austin

applicomio Profibus-DP

Computer Systems Structure Input/Output

Open Flow Controller and Switch Datasheet

I/O. Input/Output. Types of devices. Interface. Computer hardware

RCC2 Test Proceedures

Technical Information Manual

DS1104 R&D Controller Board

Computer Organization and Components

(Cat. No SI) Product Data

INPUT/OUTPUT ORGANIZATION

NIM High Voltage Power Supplies

Serial Communications

LogiCORE IP AXI Performance Monitor v2.00.a

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Communicating with devices

MONOCHROME RGB YCbCr VIDEO DIGITIZER

OPTIMIZE DMA CONFIGURATION IN ENCRYPTION USE CASE. Guillène Ribière, CEO, System Architect

PCIeBPMC (PCI/PCI-X Bus Compatible) Bridge based PCIe and PMC Compatible Adapter Carrier Front View shown with 1 installed fans model # PCIeBPMC-FAN2

What s New in Mike Bailey LabVIEW Technical Evangelist. uk.ni.com

Chapter 11 I/O Management and Disk Scheduling

AGIPD Interface Electronic Prototyping

PMC-XM-DIFF & EADIN/MODBUS Virtex Design

Overview of the GRETINA Auxiliary Detector Interface

Autonomous NetFlow Probe

Integrating PCI Express into the PXI Backplane

Documentation. M-Bus 130-mbx

AlazarTech SDK Programmer s Guide. Version May 28, 2010

Linux Driver Devices. Why, When, Which, How?

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

EUCIP IT Administrator - Module 1 PC Hardware Syllabus Version 3.0

LonManager PCC-10 and ISA Protocol Analyzers Models and

The data acquisition system of the XMASS experiment

Networking Virtualization Using FPGAs

DAC Digital To Analog Converter

Primary Image Ltd. Issue 1.1

Read this before starting!

MBP_MSTR: Modbus Plus Master 12

Chapter 5 Cubix XP4 Blade Server

AN 223: PCI-to-DDR SDRAM Reference Design

PCI Express Overview. And, by the way, they need to do it in less time.

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

SD Specifications Part A2 SD Host Controller Simplified Specification

Febex Data Acquisition System

Process Control and Automation using Modbus Protocol

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

Architecting High-Speed Data Streaming Systems. Sujit Basu

Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor

VPX. Sub headline on second deck. GE Fanuc Intelligent Platforms

760 Veterans Circle, Warminster, PA Technical Proposal. Submitted by: ACT/Technico 760 Veterans Circle Warminster, PA

EMX-2500 DATA SHEET FEATURES GIGABIT ETHERNET REMOTE CONTROLLER FOR PXI EXPRESS MAINFRAMES SYSTEM LEVEL FUNCTIONALITY

32-bit PCI 10/100/1000Mbps Gigabit Ethernet Card. User s Guide. FCC Warning. CE Mark Warning. VCCI Warning

Solutions for Increasing the Number of PC Parallel Port Control and Selecting Lines

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

A New Chapter for System Designs Using NAND Flash Memory

Computer Networks. Definition of LAN. Connection of Network. Key Points of LAN. Lecture 06 Connecting Networks

SAN Conceptual and Design Basics

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

PCI Express* Ethernet Networking

AN 588: 10-Gbps Ethernet Hardware Demonstration Reference Designs

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 13-1

Architecture of distributed network processors: specifics of application in information security systems

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Winlead Dialer Software Users Manual Addendum 3 Installing Winlead Dialer Software on the Windows 2000 System

Introduction to PCI Express Positioning Information

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Cover. SEB SIMOTION Easy Basics. Collection of standardized SIMOTION basic functions. FAQ April Service & Support. Answers for industry.

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

OUTLINE SPECIFICATIONS FOR THE VME MOUNT MODULE AND TCM IN SLOTS 1 & 21.

Lesson 10: Video-Out Interface

Course 12 Synchronous transmission multiplexing systems used in digital telephone networks

SATA II 4 Port PCI RAID Card RC217 User Manual

Transcription:

VME Data Acquisition System: Fundamentals and Beyond Abhinav Kumar Bhabha Atomic Research Centre, Mumbai March 2011

Presentation Outline Chapter 1 -------------------------------- Introduction to VME Chapter 2 -------------------------------- VME Architecture Chapter 3 -------------------------------- Data Acquisition Setup under VME Chapter 4 -------------------------------- Data Acquisition with VME Modules using LAMPS

Introduction to VME VME stands for VERSA-Module Euro card introduced in 1981 for industrial, commercial and military applications. Electrical and mechanical specifications are defined by the standard. VME bus is a master-slave computer architecture. The signaling scheme is asynchronous, meaning that the transfer is not tied to the timing of a bus clock. VITA (VME International Trade Association) is the organisation whose purpose is to promote and develop the VME

Extension of VME for Physics Application Unlike NIM and CAMAC, the VME was created for the industry and not for physics applications However, the North American, European and Japanese physics communities have joined to work with the VITA and found the VME International Physics Association (VIPA) Two standards have been created: VME/V430 (1990) and VME64xP (1998)

VME Components VME master power supply VME Crate VME slave backplane smart fan units Optical Link

VME Modules supported by LAMPS V785 ADC V830 Scaler Single Width 6 U Module having 32 Peak Sensing Analog to Digital conversion channel. High channel density 12-bit resolution 5.7 µs / 32 channel conversion time Zero and overflow suppression for each channel Single Width 6 U Module 32 Channel Latching Scaler The counters values can be read on the fly from VME without interfering on data acquisition process. 32 event buffer memory Besides these, as of date, LAMPS provides support for V862 32 Channel Multi event Individual Gate QDC; support for V775 32 Channel Multievent TDC and MesyTec High resolution(11 to 13 bit) ADCs MADC-32

Advantages of VME over CAMAC Standard As the VME is an asynchronous bus, the bandwidth indicated is a theoretical limit. For VME64, It works to around 80 MB/s of Theoretical maximum bandwidth ; usually the actual transfer rate is less than 50% of the bandwidth High Readout Speeds High Density Modules can provide up to 640 Channels (1 controller + 20 Digitizers) in a single VME crate with 21 slots. Usage of high bandwidth optical interconnect link makes sure that the interconnect technology doesn t become a bottleneck while transferring data.

Chapter 2 -------------------------------- VME Architecture and Protocols /AS ADDRESS /DS0, /DS1 /DTACK DATA

SYSRESET* VME Architecture SLAVE MASTER BACKPLANE INTERFACE LOGIC IRQ[7..1]* IACK* AM[5..0] AS* DS1* DS0* WRITE* DTACK* BERR* D[31..0] A[31..1] LWORD* ACFAIL* SYSRESET* SYSCLK BG[3..0]OUT* BR[3..0]* BG[3..0]IN* BBSY* BCLR* IRQ[7..1]* IACK* AM[5..0] AS* DS1* DS0* WRITE* DTACK* BERR* D[31..0] A[31..1] LWORD* DATA TRANSFER BUS (DTB) DTB ARBITRATION BUS PRIORITY INTERRUPT BUS UTILITY BUS * Active low signals Electrical Properties All lines use TTL levels ; Low = 0.. 0.6 V; High = 2.4.. 5 V Address, Address Modifier and data lines are active high; Protocol lines are active low.

VME Addressing Modes Addressing modes - A16, A24, A32, A40, A64 The addressing mode and the access type are defined by the Address Modifier bus AM[5:0] AM Code 0x3B 0x39 0x2F 0x29 0x20 0x0B 0x09 0x08 Functions A24 block transfer A24 single cycle CR/CSR space access A16 single cycle 2eVME and 2eSST transfers (+ extended AM) A32 block transfer (BLT) A32 single cycle A32 64-bit block transfer (MBLT)

VME Address Space Address=BaseAddress + Offset The maximum VME address space is made of 2 64 bytes (although in most cases only 2 32 are used, since the A64 mode is very infrequent) Each slave occupies a portion of this space, depending on its internal addressing capability There are 3 ways to allocate the address space of the slaves: 1. by the Base Address of the slaves which is set at hardware level by means of jumpers or rotary switches 2. by the position of the slave in the crate (Geographical Address) 3. by the content of some registers of the slave programmed by the software (Address Relocation) modes 2 and 3 are available in the VME64x only

VME Data Readout Data readout is possible in following modes - Single cycle Reads a word from the slave FIFO BLT/MBLT (Block Transfer/Multiplexed Block Transfer) Reads a number of events limited to 256 words from any slave module In MBLT two 32 bit words are multiplexed to read as a single 64-bit word in VME64 standard CBLT (Chained Block Transfer) Most pertinent mode for nuclear physics applications allowing for eventby-event data acquisition. Reads the data belonging to the same physical event from several contiguous boards in a crate limited to 256 words per CBLT cycle

Chained Block Transfer The Chained Block Transfer has been introduced for sparse data readout across multiple modules. It consists in reading the data belonging to the same physical event from several contiguous boards in a crate. It uses the IACKIN-IACKOUT daisy chain line already present in any VME backplane to propagate the readout token. No additional hardware nor external connections are required. The CBLT is handled by the slaves and is transparent to the master The use of the Bus Error to terminate the cycle is mandatory.

Multi Cast Write The Multi Cast Write (MCST) is a single write cycle that involves several slaves in the crate. The MCST uses the same propagation mechanism as the CBLT The master initiates the cycle like a normal single write The slaves get the data in sequence and the last one asserts the DTACK FIFO Memories Many VME acquisition boards use FIFO memories to store the data. This is particularly suitable for physics applications in which the events occur randomly in time and are readout sequentially A read access to any address within that range causes the non repeatable extraction of one word from the FIFO. CAEN ADC modules are endowed with 32 Events Buffer.

Interrupts in VME The VME features a 7 level prioritized interrupt architecture; the request lines IRQ[7:1] are shared between all the slots The interrupt is initiated by the interrupter (this can be any board in any slot) that asserts one IRQ. The interrupt handlers (usually the board in slot 1) monitor the IRQ lines and generate an interrupt acknowledge cycle in response to the request The interrupt handler reads the STATUS/ID of the interrupter from the data bus If more interrupters had asserted the same IRQ line, the IACKIN- IACKOUT daisy chain allows the uppermost left to respond first (priority given by the position)

Chapter 3 -------------------------------- Setting up a VME acquisition system C. A. E. N.

Bus Adapter Feature It makes possible to control the VME bus remotely from a standard PC through a high speed link The acquisition program (DAQ) runs on the remote PC The VME board is just hardware (no software runs on it) Computing power (processors, memories, disks, etc ) is on the PC Unlike the ethernet port of a SBC, the communication link of the bus adapter must be able to sustain high data transfer rates VME-PCI/PCIe: usually communicates through an optical link, requires a card inside the PC

Advantages of Bus Adapter over SBC HW and SW upgrade on PC side: you can buy a new one at any time Easy getting started: just install a driver in the PC Ready at power-up (no boot required) Lower total cost of ownership Multi-crate interconnection and control computing power is here! this is just hardware Bus Adapter Slaves access to the bus through the adapter Optical USB Link C. A. E. N. used for data transfer

VME Controller V2718 Max throughput rate: 70MB/s VME64/VME64X (no 2eSST) PCI 32bit, 33MHz Optical Link: 1.25 Gb/s Max distance: 300m V2718 A2818 ~ 70 MB/s max 300m FPGA VMEbus FPGA PCI-int RAM buffer Optical Link CONET Optical Link RAM buffer PCI bus

BASE ADDRESS: which board inside the crate OFFSET: which register inside the board A32 mode A24 mode C 2 4 8 31 24 23 16 15 0 OFFSET 0 1 4 2 3 5 8 6 7 9 C A B D E F 0 1 4 2 3 5 8 6 7 9 C A B D E F 0 1 4 2 3 5 8 6 7 9 C A B D E F 0 1 4 2 3 5 8 6 7 9 C A B D E F unused 4 8 31 24 23 16 15 0 OFFSET 0 1 4 2 3 5 8 6 7 9 C A B D E F 0 1 4 2 3 5 8 6 7 9 C A B D E F Address Space: 16 Kbytes from 0xC2480000 to 0xC248FFFF Address Space: 16 Kbytes from 0x480000 to 0x48FFFF VME Base Address ( Hardware Setting)

Operational Aspects Controller should be inserted in slot 1 of the VME Crate. While setting up the CBLT Chain, the modules forming the chain should be contiguous; last module should be terminated with a 50 Ohm resistance. Scalars can be inserted in any empty slot. MesyTec ADCs, if used along with CAEN Modules, should be inserted first in the chain.

Chapter 4 -------------------------------- Data Acquisition using VME Modules through LAMPS software

Hardware/Software layers DAQ Software (LAMPS) CAENVME Library Digitizer Modules A2818 Driver Digitizer Modules VME Bus V2818 Controller PCI Bus Digitizer Modules A218 PCI CONET Controller CONET

Software Installation Installation of A2818 (PCI CONET Controller) driver - CAEN A2818 PCI CARD - Linux kernel Rel. 2.4 or 2.6 with gnu C/C++ compiler PCI CONET Controller Installation of CAENVMELib Library Set of functions for the control and the use of CAEN VME Bridges. Typically, it provides function calls to Open (Init) and Close the communication and the devices Make single Read/Write cycles Make Block Transfer Read/Write cycles Wait for an interrupt and make a IACK cycle PCI Slot Installation of LAMPS No changes in the LAMPS installation procedure.

Checking for Basic Connectivity Post hardware setup and software installation, basic connectivity with the Bus Adapter can be checked using the Test Feature of the LAMPS software. Indication of an error at this stage implies an incorrect hardware/software setup.

Setup Configuration under LAMPS Bus Adapter needs no Base Address configuration. For other modules, setting up of Base Address in software is compulsory.

Setting up Special Properties QDC special settings TDC special settings Configuring SCALERS under LAMPS

Blue Rectangular region VME Controller ; Green Rectangular Region- CBLT Chain ; Purple rectangular region - Scaler

Master Gate Blocking Master Gate blocking is essential to have any meaningful acquisition with VME, failing which a good number of events could be corrupt depending on the data rate. Concept: No master gate should reach VME modules until the current event has been completely digitized and read out. This statement may look incomplete because it doesn t talk of the 32-event buffer in VME modules. But the solution (see below) is based on BUSY status of VME modules, hence it covers this complication. Solution: Chain the BUSY output from all the modules in use using short Lemo cables and Lemo T connectors and veto the master gate of the experiment with this before input to VME modules. LAMPS automatically displays the dead time when the blocked and unblocked master gates are provided on two inputs of CAEN V830 VME scaler module.

Conclusion The VME DAQ in the current form provides us with a powerful system because of the large number of parameters which can be acquired simultaneously and high event rates. The zero suppressed readout option along with the availability of variety of digitizers with higher channel density presents a very good system in front of users, before we eventually migrate to digital DAQ.