ADC ACQUISITION MODE...

Similar documents
SRS Slow Control Manual

CODA Online Data Formats

Using the FADC250 Module (V1C - 5/5/14)

Update on PRad GEMs, Readout Electronics & DAQ

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

Readout Systems. Liquid Argon TPC Analog multiplexed ASICs SiPM arrays. CAEN 2016 / 2017 Product Catalog

SIS xx Firmware - Gamma. User Manual

SRS Slow Control Manual

Token Bit Manager for the CMS Pixel Readout

SoLID GEM Detectors in US

INFN Padova INFN & University Milano

SVT DAQ Raw Data Format

Transport protocols Introduction

Nubotics Device Interface DLL

Kondo GNANVO Florida Institute of Technology, Melbourne FL

MSU/NSCL May CoBo Module. Specifications Version 1.0. Nathan USHER

SIS xx Firmware - Gamma. User Manual

Conto D2 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

PLENA matrix API Table of contents en 3

EtherCAT User Manual. For SS EtherCAT

DNP3 V3.00 DEVICE PROFILE DOCUMENT

SIS Firmware - Gamma. Addendum to User Manual V1408

Description of the JRA1 Trigger Logic Unit (TLU)

Using NCSL DAQ Software to Readout a CAEN V775 TDC. Timothy Hoagland

xtdc4 cronologic User Guide Revision 1.57 as of Firmware 2 (build 834), Driver v1.2.0

Protocol VIT5. Communications RS485. Version 1.0. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.

Data Acquisition in Particle Physics Experiments. Ing. Giuseppe De Robertis INFN Sez. Di Bari

ADQ14-FWPD. User Guide. Author(s): Teledyne SP Devices Document ID: Classification: Public Revision: PA1 Print date:

Description of the JRA1 Trigger Logic Unit (TLU), v0.2c

Time Sensitive Control Streams in IEEE P1722A v1.3

aligo CDS Real-time Sequencer Software

AFE4404 Demonstration Kit. Message Communication Protocol v4.0

int result; int waitstat; int stat = PmcaAsyncGetGain(&result); // stat receives request id

AFE4400 and AFE4490 SPO2 Front End Demonstration Kit. Message Communication Protocol v4.0

WinEasyTORK Manual. Version 1.0. Index. 1.0 WinEasyTORK Configuration Real Time Channels Setup Make a Test...

SDK-S User Manual K-21-A ( ) 1 Copyright 2013 B&W Tek, Inc.

Pixie-500 Express Manual Extension Pulse Shape Analysis Functions

Hardware interface and protocol of data exchange with mobile beacon via USB, UART and SPI interfaces.

MODEL VTR10012 EIGHT CHANNEL, 100 MHZ, 12 BIT VME ANALOG DIGITIZER WITH OSCILLOSCOPE CHARACTERISTICS FEATURES:

The RS-485 user manual for B800 series communication

CE4DMID01 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

SRS scalable readout system Status and Outlook.

PHYTEC-USB-CAM Series communication protocol

LUPO TimeStamp Module (Ver. 1.2) Hidetada Baba

ArduCAM USB Camera C/C++ SDK

Reference Waveform File Format

ATM-DB Firmware Specification E. Hazen Updated January 4, 2007

BES-III off-detector readout electronics for the GEM detector: an update

EASY-NIM 928 Suite. High Performance, Multi-Function Nuclear MCA/Counter/Timer/Rate Meter

Performance Oscilloscope Reference Waveform File Format

MIDI CPU Firmware V User Manual

ATC-AD8100K. 8 Channel 100 khz Simultaneous Burst A/D in 16 bits IndustryPack Module REFERENCE MANUAL Version 1.

Transport Protocol (IEX-TP)

Networking Technologies and Applications

ECE 435 Network Engineering Lecture 15

ALIBAVA: A portable readout system for silicon microstrip sensors

Data Link Layer (1) Networked Systems 3 Lecture 6

COMMUNICATION MODBUS PROTOCOL

Megajolt Lite Jr. Controller API Documentation Version 4.x.x

RTP/RTCP protocols. Introduction: What are RTP and RTCP?

128 CH TDC-SCALER For 10x10 GEM

Using NCSL DAQ Software to Readout a CAEN V792 QDC. Timothy Hoagland

HUNT ENGINEERING HEL_UNPACK.LIB USER MANUAL

OEM API Specification

Modbus TCP + Ethernet EN

GCU ARCHITECTURE PROPOSAL


COMMUNICATION MODBUS PROTOCOL

LORD MANUAL. Wireless Sensor Networks LXRS Data Communications Protocol

The Handel Quick Start Guide:

EIGHT CHANNEL, 100 MHZ, 14 BIT VME ANALOG DIGITIZER WITH OSCILLOSCOPE CHARACTERISTICS

Homework 9: Software Design Considerations

Using NCSL DAQ Software to Readout a LeCroy 4300B. Timothy Hoagland

ArduCAM USB Camera SDK

Introduction to Networked Multimedia An Introduction to RTP p. 3 A Brief History of Audio/Video Networking p. 4 Early Packet Voice and Video

Prototyping NGC. First Light. PICNIC Array Image of ESO Messenger Front Page

NI PCI-5153EX. Contents USER GUIDE. with Hardware Accumulation Firmware

Vertex Detector Electronics: ODE to ECS Interface

Conto D1 MODBUS COMMUNICATION PROTOCOL

CSCI 2212: Intermediate Programming / C Chapter 15

AMP DISPLAY INC. SPECIFICATIONS AMP DISPLAY INC 9856 SIXTH STREET RANCHO CUCAMONGA CA TEL: FAX:

NEV Spec. Document Version R01838_07

QSB Command List. Document Version /15/2017

Optical Data Interface ODI-2.1 High Speed Data Formats Preliminary Specification. Revision Date

Smart Transducer Networks

Coyote. Software Guide

CONTO IMP PROTOCOL COMMUNICATION CONTENTS 1.0 INTRODUCTION

30/05/96 V465 User's Manual CHIMERA VERSION TABLE OF CONTENTS

Table of Contents. Appendix. Table of Figures. Document Change Log

WRTU Client User Manual. Date: 29 May, 2014 Document Revision: 1.05

Triveni Digital Inc. MPEG Technology Series. MPEG 101 (MPEG 2 with a dash of MPEG 4 thrown in) Copyright 2011 Triveni Digital, Inc.

Technical Information Manual

Hera-B DAQ System and its self-healing abilities

VTR2535T-128K and VTR2535T-512K OCTAL 12bit 10MHZ TRANSIENT RECORDER


Scintillator-strip Plane Electronics

Heavy Photon Search Data Acquisition

APV-25 based readout electronics for the SBS front GEM Tracker

Kommunikationssysteme [KS]

Parallel and Serial Bus Analysis Instructor s Guide

Transcription:

SRS Data Format Content Contents 1. OVERVIEW... 2 1.1. FRAME COUNTER... 3 1.2. DATA HEADER... 3 1.3. HEADER INFO FIELD... 4 2. ADC ACQUISITION MODE... 5 2.1. OVERVIEW... 5 2.2. ADC DATA FORMAT... 6 2.3. APV READOUT USING ADC MODE (RAW APV DATA)... 6 3. APZ DATA FORMAT (APV ZERO-SUPPRESSION FIRMWARE)... 8 3.1. DATA TYPES AND STRUCTURES DEFINITION... 8

1. Overview SRS outputs data using UDP protocol. For each event, each SRS node will output a number of UDP frames containing data and an Event Trailer frame containing only a code word (0xFAFAFAFA). The format does not foresee a fixed number of frames per event, but in practice, current applications constrain the number of frames per event to a fixed number. The general SRS data format defines 3 layers: Figure 1. SRS general DAQ data format UDP Layer: UDP data payload delivered as raw data by DAQ software like DATE. Contains a either a Frame Counter word and the FEC Layer data, or the 0xFAFAFAFA event trailer word.

FEC Layer: contained in the UDP layer, holds the DAQ data and header information used to identify data source, data packing, etc., and other information useful in the DAQ process. Hybrid Layer: DAQ data originating from the front-end hybrids. Depending of the data source, this layer may or may not have a particular structure. 1.1. Frame Counter The Frame Counter is a 32-bit word primarily used to tag each UDP frame corresponding to one event. DATE uses this field to check the integrity of the event. There are 3 different syntaxes of this field corresponding to 3 different ways DATE can use it for integrity validation: Byte 3 Byte 2 Byte 1 Byte 0 Single-FEC mode (default) 0x00 0x00 0x00 F# Multiple-FEC mode TS F# Test Mode GF# F# = frame counter value (1 byte) which starts from 0 for a new event and increases for every frame. TS = 3-byte timestamp tag attributed to each event. GF# = 4-byte global frame counter which starts from 0 at the beginning of the run and and counts continuously (does not reset for each event). The frame counter behavior is controlled by SRS registers. By default the system uses the first syntax. Second variant is used with multiple FEC cards, where participation of each FEC to the readout event needs to be validated using the timestamp value. Syntax number 3 is a test mode, never used for taking data. 1.2. Data Header The Data Header is a mandatory field that essentially identifies the data source. The general format and the current list of values are sown in the table below. Byte 3 Byte 2 Byte 1 Byte 0 General format H0 H1 H2 C# ADC mode A D C C# APV with zero-suppression A P Z C# Arizona C-Card A Z C 0x00 Hx = header identification byte; for the current APV configuration HHH = 0x414443 ("ADC" in ASCII) C# = DAQ channel number o in case of APV hybrids (ADC or APZ modes), even numbers represent masters, odd numbers represent slaves.

1.3. Header Info Field The Header Info field is reserved for future use to allow the transport of event related data or information about the data structure in the Hybrid Layer. The minimum length of this field is one word (32-bit). Byte 3 Byte 2 Byte 1 Byte 0 General format I0 I1 I2 I3 Ix = reserved for optional info

