Difference between revisions of "Testing Address Cards"

From MCEWiki
(Created page with '== Setup == The following equipments are needed: * mas PC: An ubuntu-based PC with ARC-64 PCI card installed an running mas software. * 2-slot backplane with Clock Card plugged i…')
(No difference)

Revision as of 12:09, 4 May 2012

Setup

The following equipments are needed:

  • mas PC: An ubuntu-based PC with ARC-64 PCI card installed an running mas software.
  • 2-slot backplane with Clock Card plugged in: Device under test (DUT) is plugged into this backplane during testing.
  • fibre-optic cable: connects mas-PC to Clock Card.
  • set of Linear supplies to power up the cards. (3V, 4.5V, 6.2V, -6.2V)
  • Altera USB programmer: attached to the JTAG connector in Clock card front panel.
  • PC with Quartus installed: used to program FPGA and configuration devices on Readout Card.
  • Oscilloscope

If you have all the above and if your DUT has already been smoke tested, you are ready to start:

  1. connect them up an power up the 2-slot backplane.
  2. Load FPGA firmware using Quartus. Firmware is located at http://e-mode.phas.ubc.ca/mce_firmware/. Run auto-detect and you should see 4 devices. The part at the bottom of the list corresponts to Clock card FPGA. Load following firmware from the above directory: CC firmware 5.0.7, BC firmware bc_v05000005_20jul2010.sof
  3. On the 2-slot backplane there are two sets of dip switches. You need to set the one on the Address card side to 1111 (0xf), otherwise replies do not come back, because the card is not identified properly.
  4. Now make sure both cards communicate with the PC. ssh to the PC running mas and connected to the 2-slot backplane trhough fibre cables and run the following command:
 mce_cmd -x rb cc fw_rev

and you will see:

 Line   0 : ok : 0x5000007

and then type:

 mce_cmd -x rb ac fw_rev

and you will see

 Line   0 : ok : 0x5000004