Checkout existing GCT code and APx Core Firmware connector from:
git clone [email protected]:varuns23/CMSPhase2GCT.git
cd CMSPhase2GCT
source setEnv.sh #(uwlogin/beck independent)
export algo = etaStitch
export algo = phiStitch
export algo = EgAlgo
export algo = JetAlgo
export algo = METAlgo
export algo = TauAlgo
For HLS simulation
cd $AP_FW_BASE_DIR/CMSPhase2GCT/$algo/hls/vivado_hls/
vivado_hls -f run_hls.tcl csim=1 tv_in=$PWD/data/test_in.txt tv_out=$PWD/data/test_out.txt tv_ref=$PWD/data/test_out_ref.txt
Synthesis and exporting RTL
cd $AP_FW_BASE_DIR/CMSPhase2GCT/$algo/hls/vivado_hls/
vivado_hls -f run_hls.tcl synth=1 export=1
Simulation, Synthesis, Verification and RTL generation in Vivado HLS:
cd $AP_FW_BASE_DIR/CMSPhase2GCT/$algo/hls/vivado_hls/
vivado_hls -f run_hls.tcl csim=1 synth=1 cosim=1 export=1 tv_in=$PWD/data/test_in.txt tv_out=$PWD/data/test_out.txt tv_ref=$PWD/data/test_out_ref.txt
cd $AP_FW_BASE_DIR
git clone --recursive ssh://[email protected]:7999/asvetek/phase2-gct.git
cd $AP_FW_BASE_DIR/phase2-gct/
mkdir build
make
Follow instructions at twiki - adapt suitably for usage on beck.hep.wisc.edu: https://twiki.cern.ch/twiki/bin/viewauth/CMS/L1TriggerPhase2HLSProjects