https://confluence.slac.stanford.edu/x/vJmDFg
$ git clone --recursive git@github.com:slaclab/cameralink-gateway
LED[TOP].Green = PGP2b Link Up
LED[TOP].Blue = PGPv4 Link Up
LED[TOP].Red = Unused (always OFF)
LED[BOTTOM].Green = CLINK Running
LED[BOTTOM].Blue = Unused (always OFF)
LED[BOTTOM].Red = CLINK not Running
SFP[0] = PGP2b
SFP[1] = PGPv4
SFP[2] = Unused
SFP[3] = Unused
SFP[0] is fiber closed to the power connector. Numbering goes from left to right with SFP[3] closest to JTAG connector.
https://github.com/slaclab/lcls2-pgp-pcie-apps
- Setup Xilinx licensing
$ source cameralink-gateway/firmware/setup_env_slac.sh
- Go to the target directory and make the firmware:
$ cd cameralink-gateway/firmware/targets/ClinkFeb/
$ make
- Optional: Review the results in GUI mode
$ make gui
https://confluence.slac.stanford.edu/x/HLuDFg
https://docs.google.com/document/d/1B_sIkk9Fxsw2EjOBpGVFpfCCWoIiOJoVGTrkTshZfew/edit?usp=sharing
- Setup the rogue environment
$ cd cameralink-gateway/software
$ source setup_env_template.sh
- Run the FEB firmware update script:
$ python scripts/updateFebFpga.py --lane <PGP_LANE> --mcs <PATH_TO_MCS>
where <PGP_LANE> is the PGP lane index (range from 0 to 3) and <PATH_TO_MCS> is the path to the firmware .MCS file
- Setup the rogue environment
$ cd cameralink-gateway/software
$ source setup_env_slac.sh
- Lauch the GUI:
$ python scripts/devGui --pgp4 IS_PGP4_BOOL --laneConfig LANE_CONFIG_DICTIONARY
Example of starting up OPAL1000 on Lane[0] with PGP4 (instead of PGP2b) and stand alone mode (locally generated timing)
$ python scripts/devGui --pgp4 1 --laneConfig 0=Opal1000 --standAloneMode 1
Then execute the StartRun() command to start the triggering