BWS motion control electronics BI technical board – 09.06.2016 J. Emery & P. Andersson BWS motion control electronics - J. Emery - 09.06.2016.

Slides:



Advertisements
Similar presentations
Digital RF Stabilization System Based on MicroTCA Technology - Libera LLRF Robert Černe May 2010, RT10, Lisboa
Advertisements

MotoHawk Training Model-Based Design of Embedded Systems.
JET Algorithm Attila Hidvégi. Overview FIO scan in crate environment JET Algorithm –Hardware tests (on JEM 0.2) –Results and problems –Ongoing work on.
4 Dec 2001First ideas for readout/DAQ1 Paul Dauncey Imperial College Contributions from all of UK: result of brainstorming meeting in Birmingham on 13.
BI SW for LINAC4 On behalf of BE/BI/SW BI software development process Specifications List of BI Systems – Not covered: PSB ring systems Conclusions Lars.
Programmable logic control Data Processing Computer System Key Board Light Pen Mouse PLC a Process Control Computer System Motion Sensor Sound Sensor.
Status of the digital readout electronics Mauro Raggi and F. Gonnella LNF Photon Veto WG CERN 13/12/2011.
LHC Beam Dump System Technical Audit Trigger Synchronisation Unit.
Electronics for PS and LHC transformers Grzegorz Kasprowicz Supervisor: David Belohrad AB-BDI-PI Technical student report.
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
Tuesday September Cambridge1 GDCC “next replacement of the LDA” Franck GASTALDI.
GBT Interface Card for a Linux Computer Carson Teale 1.
Status of Data Exchange Implementation in ALICE David Evans LEADE 26 th March 2007.
14 Sep 2005DAQ - Paul Dauncey1 Tech Board: DAQ/Online Status Paul Dauncey Imperial College London.
Proposal for Decisions 2007 Work Baseline M.Jonker for the Cocost* * Collimation Controls Steering Team.
The Actuator and Control unit CERN wire-scanner development review J.Emery for the BWS team.
C.Schrader; Oct 2008, CBM Collaboration Meeting, Dubna, Russia R/O concept of the MVD demonstrator C.Schrader, S. Amar-Youcef, A. Büdenbender, M. Deveaux,
BI day 2011 T Bogey CERN BE/BI. Overview to the TTpos system Proposed technical solution Performance of the system Lab test Beam test Planning for 2012.
Status of Global Trigger Global Muon Trigger Sept 2001 Vienna CMS-group presented by A.Taurok.
LHC Collimation Project Integration into the control system Michel Jonker External Review of the LHC Collimation Project 1 July 2004.
An Architecture and Prototype Implementation for TCP/IP Hardware Support Mirko Benz Dresden University of Technology, Germany TERENA 2001.
BWS electronics design status J.Emery & Luca, Pierre-Jean, Emiliano, Jose, Alexander and all past contributors!
LHC BLM Software revue June BLM Software components Handled by BI Software section –Expert GUIs  Not discussed today –Real-Time software  Topic.
Acquisition Crate Design BI Technical Board 26 August 2011 Beam Loss Monitoring Section William Vigano’ 26 August
01/04/09A. Salamon – TDAQ WG - CERN1 LKr calorimeter L0 trigger V. Bonaiuto, L. Cesaroni, A. Fucci, A. Salamon, G. Salina, F. Sargeni.
Barcelona 1 Development of new technologies for accelerators and detectors for the Future Colliders in Particle Physics URL.
XLV INTERNATIONAL WINTER MEETING ON NUCLEAR PHYSICS Tiago Pérez II Physikalisches Institut For the PANDA collaboration FPGA Compute node for the PANDA.
VFC-HD PROJECT STATUS AND OUTSTANDING SEPTEMBER 2015.
FEE Electronics progress Mezzanine layout progress FEE64 progress FEE64 initial testing Test mezzanine. A few of the remaining tasks 2nd October 2009.
BPM stripline acquisition in CLEX Sébastien Vilalte.
TEL62 update Franco Spinella INFN-Pisa 28/3/2012 CERN- TDAQ WG.
Rutherford Appleton Laboratory September 1999Fifth Workshop on Electronics for LHC Presented by S. Quinton.
DAQ ELECTRONICS 18 March 2015MEG Collaboration Meeting, Tokyo Stefan Ritt.
DHH Status Igor Konorov TUM, Physics Department, E18 PXD DAQ workshop Münzenberg –June 9-10, 2011.
29/05/09A. Salamon – TDAQ WG - CERN1 LKr calorimeter L0 trigger V. Bonaiuto, L. Cesaroni, A. Fucci, A. Salamon, G. Salina, F. Sargeni.
Requirements from BI and new instruments after LS1 LHC Optics Measurement and Correction Review; B.Dehning 1 Bernd Dehning CERN BE/BI
Enhancement Presentation Carlos Abellan Barcelona September, 9th 2009.
Programmable Logic Devices
MicroTCA Development and Status
Presented by Cédric Vulliez 12 April 2017
Software for Testing the New Injector BLM Electronics
Beam Wire Scanner (BWS) serial link requirements and architecture
RF acceleration and transverse damper systems
Microcontrollers, Basics Tips and Tricks with PIC MCUs
Prototyping SoC-based Gate Drive Logic for Power Convertors by Generating code from Simulink models. Researchers Rounak Siddaiah, Graduate Student-University.
2007 IEEE Nuclear Science Symposium (NSS)
Power and control electronics for the new fast wire scanners
Realising the SMP 1. Safe Machine Parameters Overview
Production Firmware - status Components TOTFED - status
LIU Wire Scanner Milestones June 2017
Injectors BLM system: PS Ring installation at EYETS
BI seminar agenda “Project context and Introduction to the collaboration with the HES-SO”, 10 min, Jonathan Emery, CERN “A Generic and Modular Protocol.
Investigation on the digital controller for the BWS
Working plan for 2017 Acquisition and Control Electronics
Chapter 7.2 Computer Architecture
Ewald Effinger, Bernd Dehning
The ELENA BPM System. Status and Plans.
COVER Full production should arrive today
WP02 PRR: Master Oscillator and RF Reference Distribution
LHC BLM system: system overview
Combiner functionalities
J. Emery, B. Dehning, E. Effinger, G. Ferioli, C
A High Performance SoC: PkunityTM
LHC BLM Software audit June 2008.
M. Kezunovic (P.I.) S. S. Luo D. Ristanovic Texas A&M University
Command and Data Handling
Chapter 13: I/O Systems.
LIU BWS Firmware status
Kaj Rosengren FPGA Designer – Beam Diagnostics
Presentation transcript:

