Notes for myself on various CMS related things


P5

Basically, you connect to `cmsusr`, then to one of the GEM machines (gem-daq01, gem-daq02, gemvm-legacy, or gemvm-test), and finally to the CTP7 with their geographical IP address (gem-shelfXX-amcYY).
For gem_reg: as gempro (sudo -u gempro -i), you can simply use the gem_reg.py command. Then you can connect to a given CTP7 with `connect gem-shelfXX-amcYY`.

ATCA

Network

On gem904atca1 the p1p1 interface is connected to the switch, and should have a static address of 192.168.41.1 on subnet 255.255.0.0:
 sudo ifconfig p1p1 192.168.41.1 netmask 255.255.0.0 
IP addresses of the ATCA local network:
Node IP
gem904atca1 192.168.41.1
switch CPU 10Gb/s port 192.168.41.222
switch CPU 1Gb/s port 192.168.40.222
DTH 192.168.41.100
APEX 192.168.41.10

There's a DHCP server running on the gem904atca1:

yum install dhcp
bind it to the p1p1 inteface as explained in /etc/sysconfig/dhcpd:
# $ cp /usr/lib/systemd/system/dhcpd.service /etc/systemd/system/
# $ vi /etc/systemd/system/dhcpd.service
# $ ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid <your_interface_name(s)>
# $ systemctl --system daemon-reload
# $ systemctl restart dhcpd.service

put this in the config file /etc/dhcp/dhcpd.conf:
#subnet 192.168.41.0 netmask 255.255.255.0 {
subnet 192.168.0.0 netmask 255.255.0.0 {
 option routers                  192.168.41.1;
# option subnet-mask              255.255.255.0;
 option subnet-mask              255.255.0.0;
 option domain-name              "atca1";
 option domain-name-servers       192.168.41.1;
# range 192.168.41.100 192.168.41.200;
}

host dth {
 hardware ethernet 00:30:64:5d:90:e7;
 fixed-address 192.168.41.100;
}

DTH

Manual here: https://cms-daq-dth-p1.web.cern.ch/dth-kit

CVP13

Driver documentation: https://xilinx.github.io/dma_ip_drivers/2019.1/linux-kernel/html/index.html

Setup

  • Download fw to the PROM using Bittware tools
  • Program the clocks using Bittware tools
  • Setup the driver:
sudo insmod build/qdma.ko
dmactl dev list # get the dev ID from here, should be something like qdma05000 (depends on the slot)
#assuming the dev ID is qdma05000, the sysfs path should be: /sys/bus/pci/devices/0000:05:00.0
#you can read/write regs using /sys/bus/pci/devices/0000:05:00.0/resource2  (this points to BAR2)
#you can run the slow control test program based on pcimem like this:
sudo ./pcimem /sys/bus/pci/devices/0000:05:00.0/resource2 0xc00000 w*3

APEX

Zynq board: MYD-C7Z015-4E1D-766-I Zynq IP at 904: 192.168.41.10

Clocks

~/clock/apex-async-250M-i2c0.sh configures all async clocks (refclk1) to 250MHz ~/clock/si5345_config configures all sync clocks (refclk0) to 160MHz

C2C

base address: 0x50000000 AXI timeout: 100us

Zynq XVC setup

  • cd xvc
  • ./xvcServer_ioctl -d /dev/xilinx_xvc_driver_0
  • in vivado: open_hw_target -xvc_url 192.168.41.10:2543

Zynq I2C

OUTDATED, NOT NEEDED ANYMORE: this setup has 3 I2C links, for two FPGA modules and the optical module. They are selectable by an internal firmware register. Currently, the FPGA module is on I2C link #1, but the default selection is link #0. To select link #1, do this command: devmem 0x41200000 32 1

GE2/1

Testing instructions for Rice

after a power-cycle of the uTCA crate, you need to configure the AMC13 by running the AMC13Tool, and running this command: "en 1-12 t". To connect:
  * At TAMU from elli machine run: /opt/cactus/bin/amc13/AMC13Tool2.exe -p /opt/cactus/etc/amc13 -c 192.168.3.226
  * At Rice from bonner-daq run: AMC13Tool2.exe -c 192.168.1.56/c

