> iterations; ifstream tfCrateConfigFile("tfCrate.config"); EmtCrate tfCrate(tfCrateConfigFile, k_busAdapterUnit[0]); // create a crate object ConfigureCCB(tfCrate, "CCB"); for(int i(0); i > iterations; ifstream tfCrateConfigFile("tfCrate.config"); EmtCrate tfCrate(tfCrateConfigFile, k_busAdapterUnit[0]); // create a crate object ConfigureCCB(tfCrate, "CCB"); for(int i(0); i

Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Test Software for EMT Paul Padley Rice University May, 2005."— Presentation transcript:

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

2 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

3 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; }

4 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 $LOG_FILE 2>&1 $ITERATIONS EOF exit Run with test 100 iterations $./run_msMsSelfTest 100 &

5 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

6 May 2005 EMT Test Software 6 Test Method (2) TMB-MPC-SP Chain Tests 9 TMB’sMPCSP Inject random patterns Check the content of FF spy FIFO Check winner bits Peripheral Crate TF Crate Optical Link

7 May 2005 EMT Test Software 7 Test Method (3) SP/MT-MS Chain Tests (use up to 12 MT’s) SP/MTMS Inject random patterns into test point 3Check the content of output FIFO Check winner bits TF Crate

8 May 2005 EMT Test Software 8 Test Method (4) MS-GMT Chain Tests MSGMT Inject output patterns into MS RAMCheck the data transmission TF Crate

9 May 2005 EMT Test Software 9 Test Method (5) TMB-MPC-SP-MS Chain Tests 9 TMB’sMPCSP Inject random patterns Check 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

10 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.


Download ppt "Test Software for EMT Paul Padley Rice University May, 2005."

Similar presentations


Ads by Google