Introduction of DAQ system: E906 as an example

Slides:



Advertisements
Similar presentations
Bus arbitration Processor and DMA controllers both need to initiate data transfers on the bus and access main memory. The device that is allowed to initiate.
Advertisements

1 Dynamic Interconnection Networks Buses CEG 4131 Computer Architecture III Miodrag Bolic.
Computer Buses A bus is a common electrical pathway between multiple devices. Can be internal to the CPU to transport data to and from the ALU. Can be.
I/O Organization popo.
INPUT-OUTPUT ORGANIZATION
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
JLab High Resolution TDC Hall D Electronics Review (7/03) - Ed Jastrzembski.
Programmable Interval Timer
Chapter 10 Input / Output Organization CS 147 Yueyang Zhou.
Input/Output Organization Asynchronous Bus
1/1/ / faculty of Electrical Engineering eindhoven university of technology Processor support devices Part 1:Interrupts and shared memory dr.ir. A.C. Verschueren.
Introduction of trigger system: E906 as an example Shiuan-Hal,Shiu 05/02/
Direct Memory Access Introduction to 8237
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Interrupts (contd..) Multiple I/O devices may be connected to the processor and the memory via a bus. Some or all of these devices may be capable of generating.
VMEbus Outline –Introduction –Electrical Characteristics –Mechanics –Functions –Data Transfer –Arbitration –Priority Interrupt Bus –Utilities Goal –Understand.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
680XX Hardware Interface Outline Goal Reading
2. Methods for I/O Operations
NS Training Hardware. System Controller Module.
INPUT-OUTPUT ORGANIZATION
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
Computer Architecture Lecture 08 Fasih ur Rehman.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Digital System Bus A bus in a digital system is a collection of (usually unbroken) signal lines that carry module-to-module communications. The signals.
MB, 9/8/041 Introduction to TDC-II and Address Map Mircea Bogdan (UC)
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
Trigger Supervisor (TS) J. William Gu Data Acquisition Group 1.TS position in the system 2.First prototype TS 3.TS functions 4.TS test status.
NS Training Hardware.
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
E906/Drell-Yan: Monte Carlo, Data Acquisition and Data Analysis Paul E. Reimer Expected Rates and Monte Carlo (WBS 2.5.1) Data Acquisition (WBS 2.4) –CODA.
Prototype Test of SPring-8 FADC Module Da-Shung Su Wen-Chen Chang 02/07/2002.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
SNS Integrated Control System SNS Timing Master LA-UR Eric Bjorklund.
DMA Versus Polling or Interrupt Driven I/O
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
NanoPHYS’12 – December 17-19, 2012 K. Nakano, S. Miyasaka, K. Nagai and S. Obata (Department of Physics, Tokyo Institute of Technology) Drift Chambers.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
EEE440 Computer Architecture
SNS Integrated Control System Timing Clients at SNS DH Thompson Epics Spring 2003.
Testing of Latch-TDC Da-Shung Su Jia-Ye Chen, Hsi-Hung Yao, Su-Yin Wang, Ting-Hua Chang, Wen-Chen Chang 2011/07/13.
Modes of transfer in computer
Chapter 4 MARIE: An Introduction to a Simple Computer.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
Bus, Cache and shared memory. Bus System System bus of a computer system operates on contention basis Effective bandwidth available to each processor.
NS Training Hardware Traffic Flow Note: Traffic direction in the 1284 is classified as either forward or reverse. The forward direction is.
Jefferson Laboratory Hall A SuperBigBite Spectrometer Data Acquisition System Alexandre Camsonne APS DNP 2013 October 24 th 2013 Hall A Jefferson Laboratory.
System Integration Module MTT Motoola SYSTEM INTEGRATION MODULE (SIM)
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
DAQ deadtime memo Kaz, Grass 2012/01/04 1. Current dead time Dead time measured on 2011/09/29  With TDCmax=4, Deadtime =350 us  With TDCmax=8, Deadtime.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
 The Programmable Interrupt Controller (PlC) functions as an overall manager in an Interrupt-Driven system. It accepts requests from the peripheral equipment,
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Overview of E906 Electronics, Readouts, and DAQ System E906 DAQ workshop Ting-Hua Chang (7/6 – 7/7/2009)
Interconnection Structures
Department of Computer Science and Engineering
Chapter 6 Input/Output Organization
Overview Parallel Processing Pipelining
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Hall A Compton Electron detector overview
Department of High Energy Physics
Presentation transcript:

Introduction of DAQ system: E906 as an example Su-Yin Wang (Grass) 2011/06/20