login to the ctp7: ssh texas@eagle42
if CTP7 firmware is not loaded: cd ~/tamu && cold_boot_invert_rx.sh
load the correct OH firmware to the CTP7 RAM: cd ~/tamu && gemloader_configure_v2.sh (use gemloader_configure.sh for v1 OHs)
cd ~/apps/reg_interface
configure the GBTs with a given config file (the first argument is the OH number, and the second argument is the GBT number within the OH):
python gbt_ge21_map.py 0 0 config ~/gbt_config/GBTX_GE21_OHv2_GBT_0_minimal_2020-01-17.txt
python gbt_ge21_map.py 0 1 config ~/gbt_config/GBTX_GE21_OHv2_GBT_1_minimal_2020-01-17.txt
perform a phase scan (notice the config file is different when you do it on gbt0 and gbt1):
python gbt_ge21_map.py 0 0 ge21-phase-scan ~/gbt_config/GBTX_GE21_OHv2_GBT_0_minimal_2020-01-17.txt
python gbt_ge21_map.py 0 1 ge21-phase-scan ~/gbt_config/GBTX_GE21_OHv2_GBT_1_minimal_2020-01-17.txt

promless programming loop test:
python ge21_promless_test.py 1 1000
first argument is the OH "bitmask" e.g. 1 will do it on OH0 only, 2 will do it on OH1 only, 3 will do it on both OH0 and OH1, etc (though normally I only ever do it on one OH at a time, so running on multiple may work, but no guarantee). The second argument is the number of iterations to do (normally I do 1000 for a full test, but you can run e.g. 10 or 100 just to see if it works, which is quicker)

read SCA ADCs:
python sca.py 1 adc-read
the first argument gere is again the OH "bitmask" (so 1 for OH0, 2 for OH1, 4 for OH2, etc)
note that this thing crashes when it reaches an ADC channel that is in overflow, which e.g. was the case on the first OHv2 board that had some problem with the temp sensor (Mike probably remembers better than me what it actually was)

for PRBS tests, by default the gemloader_configure_v2.sh loads the OHv2 loopback firmware, and when you run the ge21_promless_test.py it will get loaded to the OH FPGA. At that point in order to start the loopback test you have to open the reg_interface by just running "reg", and then:
1) write GEM_AMC.GEM_TESTS.OH_LOOPBACK.CTRL.OH_SELECT 0  (this selects the OH to be used, normally it should be 0 if you just use the first OH)
2) write GEM_AMC.GEM_SYSTEM.TESTS.GBT_LOOPBACK_EN 1   (this will put the CTP7 into a loopback testing mode, note that VFAT or OH communication won't work while the CTP7 is in this mode, so e.g. phase scans and OH programming are not possible, so always make sure this mode is off when doing the other tests and only put this on for PRBS test)
3) readKW GEM_AMC.GEM_TESTS.OH_LOOPBACK
4) don't forget to switch the CTP7 back to normal mode: write GEM_AMC.GEM_SYSTEM.TESTS.GBT_LOOPBACK_EN 0

step 2 will print lots of stuff which includes 3 registers for each elink:
  1) PRBS_LOCKED -- if this is 1 that means the CTP7 is receiving back a valid PRBS7 stream from this elink
  2) MEGA_WORD_CNT -- this counts the total number of words checked by the PRBS7 checker after the PRBS_LOCKED was asserted (this counts in units of one million bytes)
  3) ERROR_CNT -- number of PRBS errors found

