test software for emt

10
Test Software for EMT Paul Padley Rice University May, 2005

Upload: octavia-stevens

Post on 31-Dec-2015

33 views

Category:

Documents


3 download

DESCRIPTION

Test Software for EMT. Paul Padley Rice University May, 2005. Hierarchy of Test Software. - Runs a test - Script / GUI interface. Test Main Function. - Configures peripheral/TF crate - Controls board to board interactions. Emt Crate. - Contains board level macros - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Test Software for EMT

Test Software for EMT

Paul Padley

Rice University

May, 2005

Page 2: Test Software for EMT

May 2005 EMT Test Software 2

Hierarchy of Test Software

Test Main Function

Emt Crate

Emt VME Board Utility

VME Board

-Read / Write: accesses to a register using HAL-VME controller dependent (using SBS620 now)- Common for all EMT boards- Xml file provides address-register interface

- Runs a test- Script / GUI interface

- Contains board level macros- Prepared for MPC and MS for now

- Configures peripheral/TF crate- Controls board to board interactions

Page 3: Test Software for EMT

May 2005 EMT Test Software 3

Main Function#include "emtCrate.h"

using namespace std;

int main() { int iterations;

cout << “Type the number of test iterations.” << endl; cin >> iterations;

ifstream tfCrateConfigFile("tfCrate.config"); EmtCrate tfCrate(tfCrateConfigFile, k_busAdapterUnit[0]); // create a crate object

ConfigureCCB(tfCrate, "CCB");

for(int i(0); i<iterations; ++i) { cout << "Test result: " << tfCrate.msRandomSelfTest() << endl; }

return 0;}

Page 4: Test Software for EMT

May 2005 EMT Test Software 4

Running a Test Program Script (macro file)

#!/bin/sh

ITERATIONS=$1

LOG_FILE=log.ms_self_test_${ITERATIONS}

if [ -f ${LOG_DIR}/${LOG_FILE} ]; then; rm -f ${LOG_DIR}/${LOG_FILE}; fi

./msSelfTest.exe << EOF > $LOG_FILE 2>&1$ITERATIONSEOF

exit

Run with test 100 iterations$ ./run_msMsSelfTest 100 &

Page 5: Test Software for EMT

May 2005 EMT Test Software 5

Test Methods

Stand-alone Test MPC and MS

Input FIFO’s

Output FIFO’s

Inject random patterns

Check content

Transmit data

Page 6: Test Software for EMT

May 2005 EMT Test Software 6

Test Method (2)

TMB-MPC-SP Chain Tests

9 TMB’s MPC SP

Inject random patterns Check the content of FF spy FIFO

Check winner bits

Peripheral Crate TF CrateOptical Link

Page 7: Test Software for EMT

May 2005 EMT Test Software 7

Test Method (3)

SP/MT-MS Chain Tests (use up to 12 MT’s)

SP/MT MS

Inject random patterns into test point 3 Check the content of output FIFO

Check winner bits

TF Crate

Page 8: Test Software for EMT

May 2005 EMT Test Software 8

Test Method (4)

MS-GMT Chain Tests

MS GMT

Inject output patterns into MS RAM Check the data transmission

TF Crate

Page 9: Test Software for EMT

May 2005 EMT Test Software 9

Test Method (5)

TMB-MPC-SP-MS Chain Tests

9 TMB’s MPC SP

Inject random patternsCheck content of FF spy FIFO

Check winner bits

Peripheral Crate TF Crate

Check winner bits

MS

Check content of output FIFO

Check SP output

Optical Link

Page 10: Test Software for EMT

May 2005 EMT Test Software 10

Test Software Status and Plan Status

Test software GUI is ready. Programs to download CCB/MPC/MS firmware

through VME are running. Running CCB/MPC/MS production tests at Rice.

Plan Make it possible to run the test software with other

VME controllers. Accommodate “xdaq” into the test software.