AMC502 firmware for external conditions
These branches contain modified MP7 files for amc502_extcond (files are taken from directory “replacement_files”):
One of these branches is used for build (see below).
The ugt repo is a fork of svn2git ugt repo.
# Run kerberos for outside of CERN network
kinit username@CERN.CH
# Make local clone of ugt repositiory
git clone https://gitlab.cern.ch/hbergaue/ugt.git <local path>
cd <local path>
# Run synthesis script
python amc502_extcond/scripts/runIpbbSynth.py <vivado version [2018.2]> -t <MP7 tag [mp7fw_v2_4_1]> -p <work dir> --ugt <ugt master, branch or tag name> -b <build version>
# Run kerberos for outside of CERN network
kinit username@CERN.CH
# Download and install ipbb
curl -L https://github.com/ipbus/ipbb/archive/v0.2.8.tar.gz | tar xvz
source ipbb-0.2.8/env.sh
# Create a local working area
ipbb init <work dir>/amc502_extcond/<mp7fw version>/<build version>
cd <work dir>/amc502_extcond/<mp7fw version>/<build version>
ipbb add git https://github.com/ipbus/ipbus-firmware.git -b master
ipbb add git https://:@gitlab.cern.ch:8443/hbergaue/mp7.git -b mp7fw_v2_4_1_amc502_extcond
ipbb add git https://:@gitlab.cern.ch:8443/hbergaue/ugt.git -b <master or branch name or tag name>
# Patch file top_decl.vhd and copy to ../src/ugt/amc502_extcond/firmware/hdl
# Source Vivado
# Create project
ipbb proj create vivado amc502_extcond_<build version> mp7:../ugt/amc502_extcond
cd proj/amc502_extcond_<build version>
ipbb vivado project
# Run implementation, synthesis
ipbb vivado synth
ipbb vivado impl
# Generate a bitfile
ipbb vivado package
deactivate