IWORID 2002 - P.Randaccio Medipix2 Parallel Readout System 4-th IWORID Amsterdam 8 – 12 September 2002 V. Fanti, R. Marzeddu, P. Randaccio Dipartamento.

Slides:



Advertisements
Similar presentations
MUHAMMAD AHMED HUSSAIN
Advertisements

Provide data pathways that connect various system components.
6-April 06 by Nathan Chien. PCI System Block Diagram.
HARDWARE Rashedul Hasan..
IT Essentials PC Hardware & Software v5.0
CSNB373: Microprocessor Systems
PC Maintenance: Preparing for A+ Certification
Parts & Functions of a Computer. 2 Functions of a Computer.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
CPU Chips The logical pinout of a generic CPU. The arrows indicate input signals and output signals. The short diagonal lines indicate that multiple pins.
How Computers Work Chapter 1.
IWORID2004 Glasgow1 Design and test of a data acquisition system based on USB interface for the Medipix2 chip Università di Cagliari Sezione di Cagliari.
Prepared by Careene McCallum-Rodney Hardware specification of a computer system.
INFO1119 (Fall 2012) INFO1119: Operating System and Hardware Module 2: Computer Components Hardware – Part 2 Hardware – Part 2.
LOGO. Types of System Boards  Nonintegrated System Board  Nonintegrated system boards can be easily identified because each expansion slot is usually.
PHY 201 (Blum) Buses Warning: some of the terminology is used inconsistently within the field.
Parts and usage. Motherboard is the most important component in any personal computer. It contains almost every important elements of the computer. Sometimes.
A+ Guide to Hardware, 4e Chapter 1 Hardware Needs Software to Work.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 1 Introducing Hardware.
Computer Organization CSC 405 Bus Structure. System Bus Functions and Features A bus is a common pathway across which data can travel within a computer.
COMP 1017: Digital Technologies Session 7: Motherboards.
Chapter 2 How Computers Work.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Peripheral Busses COMP Jamie Curtis. PC Busses ISA is the first generation bus 8 bit on IBM XT 16 bit on 286 or above (16MB/s) Extended through.
Figure 1-2 Inside the computer case
B.A. (Mahayana Studies) Introduction to Computer Science November March The Motherboard A look at the brains of the computer, the.
1 A+ Guide to Managing and Maintaining Your PC, Fifth Edition Hardware Needs Software to Work Hardware  Physical components of a computer  Visible part.
Organization of a computer: The motherboard and its components.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 1 Introducing Hardware.
Exercise 2 The Motherboard
A+ Guide to Managing and Maintaining your PC, 6e Chapter 1 Introducing Hardware.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 2 How an OS Works with Hardware and Other Software.
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
A+ Guide to Managing and Maintaining your PC, 6e Chapter 1 Introducing Hardware v0.95.
Buses Warning: some of the terminology is used inconsistently within the field.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets.
PRESENTATION ON MOTHERBOARD. MOTHERBOARD The motherboard is the main circuit board inside your PC. A motherboard is the central printed circuit board.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
Computer Hardware PC Components. Motherboard components 1.Ports 2.ISA Slot 3.PCI Slots 4.AGP Slot 5.CPU Slot 6.Chipset 7.Power connector 8.Memory sockets.
BUS IN MICROPROCESSOR. Topics to discuss Bus Interface ISA VESA local PCI Plug and Play.
Computer Architecture Part IV-B: I/O Buses. Chipsets Intelligent bus controller chips found on the motherboard Enable higher speeds on one or more buses.
Motherboard and Bios. Generic Modern Motherboard.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 3 – The Motherboard.
Chapter 3 System Configuration The Complete A+ Guide to PC Repair 5/e Update.
CS-350 TERM PROJECT COMPUTER BUSES By : AJIT UMRANI.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK– PARALLEL BUS DEVICE PROTOCOLS 1.
Motherboard A motherboard allows all the parts of your computer to receive power and communicate with one another.
1 Chapter 2 Central Processing Unit. 2 CPU The "brain" of the computer system is called the central processing unit. Everything that a computer does is.
CPU/BIOS/BUS CES Industries, Inc. Lesson 8.  Brain of the computer  It is a “Logical Child, that is brain dead”  It can only run programs, and follow.
Input/Output Organization III: Commercial Bus Standards CE 140 A1/A2 20 August 2003.
System Bus.
3/22 How a Bus Works. Roll Call Lecture: –general traces addresses sizes types –How a PCI bus works.
Chapter 2.
 System Requirements are the prerequisites needed in order for a software or any other resources to execute efficiently.  Most software defines two.
