100 likes | 193 Views
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
E N D
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 - Prepared for MPC and MS for now Emt VME Board Utility • 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 VME Board EMT Test Software
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; } EMT Test Software
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 $ITERATIONS EOF exit • Run with test 100 iterations $ ./run_msMsSelfTest 100 & EMT Test Software
Test Methods • Stand-alone Test • MPC and MS Inject random patterns Input FIFO’s Transmit data Check content Output FIFO’s EMT Test Software
Test Method (2) • TMB-MPC-SP Chain Tests Inject random patterns Check the content of FF spy FIFO 9 TMB’s MPC SP Check winner bits TF Crate Peripheral Crate Optical Link EMT Test Software
Test Method (3) • SP/MT-MS Chain Tests (use up to 12 MT’s) Inject random patterns into test point 3 Check the content of output FIFO SP/MT MS Check winner bits TF Crate EMT Test Software
Test Method (4) • MS-GMT Chain Tests Inject output patterns into MS RAM Check the data transmission MS GMT TF Crate EMT Test Software
Test Method (5) • TMB-MPC-SP-MS Chain Tests Check content of FF spy FIFO Inject random patterns Check SP output 9 TMB’s MPC SP MS Check winner bits Check winner bits Check content of output FIFO TF Crate Peripheral Crate Optical Link EMT Test Software
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. EMT Test Software