1 / 10

Test Software for EMT

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

Download Presentation

Test Software for EMT

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

  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; } 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 $ITERATIONS EOF exit • Run with test 100 iterations $ ./run_msMsSelfTest 100 & EMT Test Software

  5. Test Methods • Stand-alone Test • MPC and MS Inject random patterns Input FIFO’s Transmit data Check content Output FIFO’s EMT Test Software

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

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

  8. Test Method (4) • MS-GMT Chain Tests Inject output patterns into MS RAM Check the data transmission MS GMT TF Crate EMT Test Software

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

  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. EMT Test Software

More Related