Motherboard Group 1 1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
PCI 9052 소개 권 동혁. Contents 1.Introduction 2.Major features 3.PCI 9052RDK-LITE.
Intro to PCI 2002 년 1 월 21 일 신 준 헌. Contents PCI bus features General PCI bus model PCI Device vs. Function Specifications.
THE COMPUTER MOTHERBOARD AND ITS COMPONENTS Compiled By: Jishnu Pradeep.
MOTHER BOARD PARTS BY BOGDAN LANGONE BACK PANEL CONNECTORS AND PORTS Back Panels= The back panel is the portion of the motherboard that allows.
DIRECT MEMORY ACCESS and Computer Buses
Bus Systems ISA PCI AGP.
CS 286 Computer Organization and Architecture
Maintenance of Computer System
I/O BUSES.
PC Buses & Standards Bus = Pathway across which data can travel. Can be established between two or more computer elements. PC has a hierarchy of different.
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
Presentation transcript:

IWORID P.Randaccio Medipix2 Parallel Readout System 4-th IWORID Amsterdam 8 – 12 September 2002 V. Fanti, R. Marzeddu, P. Randaccio Dipartamento di Fisica e Sezione INFN Cagliari

IWORID P.Randaccio Dynamic imaging with Medipix2 ONE CHIP 256x256x14 bits per frame 25 frames per second 2.3 x 10 7 bits per second 2.9 x 10 6 bytes per second EIGHT CHIPS 1.8 x 10 8 bits per second 2.3 x 10 7 bytes per second Serial I/O: 180 MHz Parallel I/O 32 bit: 5.7 MHz However, the readout speed should be as high as possible to reduce the dead time; aiming to 10% DT we should reach frequencies 10 times higher.

IWORID P.Randaccio The PC platform as acquisition system Actually the PC is the best solution for: Acquisition Processing Visualization Storage in imaging systems.

IWORID P.Randaccio PC architecture North Bridge (Hi speed devices) South Bridge (Low speed devices) I/O & interconnect busses: Host Bus Memory Bus AGP (Graphics) V-link (interbridge connection) ATA (Hard disks) PCI USB IEEE 1394 firewire Legacy (ISA) …. obsolete

IWORID P.Randaccio Computer speed The typical processor clock frequency is 1 GHz The word length is 32 bits = 4 bytes but …. the data transfer rate is not 4 Gbyte/s ! The speed is limited by the bus clock: Host bus (between CPU and North Bridge): 200 MHz Memory : 200 MHz AGP(4x) : 132 MHz ATA : 100 MHz PCI : 33 MHz ISA : 8 MHz

IWORID P.Randaccio Maximum transfer speed (the effective one) Parallel busses single modeburst modeDMA Legacy bus PCI bus All values expressed in Mbytes/s Serial busses Low speedFull speed USB Firewire IEEE1394a

IWORID P.Randaccio The PCI bus : essentials Peripheral Component Interconnect (PCI) 32-bit multiplexed data/address bus Clock frequency : 33 MHz (66 MHz) Maximum (theo) transfer rate : 132 MB/s (264 MB/s) 3.3V & 5V operability Plug and Play single mode e burst mode transaction reflected wave switching

IWORID P.Randaccio Transmission line Standard method: incident wave switching V X V TH bus end Incident wave incident point t < T prop. V X V TH bus end t > T prop. Incident wave VME, ISA, EISA, …. busses BUS R term Slot 1Slot 2Slot 3Slot 4Slot 5Slot 6Slot 7Slot 8Slot 9Slot 10 Incident point

IWORID P.Randaccio PCI method: reflected wave switching V X V TH bus end Incident wave incident point t < T prop. V X V TH bus end incident point T prop <t <2 T prop. Reflected wave BUS Slot 1Slot 2Slot 3Slot 4Slot 5Slot 6Slot 7Slot 8Slot 9Slot 10 Incident point InitiatorTarget

IWORID P.Randaccio PCI bus length limit T_cyc Clock device #1 T_low T_hig h T_skew Clock device #2 Dev #nDev #1 d Dev #2 T_prop  10 ns ; d = bus length ; v = 2 ·10 8 m/s Worst case:  x = 2d  x = v ·T_prop = 2 m d  1 m (theo) T prop = 30 ns – T val – T su - T skew

IWORID P.RandaccioBridge Local bus (CMOS) PCI bus BRIDGE Logic & I/O circuits Connection between PCI bus and local bus for timing, operating voltage (5V/3.3V/2.2V), protocols

IWORID P.Randaccio PLX PCI9054 Bus Master I/O Accelerator

IWORID P.Randaccio Bridge PLX9054 Bus Master interface 32-bit data bus, 28-bit address bus 3.3V, 5V tolerant Local bus clock up to 50 MHz Dual DMA channels Six Read/Write FIFOs 16 Lword Single and burst mode operation (block transfer up to 16 LWord) Unlimited burst length Memory spaces remap (up to 256 Mbytes of memory)

