The dsp can be tested without detectors connected to it. The dsp came with a loop-back cable that connects to the upper connecter of the low-level card (the small card that sticks out of the VME crate). The dsp pattern has a 8-bit wide output file that is used to generate a bit pattern. The fifo is filled from a file and the loop-back cable connects the fifo output with the data input, and therefore looks like data from a detector. The file mainTest.cpp contains a small program that reads the bit pattern from a file, executes the fifo ten times and reads the dsp data into the local memory of the computer. The fifo is used only for testing the dsp, but not for running the beam test modules.
Down load the file patch1.tar. It contains the files messages. It contains four files:
If the program runs correctly the output should be (for our PC-VXI system) :
VXI lib open: io base address: 1a20000 memeory for message base allocated length: 80000 base 1b60020 beginning initialization Using DIP switch = 1 About to clear signals Initialization Complete System Download Complete Setting Counter Val to: 100 The Readout is now ENABLED Link 0 is enabled Link 1 is disabled Link 2 is disabled Link 3 is disabled Executing Control block 0, 50 times CIW is: 50 link number 0 Num data words 272 Data retrieved Format = 2 HOST ciw = 6 00ea0e1b f8000000 00000000