the output will look like this:
0x66804040 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_0.PRBS_LOCKED 0x00000000
0x66804044 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_0.MEGA_WORD_CNT 0x00000000
0x66804040 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_0.ERROR_CNT    0x00000000
0x66804048 None     GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_1
0x66804048 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_1.PRBS_LOCKED 0x00000000
0x6680404c r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_1.MEGA_WORD_CNT 0x00000000
0x66804048 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_1.ERROR_CNT    0x00000000
0x66804050 None     GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_2
0x66804050 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_2.PRBS_LOCKED 0x00000000
0x66804054 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_2.MEGA_WORD_CNT 0x00000000
0x66804050 r GEM_AMC.GEM_TESTS.OH_LOOPBACK.GBT_0.ELINK_2.ERROR_CNT    0x00000000
...............
the elinks are numbered in kind of natural order in terms of GBTX: ELINK_0 is DIN0, ELINK_1 is DIN4, ELINK_2 is DIN8, ELINK_3 is DIN12, .... ELINK_10 is DIO1, ELINK_11 is DIO5, ELINK_12 is DIO9, ELINK_13 is DIO13. Not all of these elinks are connected to the OH FPGA, so you should not expect all of them to lock, you should only see these elinks lock:
GBT_0.ELINK_6
GBT_0.ELINK_7
GBT_0.ELINK_8
GBT_0.ELINK_9
GBT_1.ELINK_6
GBT_1.ELINK_7
GBT_1.ELINK_8
GBT_1.ELINK_9
GBT_1.ELINK_10
GBT_1.ELINK_11
GBT_1.ELINK_12
GBT_1.ELINK_13

you can also try to inject a PRBS error on the CTP7 TX, and see if it comes back through the RX and is detected by the CTP7: write GEM_AMC.GEM_TESTS.OH_LOOPBACK.CTRL.INJECT_ERR 1

to reset the loopback counters use this reset: write GEM_AMC.GEM_TESTS.OH_LOOPBACK.CTRL.RESET 1 

Operations

Operations related stuff

TCDS TTS logs

For global runs TCDS TTS logs can be found in tcds-control-cpm-pri:/cmsnfstcds_history/tcds_history, though old files are periodically moved somewhere else (or perhaps removed altogether). More info here: https://twiki.cern.ch/twiki/bin/view/CMS/TcdsTtsLogs
I have a script to parse these files through and give a summary of how many times GEM has transitioned into various states: https://github.com/evka85/GEM_AMC/blob/master/scripts/parse_tts_log.py

Read-only persistent partition

run this as root to switch to rw in runtime: setpersistent rw edit this file to make it persistent between reboots: /mnt/persistent/config/persistent_writeable

Notes on CTP7 synthesizer configuration

Here's an email from Tom about configuring the synthesizers to provide a 200MHz clock to MGT REFCLK1 both front and back for CSC_FED:

Attached is text file containing register values for the SI Labs 5324 Clock Synthesizer on the CTP7. This register programming will take the 125.000 MHz on-board oscillator and produce a 200.000 MHz output clock for distribution on the refclk fanout circuitry.

Instructions for using this file are as follows:

1) copy it onto the persistent file system somewhere on the CTP7 (/mnt/persistent/)

2) from the folder where this file is resident, execute the following command on the CTP7 Linux:

clockinit GEM_SynthA_125in_200_off_out.txt 320_160 B1 A0 A0 B1

This command should replace the "clockinit" command that gets executed currently somewhere in your init code, which, IIRC, looks something like:

clockinit 320_160 320_160 B1 A1 A1 B1

The clockinit command does two things:

1. Configure both SI5324 synthesizers, and

2. Configure the crosspoint switch that maps the synthesizer outputs to refclk outputs.

With the new command, we are programming synthesizer A to use the custom file to produce a 200 MHz clock on its output 0, with output 1 turned off, using the 125.000 MHz on board oscillator as a reference. We are programming synthesizer B to put out a 320.64 MHz clock on output 0, and a 160.32 MHz clock on output 1 using the TTC 40 MHz as a reference.

So the new synthesizer output frequencies are:
a0 = 200.000 MHz
a1 = off
b0 = 320.64 MHz (from TTC40)
b1 = 160.32 MHz (from TTC40)

The crosspoint switch outputs are mapped to the MGT link refclk inputs as follows--

Output 0 -> Front (CXP) side Refclk 0
Output 1 -> Front (CXP) side Refclk 1
Output 2 -> Back (miniPOD) side Refclk 1
Output 3 -> Back (miniPOD) side Refclk 0

So the list "B1 A0 A0 B1" in the clockinit command is performing the following mapping:

Synth Freq b1 (160.32 MHz) -> Crosspoint Output 0 (front refclk 0)
Synth Freq a0 (200 MHz) -> Crosspoint Output 1 (front refclk 1)
Synth Freq a0 (200 MHz) -> Crosspoint Output 2 (back refclk 1)
Synth Freq b1 (160.32 MHz) -> Crosspoint Output 3 (back refclk 0)

Eventually all this will have to be written up in a more comprehensive way. Hopefully this is enough for now to get you going and to understand the deeper functionality of the refclk distribution system a bit more.

When instantiating links, remember that on the front side, banks 111, 113, 116 and 118 receive the refclk inputs, both 0 and 1, and the back side similarly as the refclk inputs at banks 211, 213, 216 and 218. A MGT instantiation should pick up its refclk either from the inputs associated with it's bank, or from an adjacent bank. The distribution patterns above support this policy.

Raw data

MiniDAQ

The streamer files can be found on BU machines here: /store/lustre/scratch_minidaq/run/ (GEM miniDAQ BU machine currently is bu-c2f13-16-01)
The format of these files is described here: https://twiki.cern.ch/twiki/bin/viewauth/CMS/StorageManagerMessageStructure (note that the event data BLOB is compressed with zlib).
I have a python script to unpack that data here: https://github.com/evka85/GEM_AMC/blob/master/scripts/unpack.py
Remi gave this snippet of code on how to unpack these files with CMSSW:
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.source = cms.Source("NewEventStreamFileReader",
   fileNames = cms.untracked.vstring(
       "file:/afs/cern.ch/user/m/mommsen/scratch0/run302163_ls0787_streamExpress_StorageManager.dat"))

process.print1 = cms.OutputModule("AsciiOutputModule")
process.p1 = cms.EndPath(process.print1)

GEM Data Format

https://docs.google.com/spreadsheets/d/1iKMl68vMsSWgr8ekVdsJYTk7-Pgy8paxq98xj6GtoVo/edit#gid=759184475
*A1*
B1 C1 D1

GEMOS legacy install instructions

Add the necessary dependency repos

  • /etc/yum.repos.d/xdaq.repo:
[xdaq]
name     = XDAQ Software Base
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/base/RPMS/
enabled  = 1
gpgcheck = 0

[xdaq-sources]
name     = XDAQ Software Base Sources
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/base/SRPMS/
enabled  = 0
gpgcheck = 0

[xdaq-updates]
name     = XDAQ Software Updates
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/updates/RPMS/
enabled  = 1
gpgcheck = 0

[xdaq-updates-sources]
name     = XDAQ Software Updates Sources
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/updates/SRPMS/
enabled  = 0
gpgcheck = 0

[xdaq-extras]
name     = XDAQ Software Extras
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/extras/RPMS/
enabled  = 1
gpgcheck = 0

[xdaq-kernel-modules]
name     = XDAQ Software Kernel Modules
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/kernel_modules/RPMS/
enabled  = 1
gpgcheck = 0

[xdaq-unstable]
name     = XDAQ Software Base (Unstable)
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/unstable/RPMS/
enabled  = 0
gpgcheck = 0

[xdaq-unstable-extras]
name     = XDAQ Software Extras (Unstable)
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/unstable_extra/RPMS/
enabled  = 0
gpgcheck = 0

[xdaq-unstable-kernel-modules]
name     = XDAQ Software Kernel Modules (Unstable)
baseurl  = https://xdaq.web.cern.ch/xdaq/repo/14/cc7/x86_64/unstable_kernel_modules/RPMS/
enabled  = 0
gpgcheck = 0

  • /etc/yum.repos.d/ipbus-sw.repo:
 
[ipbus-sw-base]
name=IPbus software repository
# baseurl=http://www.cern.ch/ipbus/sw/release/2.5/centos7_x86_64/base/RPMS
baseurl=http://www.cern.ch/ipbus/sw/release/2.6/repos/centos7_x86_64/base/RPMS
enabled=1
gpgcheck=0


