Checkout existing RCT code and APx Core Firmware connector from:
git clone --recursive ssh://[email protected]:7999/asvetek/phase2-rct.git -b 384b
git clone [email protected]:SridharaDasu/CMSPhase2RCT.git
cd CMSPhase2RCT
git checkout RCT-Gen2-384-Bit
source setEnv.sh #(uwlogin/beck independent)
For HLS simulation:
cd $AP_FW_BASE_DIR/CMSPhase2RCT/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
For HLS synthesis and exporting RTl:
cd $AP_FW_BASE_DIR/CMSPhase2RCT/hls/vivado_hls/
vivado_hls -f run_hls.tcl synth=1 export=1
Simulation, Synthesis, Verification and RTL generation in Vivado HLS (takes 2 hours):
cd $AP_FW_BASE_DIR/CMSPhase2RCT/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
Making the bit file for APd (takes hours):
cd $AP_FW_BASE_DIR/phase2-rct/
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