BWS motion control electronics BI technical board – J. Emery & P. Andersson BWS motion control electronics - J. Emery

Secondary particles shower acquisition “INTELLIGENT DRIVE” Scanner control, monitoring and supplies Acquisition and supervision CPUCPU TIMINGTIMING BST receiver Overview: Control and Acquisition electronics Fast integration secondary shower Ethernet Optical link Long range resolver interface Motor inverter External temperature and vibration Optical encoder interface Wire resistivity HVCTRLHVCTRL Optical encoder interface PHASE 1 PHASE 2 BWS motion control electronics - J. Emery

Ethernet TCP/IP Optical link INTELLIGENT DRIVE Optical link ACQUISITION AND SUPERVISION Trigger input TIMINGTIMING General Machine Timing (GMT) Low jitter < 1ns, Granularity: 1ms BST receiver Beam Synchronous timing (BST) Bunch synchronisation (25 ns accurate clock) Revolution frequency synchro Triggers: scan start, post-mortem Granularity: 89us (LHC), low jitter < 1ns Beam Energy and Intensity CISV? BCT? CISV receiver ? Overview: External systems connections Expert monitoring FESA class CPUCPU Control room (CCC) Logging storage Long term storage for offline analysis Settings PHASE 1 PHASE 2 Start trigger input LTIM Beam Interlock System (BIS) BIS interface BWS motion control electronics - J. Emery

Context of this presentation Beam Wire Scanner meeting on the to expose the options for the digital system of the “Intelligent drive” These slides are extracted for this presentation It was decided to go for VME board + Mezzanine solution as other BI projects use this solution BWS motion control electronics - J. Emery