[ipbus-sw-updates]
name=IPbus software repository updates
# baseurl=http://www.cern.ch/ipbus/sw/release/2.5/repos/centos7_x86_64/updates/RPMS
baseurl=http://www.cern.ch/ipbus/sw/release/2.6/repos/centos7_x86_64/updates/RPMS
enabled=1
gpgcheck=0

  • /etc/yum.repos.d/cactus-amc13.repo:
 
[cactus-amc13-base]
name=CACTUS Project Software Repository for amc13 packages
# baseurl=http://www.cern.ch/cactus/release/amc13/1.2/centos7_x86_64/base/RPMS
baseurl=http://www.cern.ch/cactus/release/amc13/1.2/uhal2.6/centos7_x86_64/base/RPMS
enabled=1
gpgcheck=0


[cactus-amc13-updates]
name=CACTUS Project Software Repository Updates for amc13 packages
# baseurl=http://www.cern.ch/cactus/release/amc13/1.2/centos7_x86_64/updates/RPMS
baseurl=http://www.cern.ch/cactus/release/amc13/1.2/uhal2.6/centos7_x86_64/updates/RPMS
enabled=1
gpgcheck=0

Install external dependencies

sudo yum groups install extern_coretools coretools extern_powerpack powerpack
sudo yum groupinstall amc13
For me this conflicted with openslp package, so I had to remove that:
sudo yum remove openslp

Install GEMOS

sudo yum-config-manager --enable cernonly
sudo yum install cx_Oracle
sudo curl -L https://cern.ch/cmsgemdaq/sw/gemos/repos/releases/legacy/gemos_release_centos7_x86_64.repo -o /etc/yum.repos.d/gemos.repo
sudo yum install xhal reedmuller wiscrpcsvc gempython\*

Setup the CTP7 supporting infrastructure

cmsgemos/config/setupMachine.sh

Installing the libraries on the CTP7

curl -L -O https://cern.ch/cmsgemdaq/sw/gemos/repos/releases/legacy/base/tarballs/ctp7_libs-v1.1.0-f497579git.tgz

The internal structure is:

mnt/
mnt/persistent/
mnt/persistent/rpcmodules/
mnt/persistent/rpcmodules/extras.so
mnt/persistent/rpcmodules/daq_monitor.so
mnt/persistent/rpcmodules/memory.so
mnt/persistent/rpcmodules/amc.so
mnt/persistent/rpcmodules/gbt.so
mnt/persistent/rpcmodules/optohybrid.so
mnt/persistent/rpcmodules/calibration_routines.so
mnt/persistent/rpcmodules/utils.so
mnt/persistent/rpcmodules/vfat3.so
mnt/persistent/rpcmodules/optical.so
mnt/persistent/rpcmodules/memhub.so
mnt/persistent/gemdaq/
mnt/persistent/gemdaq/lib/
mnt/persistent/gemdaq/lib/libreedmuller.so
mnt/persistent/gemdaq/lib/libxhal.so
mnt/persistent/gemdaq/lib/librwreg.so

What needs to be run on the CTP7???

Running the software

https://github.com/cms-gem-daq-project/sw_utils/blob/develop/v3ElectronicsUserGuide.md

Power-cycling boards via NAT MCH

1. From gem904daq01 or gem904daq04 PC log in to MCH: telnet gem904mch02
2. using the MCH interface, powercycle the board. Example:

show_fru

FRU Information:
----------------
 FRU  Device   State  Name
==========================================
  0   MCH       M4    NMCH-CM
  3   mcmc1     M4    NAT-MCH-MCMC
 11   AMC7      M4    WISC CTP-7
 30   AMC13     M4    BU AMC13
 40   CU1       M4    Schroff uTCA CU
 41   CU2       M4    Schroff uTCA CU
 50   PM1       M4    NAT-PM-DC840
 51   PM2       M4    NAT-PM-DC840
==========================================
nat> shutdown 30
nat>show_fru

FRU Information:
----------------
 FRU  Device   State  Name
==========================================
  0   MCH       M4    NMCH-CM
  3   mcmc1     M4    NAT-MCH-MCMC
 11   AMC7      M4    WISC CTP-7
 30   AMC13     M1    BU AMC13
 40   CU1       M4    Schroff uTCA CU
 41   CU2       M4    Schroff uTCA CU
 50   PM1       M4    NAT-PM-DC840
 51   PM2       M4    NAT-PM-DC840
