PS Module Testing in the FNAL Burnin Box

Thank you to Younes Otarid for instructions!

Software - Firmware - Instructions

Install the branch of Ph2_ACF that Younes has prepared for us:

git clone --recursive Ph2_ACF_PSYounes
cd Ph2_ACF_Younes

Compile it:

cd Ph2_ACF_Younes
mkdir build; cd build; cmake ..
make -j8

For PS Module with CIC 1: Use the image d19c_ps_5g_cic1_lpgbt0_2h_l12quad_l8dio5_withbend_nostubdebug_nofastcounters.bin from this page:

 fpgaconfig -c settings/FNAL_BurnIn_PSModule.xml -i  d19c_ps_5g_cic1_lpgbt0_2h_l12quad_l8dio5_withbend_nostubdebug_nofastcounters.bin 

For PS2201, the FEH are CIC1 and SSA1, and the ROHs are 5G. For PS2202, the FEH are CIC2 and SSA1, and the ROHs are 10G.

For the PS2202 the firmware is /afs/ NB: Before running on the PS-10G module, make sure to change the CDCE clock rate to 640 and reconfigure the CDCE by setting configuration setting to 1, just for the first run Also change the clock frequency for both hybrids to 640 and replace CIC2 where necessary. Trying branch

Skeleton test

So far for the skeleton testing only this works!!!

Install the branch of Ph2_ACF that Younes has prepared for us:

git clone --recursive Ph2_ACF_FirstPSModule
cd Ph2_ACF_FirstPSModule/
git checkout ps_module_test_temp
Compile it:
mkdir build; cd build; cmake ..
make -j8
Use the image firmware/d19c/PS5G2hCIC1_TEMP.bin
fpgaconfig -c settings/FNAL_PSskeleton.xml -f firmware/d19c/PS5G2hCIC1_TEMP.bin -i FW_2022-03-15_PSskeleton
fpgaconfig -c settings/FNAL_PSskeleton.xml  -i FW_2022-03-15_PSskeleton

To test SSA I2C communication :

  • Comment out the MPAs from settings/FNAL_PSskeleton.xml→ new xml settings/FNAL_PSskeleton.xml and update the IP address and the machine to
  • Run the command :
    ps_module_test -f  settings/FNAL_PSskeleton.xml—withCIC —skipAlignment 
  • Monitor any failure during configuration

To test uplink by generating internal pattern on the lpGBT :

  • Run the command :
     PSROHTest -f  settings/FNAL_PSskeleton.xml —ip 0xCA
  • The printout should show you if the pattern is properly recovered by the back-end FC7

To test CIC-lpGBT communication :

  • We could perform CIC-lpGBT alignment, but since this branch is quite old, the implementation for that is not included. Of course I can include it at some point for you to test.

To run a noise measurement on the SSAs only just to make sure that the whole procedure works :

  • Comment out the MPAs from settings/FNAL_FullModule.xml
  • Run the command :
     ps_module_test -f  settings/FNAL_PSskeleton.xml --withCIC -t -m -a --skipAlignment --moduleId WHATEVER_FILE_EXTENSION -b 
  • Have a look at the result file to make sure that things are fine.

Noise measurement

On the full module. So far, cannot test MPA and SSA together.

Run the following command :

 ot_module_test -f settings/PS_SSAonly.xml -t -m -a --moduleId SSAonly -b  --reconfigure
 ot_module_test -f settings/PS_MPAonly.xml -t -m -a --moduleId MPAonly -b  --reconfigure

Every run will produce a folder called ps_module_test_WHATEVER_FILE_EXTENSION_runXXX in the /Results folder, with a corresponding root result file called ps_module_result.root. You will find noise plots and SCurves in the latter, but you can also use it to make your own plots. In order to change the injected charge you can change the two settings called PedestalEqualizationPulseAmplitude and PedeNoisePulseAmplitude in the xml. The value is given in Cal_DAC units. The conversion to electrons is (SSA : 243 e- , MPA : 220 e-).

-- JennetElizabethDickinson - 2022-03-10

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2022-05-20 - IreneZoi
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

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