Three options for the digital platform BWS motion control electronics - J. Emery Option 1: - Standalone VME board + custom mezzanine - Use of the VFC in standalone mode - Dedicated analog/optical mezzanine Option 2: - Combined analogue-digital board - Use the FPGA reference design (Altera) - Add dedicated analog/optical circuits - Combine the 2 boards we have today Option 3: Starter-kit + mezzanine - Use Arria V SoC Dev kit - Dedicated analog/optical mezzanine Wire-Scanner I/O board Commercial development kit

CriteriaOption 1: VFC modified Option 2: Custom Option 3: DevKit Board size312 Powering312 EMI312 FPGA resources211 Board interfaces122 External Memory211 Testability111 Code reuse111 Methodology211 FW readiness321 HW readiness231 Hardware design effort231 Firmware design effort321 Summary table BWS motion control electronics - J. Emery

Scanner control architecture One intelligent drive (ID) per scanner - avoids multiplexing - constant monitoring/control - allow parallel scans - But imply more control and acquisition systems Deported processing from VME to ID Local monitoring and fault diagnostics One VME crate for multiple scanners - Number depends on CPU-Memory load So we try to minimize the ID size Will still require more space than current installation: (PSB: 3 racks instead of 1) Intelligent drive (6U) VFCVFC VFCVFC VFCVFC VFCVFC VME BWS motion control electronics - J. Emery

Intelligent drive architecture BWS motion control electronics - J. Emery Low voltages + DC-BUS Power Capacitor Sinus Filter Board inverter BWS discussion on the FPGA platform - J.Emery Measure board Will go to inverter Analog-digital board BWS control electronics specification :

Space availability for the board in ID BWS motion control electronics - J. Emery Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection Low voltages + DC-BUS Power Capacitor Sinus Filter Inverter board Measure board Will be combiner with inverter Analog-digital board Optical parts Crate study and integration: P. Andersson Space available for: analog, digital and optical Made possible by reducing: Inverter size Power supplies types internal arrangement (see Patrik’s presentation)

Option 1: VFC + MEZZANINE BWS motion control electronics - J. Emery Standard VFC + standard mezzanine Missing board space for components Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection Study and integration W. Vigano

Option 1: VFC + MEZZANINE BWS motion control electronics - J. Emery Standard VFC + maximized mezzanine Missing space for the optical components Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection Study and integration W. Vigano

3. Customized VFC + maximized mezzanine Remove the lower SPF cages Check power supply VADJ VFC in standalone mode Stack-up of VMC and mezzanine Dedicated analogue/optical mezzanine None standard FMC mezzanine shape due to the numerous components VME connectors for powering the boards BWS motion control electronics - J. Emery Boards integration and design W. Vigano & P. Andersson Option 1: VFC + MEZZANINE Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection

Option 2: Combined analog-digital board BWS motion control electronics - J. Emery Combination of the 2 boards we have today Use the FPGA reference design (Altera) Boards combinations & integration: P. Andersson Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection

Option 3: Starter-kit + mezzanine BWS motion control electronics - J. Emery Same configuration as today FPGA platform Arria V SoC Dev kit Modification of the wire-scanner mezzanine to fit the box Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection Boards combinations & integration: P. Andersson

Powering requirements BWS motion control electronics - J. Emery Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection VFC powering the BWS analog board: 12 [V] -> OK 3.3 [V] -> OK 1.8 [V] -> to be checked 1.8[V] is needed to operate the fast ADC, the whole board is using this voltage. VFC power scheme BWS analog powering VFC Vadj. Powering schematics  Confirmation from Andrea, 1.8V is possible  Is this functionality already tested on the board for another project?

EMI susceptibility BWS motion control electronics - J. Emery OptionsElectrical couplingCapacitive couplingInductive coupling 1. VFC Custom DevKit-++ Cablings: Similar philosophy of the cablings for all 3 solutions (use of top connectors) Other connections slightly worst on the DevKit since uses all sides EMI interferences: All 3 options will use same box => same shielding from external sources Only remains perturbations between analog and digital part Board realisation 1) Boards size 2) Powering requirements 3) Cabling and EMI protection Connections to the inverter & measure Opto-electronics Ethernet – optical link => We are preparing a new mezzanine which will sit next to the VFC to overcome potential issue

