architecture of test bench for the cisv module te-mpe technical meeting

12
Architecture of Test Bench for the CISV module TE-MPE Technical Meeting Jakub Korczyc 1 st November 2012

Upload: hilary-colon

Post on 02-Jan-2016

35 views

Category:

Documents


0 download

DESCRIPTION

Architecture of Test Bench for the CISV module TE-MPE Technical Meeting Jakub Korczyc 1 st November 2012. Plan. CISV Module General Test Bench concept Hardware Software Test Bench architecture Hardware C ( LabWindows ) software FPGA firmware Test Bench capabilities - PowerPoint PPT Presentation

TRANSCRIPT

Architecture of Test Bench for the CISV module

TE-MPE Technical Meeting

Jakub Korczyc 1st November 2012

CERN, the LHC and Machine Protection 2 of 12

I. CISV Module

II. General Test Bench concepta) Hardwareb) Software

III. Test Bench architecturea) Hardwareb) C (LabWindows) softwarec) FPGA firmware

IV. Test Bench capabilities

V. Test results

Plan

CERN, the LHC and Machine Protection 3 of 12

• Part of the Safe Machine Parameters (SMP) system • Decodes 2 types of General Machine Timing (GMT)

frames• Flags frames are decoded to LEMO outputs• Energy frames are transmitted through VME

interface

CISV Module

CERN, the LHC and Machine Protection 4 of 12

General Test Bench - hardware• Common PXI crate and cards for general functionality

• Custom made PCB for specific or time-crucial functionality

CERN, the LHC and Machine Protection 5 of 12

General Test Bench - software• C code template with common GUI and functionality

• Excel file containing list of tests to run

CERN, the LHC and Machine Protection 6 of 12

• PXI Crate + Power Supply + Test Controller Card + VME rack• TCC based on Spartan 3 FPGA

CISV Test Bench - hardware

CERN, the LHC and Machine Protection 7 of 12

Main concept: • use PXI controller to generate test vectors and analyze

responses from the DUT• use Tester Control Card to pass on the data in time-

deterministic way

Test campaign:1. Generate all test vectors with time stamps. Sort them and

store them on disc2. Continuously send them to TCC. In the same time receive

DUT responses with time stamps and store them on disc3. Analyze stored responses

CISV Test Bench - C software

CERN, the LHC and Machine Protection 8 of 12

Advantages:• All complexity moved from VHDL to C code• VHDL code stays generic and test independentDisadvantages:• Need for fast link between PXI and TCC

CISV Test Bench - C software

CERN, the LHC and Machine Protection 9 of 12

• Main functionality: buffering and timing

CISV Test Bench - FPGA firmware

CERN, the LHC and Machine Protection 10 of 12

What it can do:• Send frames with maximum GMT speed • Run for about 12 hours with time resolution of 10μs (one

frame takes 100 μs to send)• Test 228 frames (one frame is 32 bits - 16bits of header and

16bits of payload)• Record every energy frame• Record flags values which are stable for 200ns

What it can not do:• Test not crucial functionality accessible by VME, like history

buffer

Test Bench capabilities

CERN, the LHC and Machine Protection 11 of 12

Tested:• All energy values (216)• All flags values (28)• All headers (216)• Fail-safe values

Observations:• After power up, the CISV may ignore first few frames. Time

between power up and receiving first frame does not matter.• There is 100 μs delay in putting flags values after receiving

the frame.• There is maximum 1ms delay in sending energy value after

receiving the frame.

Test results

More information can be found on the websitehttps://project-mitestbench.web.cern.ch