==========================================
nat> fru_start 30
nat> FRU Information:
----------------
 FRU  Device   State  Name
==========================================
  0   MCH       M4    NMCH-CM
  3   mcmc1     M4    NAT-MCH-MCMC
 11   AMC7      M4    WISC CTP-7
 30   AMC13     M4    BU AMC13
 40   CU1       M4    Schroff uTCA CU
 41   CU2       M4    Schroff uTCA CU
 50   PM1       M4    NAT-PM-DC840
 51   PM2       M4    NAT-PM-DC840
==========================================
nat> exit

Producing a pickle file

  • copy the new XML (CTP7 and/or OH) to gem904daq01:~/gem_pickle
  • login to gem904daq01
  • update the xml symlink(s)
  • run make_pickle.sh
  • exit out of the reg_interface, and edit the pickle as described in the message

Full instructions from Misha:

1. Login to the PC where the GEM software is centrally installed, e.g. gem904daq01 or gem904qc8daq and set the following env variables:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/wiscrpcsvc/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/xhal/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rwreg/lib/

export PATH=$PATH:/opt/reg_utils/bin/
export PATH=$PATH:/opt/xhal/bin/

2. Prepare the test environment a la:
$ mkdir ~/test_address_tables
$ export GEM_ADRESS_TABLE_PATH=~/test_address_tables
$ cd $GEM_ADRESS_TABLE_PATH
$ ln -sf /data/bigdisk/GEMDAQ_Documentation/system/firmware/files/CTP7/vX.Y.Z/<address_table_filename>.xml amc_address_table_top.xml
$ ln -sf /data/bigdisk/GEMDAQ_Documentation/system/firmware/files/OptoHybrid/GE2.1_Artix7/<address_table_filename>.xml optohybrid_registers.xml

3. In case you’re reusing the area created in p2, make sure you delete any previously made pickle files

4. Run:
$ gem_reg.py 
or
$ /opt/xhal/bin/gem_reg.py
This will produce a pickle file under $GEM_ADRESS_TABLE_PATH/amc_address_table_top.pickle This file is usable from the host PC - please provide it as is it to whoever is going to operate the system from the host. It has to be modified to be used on the card - see next bullet.

5. In order to use the pickle file on the card, modify it in a following way:
  - open it with your preferred text editor (I use vim)
  - on the line 3, change "creg_utils.reg_interface.common.reg_xml_parser" to “crw_reg”. Make sure you don’t change invisible symbols like end of line.

6. Copy modified pickle file to eagleXX:/mnt/persistent/gemdaq/xml/amc_address_table_top.pickle

Fiber connections at 904


M2 and M3 are connected to eagle64, but M3 is actually using M1 fibers, so M3 is OH0, and M2 is OH1 (both in gbt and trigger)
M4 has OHv2 and it's connected to APEX using fibers 15+22 for GBT0, and 16+21 for GBT1, which is then connected to QSFPs

Trigger fibers on eagle64:
MTP48 to EMTF: MTP12#4, fibers 1, 2, 3, 4, 5, 6, 7, 8 connect to 1, 2, 3, 4, 5, 6, 7, 8 on EMTF side
MTP48 to OH: MTP12#3 fibers:
  12, 11 -- M4
  10, 9  -- TX 9 & 10
  8,  7  -- M2
  5,  6  -- M1 (this actually goes to M3 right now)
  2 -- TX 12
  3 -- M3 trigger
  4 -- M3 trigger

eagle64 is installed in slot 5

OH #4 being shipped to me

Hog and gitlab-ci

Install ccze -- this will colorize the shell and highlight errors and warnings in Hog output, super useful.

Install tcllib

Gitlab runner registration
Some simple instructions for registering a Gitlab runner

Install gitlab-runner

https://docs.gitlab.com/runner/install/

Execute gitlab-runner register