Digital architecture related criteria FPGA logic elements: - ok for today’s implementation: with the 3 options - Future implementation: Depends on processing complexity More flexibility using ARM CPU External memory potential limitation VFC TCP/IP Data transfer will probably be 4 to 10x slower than today (400 Mbits, 100 to 40 Mbits) BWS motion control electronics - J. Emery With NIOS Softcores *As today on the started kit **Altera "Nios II Performance Benchmarks" using NIOS Softcores Many parts missing Details next slides Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

External memory depth requirement Depends on the use cases Scans duration change a lot with speeds 20 [m/s] -> 48 [ms] (767 pts) 1 [m/s] -> 570 [ms] (9119 pts) Time between IN and OUT (We will limit this time to about 1s) Number of scans per user: min. 2 if we limit INOUT time to get same functionality max. determined by memory depth, mode of operation (expert/op), required repetition rate (can we fix it?) For SPS: With time between IN and OUT of 1s Worst Case: 2048/336 = 6 scans (full record OPS and resolver data) Best Case: 2048/ 5 = 409 scans (no offline processing of OPS/Res) VFC or for custom options have the same memory depth (2048 Mbytes) BWS motion control electronics - J. Emery Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

PSB basic period, 1.2s, one BWS cycle 0s 1200ms 275ms Injection 805ms Extraction IN OUTOUT IN-OUT delay >= 0 Min time for data transfer & system reset => 355ms Min time >= 275 System prepare 355ms to transfer 101 Mbytes => 298 Mbit/s Not possible with TCP/IP and VFC Needs full implementation using VME (Phase 2) 845ms BWS motion control electronics - J. Emery Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

Memory depth for the PSB 1)One measurement cycle (one IN, one OUT) 2)Data recorded continuously between in and out movement 3)INOUT time calculated for IN=275ms, OUT=805ms 4)Expert mode => Motion data and raw encoders data storage Will be used until we have the optical position sensor digitalised in the VME 5)Op Mode => Motion data and processed encoders data storage Expert mode (detailed data) Operational mode (OPS & RESOLVER processed) BWS motion control electronics - J. Emery IN-OUT delay used for the calculation: 20 m/s => =510ms 15m/s => /2-275=504ms 10m/s => /2-275=491ms 1m/s => /2-275=245ms Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

SPS Supercycle multiple BWS cycles per user Multiple users with different durations 1.2s to >20s Challenge arises when managing multiple scanning cycle per user Clear use cases must be given by OP/ABP to calculate the among of produced data and what data reduction we need to apply: - at the FPGA levels (ID and/or AS) - at the VME - CPU levels BWS motion control electronics - J. Emery Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

Memory depth for the SPS 1)Only one measurement cycle (one IN, one OUT) 2)Data recorded continuously between in and out movement 3)Large data grow due to INOUT delay => Can we limit INOUT to a maximum of 1s and do multi-scans per cycle? 4)Expert mode => Motion data and raw encoders data storage Will be used until we have the optical position sensor digitalised in the VME 5)Op Mode => Motion data and processed encoders data storage Expert mode (detailed data) Operational mode (OPS & RESOLVER processed) BWS motion control electronics - J. Emery Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

External memory access organisation Theoretical transfer: 12.8 Gbit/s Implemented: 6.4 Gbit/s Bank A: Fast ADC => 4x20MHzx16bits => 1.28 Gbit/s Bank B: Other ADC => 70*16k*32bits => Mbits/s Bank C: ARM dualcore ram memory Theoretical transfer: 6.4 Gbit/s Implemented ?: 3.2 Gbit/s Bank A: - 4x20MHzx16bits => 1.28 Gbit/s - 70*16k*32bits => Mbits/s - Softcore (Nios) RAM? Efficiency reduction due to arbiter + R/W and Random access: - write to multiple memory location (20M & 16K): ? 25% 3.2 Gbit/s / 4 => 0.8 Gbit/s => Potential limitation for OPS + Resolver HPS + ECC Bank C ARMFPGA 256Mx16 FPGA Bank A FPGA Bank B Arria V SoC StrKit FPGA 512Mx16 FPGA Bank A Arria V VFC BWS motion control electronics - J. Emery Is the external memories connections could be a limitation? Digital architecture 1) FPGA internal resources 2) Board interconnects 3) External memory

