Introduction

The 2-slot crate located at Andrew's bench gives probing access and measurements otherwise inaccessible inside the ATCA crate.  Common uses of the 2-slot crate include checking voltages, attenuator bits, and amplifier/switch debugging. 


Connection Diagram

  • FPGA Port 0  Port 3 on CPU-B084-SP01

                                   



Using the 2-slot debug crate

Start the software:

Open the UI

    • open a new lcls-dev3 window
    • cd /afs/slac/g/lcls/package/cpsw/cpswTreeGUI/current/
    • ./env.slac.sh
    • python3 cpswTreeGUI.py --ipAddress=10.0.0.101 --rssiBridge=cpu-b084-sp01 --disableStreams ~disco/scripts/B084_TestStand/stripline_yaml/AmcCarrierBpmStriplineDDV1_project.yaml/000TopLevel.yaml NetIODev&
      • Or ~disco/scripts/bash/ControlGUI.sh
    • Under the mmio tab "right mouse" click "load file" <default.yaml>

GUI Guide (once connection is made the GUI should not show ??? in the value fields):

Turn on Calibration: 

Pulse generation steps:

  • mmio
    • AppTop
      • AppCore
        • AmcBpmCore
          • StripCalCtrl
            • AttnCal - set to 0x14
            • Cal_CALMode - Red or Green
            • Cal_ContTrig - OneShot
            • Cal_EnaTrig - Enabled (will reset after each shot)
            • Cal_OSCMode (On)
            • SoftTrig - (input 0x1 and enter will generate only 1 cal tone for 100us, and need to reset after each shot)
              • !! - By hitting enter, a large power pulse will be generated by the amplifier.  Make sure termination and attenuation are in place before doing this. 

Amplifier Check: 

  • Turn resistor R30 side-ways: 
  • Connect SMA-Pin hole connector to oscilloscope, add series termination pad of minimum 20dB to scope
  • Set probe/OSC to 50 ohm termination
  • Connect J105 to probe
  • Set time base to max. 20us per division
  • Set vertical scale to 50mV per division
  • Set trigger around 50mV
  • Set AttnCal in mmio GUI to 0x14 (20dB attenuation)
  • Follow pulse generation steps above to create signal
  • Observe signal on the screen.  Reference good signal shown below (at J105): 
  • If RF switches are working, and cables from J102 to J101, J104 to J103 are attached, green and red channels will look like:
  •  



Set Attenuation: 

  • mmio
    • AppTop
      • AppCore
        • AmcBpmCore
          • StripCalCtrl
            • AttnA/B[x]  - set value in hex

Attenuation Truth Table:

Hex Value

Binary Value

Pin Voltage Level

V5, V4, V3, V2, V1

Attenuation Value

Hex Value

Binary Value

Pin Voltage Level

V5, V4, V3, V2, V1

Attenuation Value

0x1F0b111110000031dB
0x1E0b111100000530dB
0x1D0b111010005029dB
0x1C0b111000005528dB
0x1B0b110110050027dB
0x1A0b110100050526dB
0x190b110010055025dB
0x180b110000055524dB
0x170b101110500023dB
0x160b101100500522dB
0x150b101010505021dB
0x140b101000505520dB
0x130b100110550019dB
0x120b100100550518dB
0x110b100010555017dB
0x100b100000555516dB
0x0F0b011115000015dB
0x0E0b011105000514dB

0x0D

0b011015005013dB
0x0C0b011005005512dB
0x0B0b010115050011dB
0x0A0b010105050510dB
0x090b01001505509dB
0x080b01000505558dB
0x070b00111550007dB
0x060b00110550056dB
0x050b00101550505dB
0x040b00100550554dB
0x030b00011555003dB
0x020b00010555052dB
0x010b00001555501dB
0x000b00000555550dB (Reference)
  • No labels