2. ADC acquisition mode 2.1. Overview The ADC acquisition mode uses the ADC C-Card equipped with two 8-channel 12-bit ADCs, for a total of 16 ADC channels. The SRS unit (FEC + ADC C-Card) acquires a fixed-length window of digitized data following each trigger pulse (provided that the trigger does not come too early wrt the previous trigger). Data is acquired in parallel from each enabled input channels. The acquisition window is synchronized to a trigger signal which can either be generated internally or taken from outside, using the NIM input of the FEC card. Relevant SC registers for this mode of operation are listed in the table below. For more information see the SRS Slow Control Manual. Register Name SC Port Addr Description Default value BCLK_MODE APVAPP 0x00 Bit 2 = external(1)/internal(0) trigger 0x07 Bit 3 = external trigger polarity (NIM logic) BCLK_FREQ APVAPP 0x02 External trigger: post-trigger deadtime 40000 Internal trigger: trigger period BCLK_ROSYNC APVAPP 0x05 Start of the acquisition window wrt the trigger pulse 300 EVBLD_CHENABLE APVAPP 0x08 Channel enable register. Each bit 0xFFFF corresponds to one ADC channel EVBLD_DATALENGTH APVAPP 0x09 Length of the data-capture window (ADC 3000 samples) EVBLD_MODE APVAPP 0x0A Must remain 0 0 RO_ENABLE APVAPP 0x0F Readout Enable register (bit 0). Triggers are accepted for acquisition when this bit is 1. Upon boot this is set to 0. Must be set to 1 to start the acquisition. 0 The acquired event will have one UDP frame for each channel enabled in the EVBLD_CHENABLE register. The C# field in the Data Header indicates the number of the readout channel. On each HDMI plug there are 2 analog inputs defined as Master and Slave. Masters will have even channel numbers and Slaves odd channel numbers.

2.2. ADC data format A. FEC Layer Data Header. The ADC data format is identified in the Data Header field by the ASCII characters "ADC", followed by the ADC channel number (unsigned byte): Byte 3 Byte 2 Byte 1 Byte 0 General format H0 H1 H2 C# ADC mode A D C C# Header Info: one 32-bit word (reserved - see chapter 1.3 Header Info Field) B. Hybrid Layer In ADC mode acquisition data follows immediately after the header, occupying the entire Hybrid Layer. Data is organized as 16bit words with the least-significant byte first (only 12 bits of the 16 are used; the most-significant 4 bits are set to 0): Data word 0: D0L D0M D1L D1M Data word 1: D2L D2M D3L D3M Data word 2: Data can be reconstructed using the following formula Dx = DxL + 256 x DxM The byte-length of the data field is equal to (EVBLD_DATALENGTH x 2) bytes which correspond to (EVBLD_DATALENGTH) samples (16 bit). 2.3. APV readout using ADC mode (raw APV data) The ADC mode can be described as an "oscilloscope like" operation mode. The on-board ADC surveys the output of the APV, while the firmware acquires from the ADC a time window which is EVBLD_DATALENGTH samples long and synchronous with the trigger (starting BCLK_ROSYNC x 25ns after the trigger). Unfortunately the APV does not synchronize its data stream on the trigger signal, but on an internal loop that starts at the APV reset and has a period of 35 clock cycles (25ns). The result is that the useful data "jitters" inside the SRS payload by up to 35 samples, thus the offline software need to "hunt" for the beginning of the data, which is generally done by looking for the header formation provided by the APV data protocol (see the APV manual, page 10, chapter 4.3 and page 18, chapter 8).

The APV multiplexes digital and analog data on to the same line; this line arrives inverted at the ADC so you'll find as follows (thresholds are approximate, see picture attached): Condition APV data type sample < 1200 digital "1" sample > 3000 digital "0" 1200 < sample < 3000 analog data

3. APZ data format (APV zero-suppression firmware) 3.1. Data types and structures definition typedef unsigned char BYTE; // 8-bit word typedef unsigned int WORD32; // 32-bit word typedef unsigned short int WORD16; // 16-bit word typedef signed short int INT16; // 16-bit signed int struct APV_HEADER { BYTE APV_ID; // APV Identifier number on the FEC card (0 to 15) BYTE N_CHANNELS; // the number of channels which will be following the header BYTE N_SAMPLES; // the number of samples per channel BYTE ZS_ERROR; // Error code from the Zero Suppression Block, meaning have to be defined WORD16 FLAGS; // bit 0 : 0 Classic zero suppression, 1 Zero suppression with peak finding // bits 1 to 15 are still reserved for future use WORD32 RESERVED; // 32 bits reserved for future use }; struct CHAN_INFO { BYTE RESERVED; // 8-bits reserved for future use BYTE CHAN_ID; // Channel identifier, // APV physical channels are 0 to 127, // 128 could be used for the common mode average // 129 for error codes from the APV (pipeline address(8 bits) & error bit) INT16 CHANDATA[N_SAMPLES]; // 16 bit words, actual data will be 13- bits wide }; APV Header At each read-out from the ZS buffer for a given APV, the ZS code will answer with this sequence. CHAN_INFO CHAN_INFO CHAN_INFO N_CHANNELS In classic zero suppression mode, the CHANDATA array contains the actual samples. In peak finding mode, the CHANDATA array has always two elements: CHANDATA[0] = peak value CHANDATA[1] = peak time