System & Firmware testability Expert mode detailed observation of large sets of data Operational mode Possible with fast TCP/IP using ARM cores Hardware link to VME - Transport and integrity of data - Transparent links between SoC domain - memory mapping between the FPGAs - JTAG link between FPGAs Implementation Sep 2016-January 2017 => THIS COULD BE REUSED FOR OTHER PROJECTS BWS motion control electronics - J. Emery Is the FPGA selection will determine the system and Firmware testability? Simulation level: Most of the final code written in VHDL => Verification (VHDL, SystemVerilog, Simulink) on simulator for all options. Component level: JTAG (and JTAG link) probing will be available on all options in the lab and on fields prototypes. System level: lab debugging and field validations: Same method could be used (TCP/IP access to large internal data with expert application), transfer rate will vary. Design process 1) Testability 2) Code reuse 2) Methodology

Code reuse between options? Ok for 2016 Update in 2017 Expert mode detailed observation of large sets of data Operational mode Possible with fast TCP/IP using ARM cores On-line processing in C - Monitoring functions - fast prototyping with access to detailed data Working version 3 banks (x32) of DDR3 1 bank for ARM cores 1 bank for Fast ADC 1 bank for Feedback data BWS motion control electronics - J. Emery Is the FPGA selection will determine code reusability? -Yes partially, because we have already large working code (option 2 and 3) -No, because all main functionalities will be in VHDL (reusable for all options) -Not really, not much reuse of existing VFC code for all options (no need of VME, BST, etc …) Design process 1) Testability 2) Code reuse 2) Methodology

Condition monitoring: Survey all system variables Condition monitoring and decision in real time. To react to unexpected even during a movement Large number of parameters to take into account Target reaction time within one feedback period 62.5us: 12k instructions Nios 62k instructions ARM BWS motion control electronics - J. Emery

Challenges of the ID processing Position, speed and torque precise controlling fully written in VHDL first version operational for 2016 Second version foreseen in 2017 (improve precision and flexibility) On-line data processing and fault detection Will be used for survey system conditions (mechanical, electrical, controls) Prototyping foreseen in Simulink/MatLab and C in the drive Implemented in VHDL for critical ones, leave Special functionalities Processing/Area to foresee for future functionalities: Tails measurements procedure, Delayed multi-scans (reconstruct small beams), vibrations on-line compensation. BWS motion control electronics - J. Emery Design process 1) Testability 2) Code reuse 2) Methodology => I will start detailed work on this subject in September 2016 (MSE)

Additional slides BWS motion control electronics - J. Emery

Design related criteria Is the FPGA selection will drive design methodology? - Yes, hardware processors can allow on-line prototype of processing to run in real time. Methodology: 1)Prototyping data processing in MatLab on existing raw data 2)Simulink modelling of the algorithms and test on Dspace 3)Implementation in C => Fast to write in C and test on real system Needs fast processing units Needs memory access to data being recorded 4)Final version must be in VHDL: - Parallel processing independent to any OS or other running tasks - Powerful verification in siulation - Powerful tools to do verification on the FPGA - But: Long development & verification time BWS motion control electronics - J. Emery Design process 1) Testability 2) Code reuse 2) Methodology

Profiles: online calculation vs pre- calculated Operate at different top speed 20 [m/s] -> 48 [ms] (767 pts) 1 [m/s] -> 570 [ms] (9119 pts) Today pre-calculated into 3 tables included in the FPGA as ROM (safe). Needs 3 tables for each preset Alternative: Online calculation based on system properties. (3 parameters to play with: Jmax, duration, ratio acc/cst speed). Optimised iterative Algorithm to be written in C and monitored by FPGA BWS motion control electronics - J. Emery

Feedback implementation in VHDL BWS motion control electronics - J. Emery