IWORID P.Randaccio Burst read mode Local BusPCI Bus PCI Read Request The bridge prefetches data from Local Bus device at max. clock speed Prefetched data is stored in the internal FIFO PCI bus reads data from the FIFO The PCI bridge returns data from internal FIFO in sequential address read operations until FIFO is empty Read FIFO (16 x 32 bit) Read D 0 Read D 1 Read D 15 = empty= full Read D 2

IWORID P.Randaccio I/O burst advantage North bridge CPU South Bridge Local Bus PCI Bus FIFO PCI/Local bridge Host/PCI bridge FIFO Host memory Bus access (address, data, control cycles) slows down I/O operation. The prefetch with FIFOs reduces the time needed for bus access operations by a factor 16. CPU reads data directly from FIFO at very high speed.

IWORID P.Randaccio Reading data from Medipix2 parallel port Acquisition rate is about 64 MByte/s 32 bits - 16 MHz mean acquisition rate PCI bridge reads 16 Lword from Medipix2 parallel port through local bus CPU reads data from FIFO

IWORID P.Randaccio Most PCs do not support burst read ! If the North Bridge has no FIFO (Intel bridges) the CPU readout phase is slower Acquisition rate is about 10 MByte/s

IWORID P.Randaccio Reading from a PCI device 1 M 4 G BIOS ROM PCI memory System RAM CPU It is like a memory block transfer from PCI Address Space to program data. From the software point of view it is just a move instruction. Each data transfer between bridges and busses is transparent to the software.

IWORID P.Randaccio PCI Local Spaces Local bus BRIDGE Space1Space0Space2Space3Space4 Configuration Address Space I/O Address Space A PCI device can be configured as five memory spaces with configurable address offset and range

IWORID P.Randaccio Memory space reserved for Medipix data Medipix matrix data read through parallel port Serial data Control Status Not assigned Local Space 4 Local Space 3 Local Space 2 Local Space 1 Local Space 0

IWORID P.Randaccio Medipix2 Testboard 127 I/O & Power Supply PCI BoardMotherboard Flat cables 34-pin MPRS: general schematic

IWORID P.Randaccio Line drivers from Medipix to DAQ CMOS - LVDS drivers Power Supply, voltage regulator 3.3V – 2.2V Motherboard Drivers Lvds  Cmos Z-adapter Medipix 2.2 V Voltage Regulator Test Board 34-pin I/O flat cables

IWORID P.Randaccio Motherboard picture Medipix TB ConnectorDRIVERs Voltage Reg. OUT Conn.IN Conn. CMOS  LVDS Z-adapter

IWORID P.Randaccio DAQ: PCI board PCI Universal card for 32-bit, 33 MHz slot. Main components: PCI Bridge: connection from PCI Bus to Local Bus Registers for output lines Buffers for input lines Address decode circuit Local Clock circuit Voltage regulator 3.3V Serial Eeprom RegistersBuffers Bridge PCI Clock 3.3 V Address Decode EEPROM

IWORID P.Randaccio PCI Board picture Address decode Input connector Output connector Output registers Input buffers Clock 3.3V reg. EepromBridge

IWORID P.Randaccio PCI Board picture

IWORID P.Randaccio Software SoftwareHardware Library Medipix.dll (C++) Control, acquisition & visualization (VBasic) PCI board Motherboard Medipix2

IWORID P.Randaccio Utility software: PCI board control panel  Scan PCI bus  Open device  Read/write test  Internal registers configuration

IWORID P.Randaccio Acquisition utilities  Set the DACs  Reset matrix data  Set pixel registers  Readout

IWORID P.Randaccio Image acquisition timing Medipix2 MPRS Raw data memory MPRS Readout Stop Start X-rays Image reconstruction routine Image Memory Medipix photon counting phase time 2 ms ~38 ms ~ 0 ms

IWORID P.Randaccio Image reconstruction Any image processing is made by software after the acquisition, in particular: Image reconstruction with deserialization and derandomization The total time is : 256x8x14x32xTs = xTs where Ts is the period of the inner software loop. The reconstruction time depends on CPU speed: however with a normal PC it lasts no more than 10 ms The software does the reconstruction during the Medipix2 photon counting phase, so it does not slow down the process.

IWORID P.Randaccio Conclusions Parallel readout seems to be appropriate for the Medipix2 dynamic imaging acquisition. Actual PCs are convenient platforms for the image acquisition, processing, storage and visualization. Interfaces based on PCI bus are easy to develop and fast enough for our purposes. The hardware complexity is transparent for the software thanks to the bridges. Image reconstruction made by software simplifies MPRS hardware design.