Difference: AMC13ProductionTesting (17 vs. 18)

Revision 1824 Sep 2015 - AlexGuldemond

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
Added:
>
>

AMC13 Bench Test Instructions

1. Test Fixture
  1. Power up Test and MMC Programming
  2. Install the module in the bench test fixture with power off
  3. Power up 3.3V, check current ( ~ 0A )
  4. Connect AVR JTAGICE3 cable and program MMC (MMC Programming)
  5. Power up 12V, check current (0.2-1.8 A)

2. Run Test

  1. cd into directory containing .mcs firmware files
    1. Files can be downloaded from the following links:
    2. Header and Golden Files: http://bucms.bu.edu/twiki/bin/view/BUCMSPublic/AMC13FlashProgramming
    3. Spartan and Kintex Files: http://ohm.bu.edu/~dzou/firmware.cgi
  2. Set AMC13_ADDRESS_TABLE_PATH to the location of the address tables
  3. Run AMC13BenchTest.exe -s serial_no
  4. Follow the on screen instructions
    1. Note, test requires use of AVR studio and impact, instructions below
  5. Update the board database with DNA numbers

3. Pre-Shipping Configuration

  1. Program with the agreed firmware version
  2. Install TTC SFP (currently FTLF1318P3BTL)
  3. Install DAQ0 SFP (currently AFBR-709SMZ)
  4. Be sure all stickers are in place
  5. Add red dot with owner on it
  6. Fill out and include Shipping Sheet
  7. Update board database
    1. pdf: http://ohm.bu.edu/~hazen/CMS/AMC13/ShippingNotes2014.pdf
    2. IP/MAC Address algorithm: http://bucms.bu.edu/twiki/bin/view/BUCMSPublic/IPaddressAssignment

New 2015 Production Test

This is the production testing recipe for testing without using AMC13BenchTest.exe:

1. Test Fixture

  1. Power up Test and MMC Programming
  2. Install the module in the bench test fixture with power off
  3. Power up 3.3V, check current ( ~ 0A )
  4. Connect AVR JTAGICE3 cable and program MMC (MMC Programming)
  5. Power up 12V, check current (0.2-1.8 A)

2. Memory Test (Replaces Chipscope Test)

  1. Make sure fan is in place next to the AMC13 to prevent overheating
  2. Connect JTAG cable into FPGA port on AMC13
  3. Place TTC loop back SFP module into bottom SFP cage
  4. Place three 10G(8G) SFP loop back module into other three cages
  5. Program test stand bit files into amc13 using iMPACT (Need to put files on Twiki) impact instructions: (impact instructions)
  6. Connect to amc13 using AMC13Tool2.exe -c serial_no
  7. Check the following regesters
    1. in T2
      1. Check that reg 0x7 (ErrCnt) is 0, or at least not changing
      2. Check that reg 0x4 (TxFB) and reg 0x5 (RxFB) are changing
      3. Check that bit 0 of reg 0x6 (T1_Ready) is 1 ii. in T1
      4. Check that reg 0x1f (TTCcntr) is changing 1. Set bit 13 of reg 0xf to 1 to enable memory test with the following command: wv 0xf 020000 1. Check that reg 0xa (mem_sta) is changing. Otherwise, there is a memory errer 1. Register 0xf controls settings of GTX link tests 1. Change bits[2:0] (AMC_RxSel) and bits[5:3] AMC_TxSel of reg 0xf. Do this with the following command: wv 0xf 0200ab, where legal values of a and b are 1, 2, 3, or 4. 1. When AMC_RxSel = AMC_TxSel, all AMC error counters should not change (reg 0x10 to reg0x1b) Otherwise, they should change. 1. Do the same for bits[8:6] (SFP_RxSel) and bits[11:9] (SFP_TxSel) with the following command: wv 0xf 02ab00, where legal values are 1, 2, 3, or 4.
      5. Check SFP error counters (0x1c, 0x1d, and 0x1e) 1. Set bit 12 of 0xf to 1 to reset all counters: wv 0xf 010000
  8. Do rg and rc to do a general reset and reset counters
  9. use a scope to look at signals at the terminals of resistors on the test stand. you should see 40MHz LVDS level signals on them.

3. Erase EEPROM (instructions link)

  1. Connect Mini USB to amc13, start minicom or putty
  2. Enter command sensread all, check the voltages are ok
  3. Enter command mreset to reboot MMC
  4. Enter command eeperase, ENTER, yes, ENTER, ENTER to erase the EEPROM

4. Programming

  1. Connect JTAB cable to FPGA port
  2. Program initial bit file into Spartan FPGA using iMPACT Initial bit file: http://physics.bu.edu/~wusx/download/AMC13/?C=M;O=D
  3. Calculate the IP Adress of the module
  4. Using AMC13ToolFlash.exe, program the flash memory: Header, Golden, Spartan, Kintex
    1. Header and Golden Files: Header and Golden
    2. Spartan and Kintex Files: firmware files
  5. Power cycle the amc13 to load firmware from flash
  6. Connect to board with AMC13Tool2.exe and check the firmware with fv

5. Event Builder Test

  1. Follow instructions for sending localL1A's and building fake events
  2. http://bucms.bu.edu/twiki/bin/view/BUCMSPublic/AMC13Tool2Recipes#FakeDataReadout

6. Check and Record amc13 Device DNA

  1. Read T1 registers 0x1e and 0x1f and record the values into the board database
  2. Read T2 registers 0xe and 0xf and record the values into the board database

7. Pre-Shipping Configuration

  1. Program with the agreed firmware version
  2. Install TTC SFP (currently FTLF1318P3BTL)
  3. Install DAQ0 SFP (currently AFBR-709SMZ)
  4. Be sure all stickers are in place
  5. Add red dot with owner on it
  6. Fill out and include Shipping Sheet
  7. Update board database
    1. pdf: http://ohm.bu.edu/~hazen/CMS/AMC13/ShippingNotes2014.pdf
    2. IP/MAC Address algorithm: http://bucms.bu.edu/twiki/bin/view/BUCMSPublic/IPaddressAssignment
 

New 2014 Production Test

We're re-working the production test for the 2014 production run. Here is a tentative recipe:

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback