1 / 17

iTOP Electronics Effort

iTOP Electronics Effort. Lynn Wood. PACIFIC NORTHWEST NATIONAL LABORATORY. JULY 17 , 2013. Topics. Belle II DAQ System COPPER/FINESSE iTOP DAQ System FINESSE firmware COPPER software Next Steps BASF2 COPPER-III FINESSE redesign. Belle II DAQ System. Goal: unified architecture

chibale
Download Presentation

iTOP Electronics Effort

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. iTOP Electronics Effort Lynn Wood PACIFIC NORTHWEST NATIONAL LABORATORY JULY 17, 2013

  2. Topics • Belle II DAQ System • COPPER/FINESSE • iTOP DAQ System • FINESSE firmware • COPPER software • Next Steps • BASF2 • COPPER-III • FINESSE redesign

  3. Belle II DAQ System • Goal: unified architecture • Smooth transition from Belle I • Common readout hardware:“COPPER” • Common data link protocol:“Belle2Link” • Common readout software framework: “roobasf/basf2” • Goal: scalability • Luminosity at start of experiment will be several times lower than design luminosity, but trigger rate may be just as high • Nominal L1 trigger rate: 20 kHz, design average rate set as 30 kHz

  4. Brief Belle II DAQ History • Belle I had dead-time issues with original LeCroyFastBus-based DAQ system • Started in-house design in 2002 • COPPER-I demo successful, took latency from 29us down to 3us • Replaced all LeCroy systems in Belle I with COPPER-II (2005-08) • For Belle-II, expect to use a combination of COPPER-II and redesigned COPPER –III

  5. COPPER-II • COPPER = COmmon Pipelined Platform for Electronics Readout • 9U VME board • Four detector front-end slots • Remote boot (no local filesystem) • COPPER-III redesign for Belle II will replace obsolete components, add new CPU and Gigabit Ethernet, fix bugs

  6. COPPER-II CPU • CPU is Linux-based embedded PC • PCI Mezzanine Card = PMC • COPPER-II uses 800MHz Pentium-III • Issues: 512MB, lack of support • COPPER-III will use 1.6 GHz Intel Atom • “New” features: VGA, USB, GbE, etc. • Issues: power requirements

  7. COPPER-II FINESSE Interface • Interface to specific detectors handled by custom daughtercards • FINESSE = “Front-end INstrumentation Entity for Sub-detector Specific Electronics” • Standard interface to COPPER FIFOs for data and local bus for control/status • (NOTE: most detectors settled on common HSLB (High Speed Logic Board) FINESSE design for Belle II)

  8. COPPER-II Other features • Global clock and trigger comein on “TTRX” board • Signals from “FTSW” (FrontendTiming Switch) board • Distributes deskewed clock and trigger to multiple destinations • FIFO control/status on dedicated COPPER FPGA • VME, secondary Ethernet available, but not commonly used • Second PMC slot for expansion (not pictured)

  9. COPPER-II Data Flow • Data read into FINESSE • Processed then stored in 1MB FIFOs on local bus • DMA on COPPER CPU monitors FIFO status, reads out data when full/etc. • COPPER CPU sends datato host PC

  10. iTOP DAQ for Cosmic/Beam Tests • Previous testing (CERN, Fermilab, bench) used custom PCIe board from U. Hawaii for readout • DAQ goal for 2012-13 cosmic ray/beam tests: demonstrate COPPER-based readout • Requirements: • Base hardware: COPPER-II, custom 9U VME crate • iTOP-specific FINESSE (hardware, firmware) • COPPER-based readout software for iTOP FINESSE

  11. iTOP DAQ for Cosmic/Beam Tests COPPER CPU (PC1) FINESSE A SCROD • Trigger sequence: • TOF trigger via NIM logic • Trigger passed to SCRODs via FTSW • Data readout from SCROD by FINESSE/COPPER • Trigger data readout by USB daughtercard on COPPER • Trigger clear from FINESSE back to NIM bin SCROD CMD Tx/Rx iTOP bar Fiber Remote boot/ Data Readout FINESSE B SCROD SCROD Local bus Ethernet TTL COPPER server (PC2) FIFO FIFO FTSW Trigger Clear TOF Data Readout CAMAC crate TOF NIM USB USB

  12. FINESSE Support for Cosmic/Beam Tests • U. Hawaii has “DSP_FINESSE” design • Up to 4 fiber links to SCRODs • Spartan-6 FPGA • Two dual-core BlackFin DSPs • Only basic example firmware and code – no fiber readout, data handing, etc. • Minimal DMA example • No existing COPPER drivers, only examples from other FINESSE boards • COPPER runs old (2.4), customized version of Linux • Effort during 2011-12: • wrote COPPER drivers to communicate with FINESSE • Added COPPER DMA support for FIFO readout • Wrote FINESSE firmware to read data from SCRODs, send to COPPER FIFOs • Wrote demonstration code to loop data through DSP before writing to COPPER

  13. COPPER-II Software for Cosmic/Beam Tests • To provide data-taking capabilities for cosmic and beam tests, overall framework was developed in 2012-13 • Python-based scripts • Speed-critical portions (readout) in C libraries • “Experiment” directory structure records all configuration settings, log files, and data for each run • Scripts generated for pedestal, pulser, laser, and beam runs • Used to debug electronics at KEK in 2013 • Used for data-taking at KEK and LEPS • Scripts updated during electronics bring-up and during LEPS data-taking to eliminate bugs, better match expected behavior and utilization • Multiple staff present at KEK/LEPS almost continuously in Jan-Jun 2013

  14. Next Steps • Conversion to BASF2 readout • Belle II readout settling on BASF2 framework on COPPER CPU • Plan to use current DAQ software for next beam test(s), but will start porting on BASF2 readout • FINESSE redesign • Processing required for real-time analysis is not yet clear • Unclear that current configuration will work • Spartan-6 on SCROD “packed to the gills” • Data transfer rate between FPGA and DSP on FINESSE limited to 75MHz • Transition to COPPER-III • Currently developing with COPPER-II, but iTOP will use COPPER-III • COPPER-III boards in short supply (all at KEK) • Hardware should be largely “transparent”, but CPU will be running new version of Linux (2.6 kernel) – possible non-trivial driver changes

  15. Future Processing Requirements • Possible changes: • Replace FPGA on SCROD (likely to happen anyway) • If we replace Spartan-6 with Virtex-7 – enough to handle all processing? • Could then use “standard” FINESSE design (HSLB) • Replace DSP_FINESSE with new design • Some redesign already required (obsolete components) • We have started investigating FINESSE redesign • Researched different processing units: Vertex-7, Vertex-5 w. PowerPC, ZynqSoC (FPGA + dual-core ARM), quad-core ARM processor • Wrote draft design document based on Zynq • Kintex-7 FPGA (125-350K logic cells) • 0.7-1GHz dual-core ARM Cortex-A9 • 256KB on-chip memory, 8 DMA controllers • High-speed interconnect between CPU and FPGA • Starting on benchmarking effort with dev kit

  16. Data Handling • Combine FPGA-based and CPU-based processing • FPGA receives data andstores to memory via DMA, notifies CPU • CPU manages data,passes commands to FPGA for dedicated processing • FPGA writes data toCOPPER FIFO • CPU can make decisionsbased on data rates, quality metrics, etc.

  17. Potential Design Simplification • Looking into using existing Zynq “module” instead of full custom design • Simplifies layout, memory, etc. • Possibility of easy upgrade/downgrade later • Challenges: • Only a few vendors with larger Zynq on modules • Adds peripherals unnecessary for our application • Clocking requirements may not match Belle II requirements • Cost trade-offs: up-front design cost vs. higher per-unit cost • In unofficial discussion with Enclustra • SODIMM form factor (68 x 30mm) • Xilinx Zynq XC6Z030 • 512MB SDRAM, 512MB flash

More Related