Data Acquisition System trigger Front End Electronic Decoder Physics Event Detector

Light Antiquark Flavor Asymmetry: Brief History Naïve Assumption: NMC (Gottfried Sum Rule) NA51 (Drell-Yan, 1994) E866/NuSea (Drell-Yan, 1998)

Why Drell-Yan? To lowest order: Experimental measurements (E866, CERN NA51 and E906):

Extracting d-bar/-ubar From Drell-Yan Scattering E906 in NM4 will extend the DY measurements done in E866 120 GeV proton beam (MI) vs 800 GeV proton beam (E866) E906 expects systematic uncertainty to remain at approx. 1% in cross section ratio.

Solid Iron Focusing Magnet, Hadron absorber and beam dump E906 Spectrometer Station 2 and 3: Hodoscope array Drift Chamber tracking E906 Spectrometer Station 1: Hodoscope array MWPC tracking Hadron Absorber Solid Iron Focusing Magnet, Hadron absorber and beam dump Mom. Meas. (KTeV Magnet) Station 4: Hodoscope array Prop tube tracking 4.9m 25m Liquid H2, d2, and solid targets

NM4/KTeV Hall (after installation) HODO 1 HODO 2 Station 3: Drift Chamber HODO 3 Station 4: Proportional Tubes HODO 4

Readout Electronics HODO signal Amplifier High voltage Latch cards Discriminator

TDC Overview ROC Latch ROC ROC St1, St2, St3, St4 Data Trigger (~600 ns delay) ROC Latch CPU Hodo TI ROC CODA TS Beam start Beam stop ROC TDC CPU TI St1, St2, St3, St4 Data Trigger Slow Control MySQL Control by CODA We are able to read all Hodo and slowcontrol events now

Front End Electronic Latch Card as an Example

Setup: CSR2(13-8) =11 CSR2(5-0) =bin (001110) Adjustable Delay 64 clocks * 8 ns = 512 ns Delay=0, earliest signal (default) Delay=3f, edge signal Shift register 1 2 3 4 5 6 8 9 10 11 12 … 60 61 62 63 OR operation CSR2(5-0) Real data Latch card get 0 ? Latch card get 1 Trigger 8*(63-11)=8*52=416 ns

Latch Card Data Decoding 0x18ffff32 0xfe000045 D31 D30 D29 D28 D27 D26 D25 D24 … D7 D6 D5 D4 D3 D2 D1 D0 Ch31 Ch30 Ch29 Ch28 1 Ch27 Ch26 Ch25 Ch24 ffff Ch7 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Ch0 8 3 2 D31 D30 D29 D28 D27 D26 D25 D24 … D7 D6 D5 D4 D3 D2 D1 D0 Ch63 1 Ch62 Ch61 Ch60 Ch59 Ch58 Ch57 Ch56 0000 Ch39 Ch38 Ch37 Ch36 Ch35 Ch34 Ch33 Ch32 f e 4 5

Tracking Example It’s NOT from the Hodos…

But… How to Get Data? There are two actions though VME bus Read and Write Address is the key All communications are controlled by CPU Latch Card CPU Interrupting Module VME Crate The bus is controlled by a set of nine lines, known as the arbitration bus. All communications are controlled by the card in slot one of the Eurocard chassis, known as the arbiter module. Two arbitration modes are supported - Round Robin and Prioritized. Regardless of the arbitration mode, a card can attempt to become the bus master by holding one of the four Bus Request lines low. With round robin arbitration, the arbiter cycles amongst Bus Request lines BR0-BR3 to determine which of the potentially-simultaneous requesters will be granted the bus. With priority arbitration, BR0-BR3 use a fixed priority scheme (BR0 lowest, up to BR3 highest) and the arbiter will grant the bus to the highest priority requestor. When the arbiter has determined which of the bus requests to grant, it asserts the corresponding Bus Grant line (BG0 - BG3) for the level that won bus mastership. If two masters simultaneously request the bus using the same BR line, a bus grant daisy-chain effectively breaks the tie by granting the bus to the module closest to the arbiter. The master granted the bus will then indicate that the bus is in use by asserting Bus Busy (BBSY*). At this point, the master has gained access to the bus. To write data, the card drives an address, an address modifier and data onto the bus. It then drives the address strobe line and the two data strobe lines low, to indicate the data is ready, and drives the write pin to indicate the transfer direction. There are two data strobes and an *LWORD line, so the cards can indicate if the data width is 8, 16, or 32 bits (or 64 in VME64). The card at the bus address reads the data and pulls the data transfer acknowledge low line when the transfer can complete. If the transfer cannot complete, it can pull the bus error line low. Reading data is essentially the same but the controlling card drives the address bus, leaves the data bus tri-stated and drives the read pin. The slave card drives read data onto the data bus and drives the data strobe pins low when the data is ready. The signalling scheme is asynchronous, meaning that the transfer is not tied to the timing of a bus clock pin (unlike synchronous buses such as PCI).

Write ‘X’ Offset + 0x00C. Set up the user-defined delay range and combination of OR-windows in CSR2. Write ‘X’ Offset + 0x028. Trigger enabled. LED Red_L should be on. Write ‘X’ Offset + 0x02C. Trigger disabled. Write ‘X’ Offset + 0x000. Set proper FIFO status mode. Read  Offset + 0x008. Access information of number of events in FIFO. Read  Offset + 0x100. Read Data. Data access 或 Block transfer (BLT).

Now, How Do We Know There is a Tigger Coming? An interrupting module asserts one of the interrupt request lines. The interrupter responds by transferring a status/ID on the data bus to describe the interrupt. The interrupt handling module (usually a CPU) will usually use this status/ID number to identify and run the appropriate software interrupt service routine. Latch Card CPU Interrupting Module VME Crate VME also decodes all seven of the 68000's interrupt levels onto a 7-pin interrupt bus. The interrupt scheme is one of prioritized vectored interrupts. The interrupt request lines (IRQ1 - IRQ7) prioritize interrupts. An interrupting module asserts one of the interrupt request lines. Any module on the bus may potentially handle any interrupt. When an interrupt handling module recognizes an interrupt request at a priority it handles, it arbitrates for the bus in the usual fashion described above. It then performs a read of the interrupt vector by driving the binary version of the IRQ line it handles (e.g. if IRQ5 is being handled, then binary 101) onto the address bus. It also asserts the IACK line, along with the appropriate data transfer strobes for the width of the status/ID being read. Again, LWORD*, DS0* and DS1* allow status/ID read cycles to be 8, 16, or 32 bit wide transfers but most existing hardware interrupters use 8 bit status/IDs. The interrupter responds by transferring a status/ID on the data bus to describe the interrupt. The interrupt handling module (usually a CPU) will usually use this status/ID number to identify and run the appropriate software interrupt service routine.

Edit the Control Diagram

User Friendly Interface- CODA

Detector (Hodoscopes, MWPC, Prop-tube) particle data computer 3 CONTROL Detector (Hodoscopes, MWPC, Prop-tube) particle data computer 3 VME crate CPU Trigger system computer 2 Recorder system Offline analyzer Latch TDC Latch TDC Online analyzer Latch TDC Slow Control PAW or ROOT Buffer computer 1 ROOT CODA Collector Offline Analyzer Online Analyzer deCODA Hard disk TCP/IP TPC/IP MySQL

The bus is controlled by a set of nine lines, known as the arbitration bus. All communications are controlled by the card in slot one of the Eurocard chassis, known as the arbiter module. Two arbitration modes are supported - Round Robin and Prioritized. Regardless of the arbitration mode, a card can attempt to become the bus master by holding one of the four Bus Request lines low. With round robin arbitration, the arbiter cycles amongst Bus Request lines BR0-BR3 to determine which of the potentially-simultaneous requesters will be granted the bus. With priority arbitration, BR0-BR3 use a fixed priority scheme (BR0 lowest, up to BR3 highest) and the arbiter will grant the bus to the highest priority requestor. When the arbiter has determined which of the bus requests to grant, it asserts the corresponding Bus Grant line (BG0 - BG3) for the level that won bus mastership. If two masters simultaneously request the bus using the same BR line, a bus grant daisy-chain effectively breaks the tie by granting the bus to the module closest to the arbiter. The master granted the bus will then indicate that the bus is in use by asserting Bus Busy (BBSY*). At this point, the master has gained access to the bus. To write data, the card drives an address, an address modifier and data onto the bus. It then drives the address strobe line and the two data strobe lines low, to indicate the data is ready, and drives the write pin to indicate the transfer direction. There are two data strobes and an *LWORD line, so the cards can indicate if the data width is 8, 16, or 32 bits (or 64 in VME64). The card at the bus address reads the data and pulls the data transfer acknowledge low line when the transfer can complete. If the transfer cannot complete, it can pull the bus error line low. Reading data is essentially the same but the controlling card drives the address bus, leaves the data bus tri-stated and drives the read pin. The slave card drives read data onto the data bus and drives the data strobe pins low when the data is ready. The signalling scheme is asynchronous, meaning that the transfer is not tied to the timing of a bus clock pin (unlike synchronous buses such as PCI).