At the prompt of “Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):”, enter: https://gitlab.cern.ch/
At the prompt of “Please enter the gitlab-ci token for this runner:”, enter the token that you get from Settings -> CI/CD -> Runners –> Set up a specific Runner manually.
At the prompt of “Please enter the gitlab-ci description for this runner:”, give it a name:
At the prompt of “Please enter the gitlab-ci tags for this runner (comma separated):”, enter: hog

At the prompt of: “Please enter the executor: docker+machine, docker-ssh+machine, kubernetes, parallels, virtualbox, docker-ssh, shell, ssh, custom, docker:”, enter: shell

Now you can simply start the runner (gitlab-runner run). Make sure Vivado is in the path.

Useful links

GEM EDMS: https://edms.cern.ch/ui/#!master/navigator/project?P:1424611140:1424611140:subDocs
Xilinx red box setup on linux: https://lifetrg.wordpress.com/2019/04/23/installing-xilinx-ise-14-7-on-centos-7-6/
Control machine setup script: https://github.com/cms-gem-daq-project/cmsgemos/blob/develop/config/setupMachine.sh
V3 electronics user guide: https://github.com/bdorney/sw_utils/blob/feature_newUtilities/v3ElectronicsUserGuide.md
GE1/1 fibers: https://docs.google.com/spreadsheets/d/15R8oF_rvkfzo4C90RmiNl7D5aWL_oPuCAiFL9bmQoks/edit#gid=778578388
GE2/1 master documentation: https://twiki.cern.ch/twiki/bin/viewauth/CMS/MuonGEMGE21
Backend Twiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonGEMBackend
V3 manual: https://github.com/cms-gem-daq-project/sw_utils/blob/develop/v3ElectronicsUserGuide.md
GE2/1 OH twiki: https://twiki.cern.ch/twiki/bin/view/CMS/GE21OHBoardTwiki
CTP7 link mapping: https://docs.google.com/spreadsheets/d/1-AE7GeeU10GfLB-9FYOMN4k0-Z7bVkiQpLfXC4G2irI/edit#gid=1143920563
CTP7 DAQ formats: https://docs.google.com/spreadsheets/d/1iKMl68vMsSWgr8ekVdsJYTk7-Pgy8paxq98xj6GtoVo/edit?ts=5bf03401#gid=1932024064
CERN Chips Schedule: https://ep-ese.web.cern.ch/content/lpgbt-vl-dcdc-schedule
CERN Chips need by dates: https://docs.google.com/spreadsheets/d/1tIRSD1rgF24HRcxwfT3IsciqCDxm96HY0JmasVJMKOo/edit?ts=5b881030#gid=370992302
CERN VMs: https://openstack.cern.ch/project/
GE2/1 LpGBT OH schematics: http://padley.rice.edu/cms/OH_GE21_LpGBT/lpohdesign.html
904 time reservation (superSaas): https://www.supersaas.com/schedule/GEM_904_Infrastructure
LpGBT Manual: https://lpgbt.web.cern.ch/lpgbt/manual/
ME0 Asiago page: https://twiki.cern.ch/twiki/bin/view/CMS/ME0ASIAGO
ME0 scripts: https://github.com/andrewpeck/me0_scripts
GEM trigger data format: https://docs.google.com/document/d/19WZ_8iTlNpXKKUVba9B8mIh0GJv_CHQWk9KaelH-qZI/edit#
GEM trigger data format detector note: https://gitlab.cern.ch/tdr/notes/DN-20-016/-/blob/master/temp/DN-20-016_temp.pdf
DTH manual: https://cms-daq-dth-p1.web.cern.ch/dth-kit GEM SW schedule: https://docs.google.com/spreadsheets/d/1BtGb1NBFbxYpLMQlB-7csn1_SjtpKyyGQ1YeOEKsQ_0/edit#gid=0

-- EvaldasJuska - 2018-08-31

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt CSC_FED_SynthA_125in_200_off_out.txt r1 manage 3.0 K 2019-08-29 - 16:19 EvaldasJuska Synchronizer config to provide 200MHz on output 0 (used for CSC FED)
Edit | Attach | Watch | Print version | History: r53 < r52 < r51 < r50 < r49 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r53 - 2021-03-24 - EvaldasJuska
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2021 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