SuperKEKB XRM system  Not logged in ELOG logo
Message ID: 3     Entry time: Tue May 3 08:11:06 2016
Author: M. Andrew 
Type: documentation 
Subject: what was done in January 2016 

Here is a data dump of everything that happened on the asus laptop while getting the laste 2015 / early 2016 incarnation of the XRM tested before being delivered to KEK on the weekend of January 24th.  Everything was done in bash and the firmware only addressed one carrier at a time, so the purpose of this elog entry is simply to archive the information.

Attachment 1: howtogetdata.mza  408 Bytes  | Show | Hide all
Attachment 2: 2016-01-24.XRM-history  14 kB  | Show | Hide all
Attachment 3: 2016-01-24.XRM-code-chanes.patch  6 kB  | Show | Hide all
Attachment 4: XRM-fpga2-alias-output  1 kB  | Show | Hide all
Attachment 5: grab_all_peds  731 Bytes  | Show | Hide all
Attachment 6: mza.gnuplot  773 Bytes  | Show | Hide all
Attachment 7: IMG_1025.JPG  314 kB  | Show | Hide all
Attachment 8: IMG_1027.JPG  337 kB  | Show | Hide all
Attachment 9: IMG_1028.JPG  285 kB  | Show | Hide all
Attachment 10: 2016-01-24.LASER5.png  659 kB  | Show | Hide all
Attachment 11: 2016-01-24.LASER.png  614 kB  | Show | Hide all
Attachment 12: 2016-01-24.LASER14.png  640 kB  | Show | Hide all
Attachment 13: 2016-01-24.LASER13.png  671 kB  | Show | Hide all
Attachment 14: 2016-01-24.LASER12.png  619 kB  | Show | Hide all
Attachment 15: 2016-01-24.LASER11.png  641 kB  | Show | Hide all
Attachment 16: 2016-01-24.LASER9.png  638 kB  | Show | Hide all
Attachment 17: program-bit-and-elf-and-go.xmd.tcl  3 kB  | Hide | Hide all
# Set for local JTAG access
# Modify for remote access via hw_server or vcse_server
set TCP "127.0.0.1:3121"
#set freq 3000000
set freq 10000000
#set TCP "ppa-linuxtest3.slac.stanford.edu:3121"

# Set current version numbers of firmware
set SCROD_FW_VERSION    "B000000E"
#set SCROD_FW_VERSION    "B0000009"
#Laser Test Golden File below!!!
set CARRIER_FW_VERSION  "E000000B"
#Lynn's speedup improvements
#set CARRIER_FW_VERSION  "E000000C_3"
#set CARRIER_FW_VERSION  "E0000008"
# Set current version numbers of elf files
#set SCROD_ELF_VERSION   "B0000003"
set SCROD_ELF_VERSION   "B0000007"
#set CARRIER_ELF_VERSION "E0000000"
set CARRIER_ELF_VERSION "E0000001"

# Devices on the chain should enumerate as:
#
#JTAG chain configuration
#--------------------------------------------------
#Device   ID Code        IR Length    Part Name
# 1       4ba00477           4        arm_dap
# 2       23731093           6        xc7z045
# 3       4ba00477           4        arm_dap
# 4       1372c093           6        xc7z030
# ...
# 9       4ba00477           4        arm_dap
# 10      1372c093           6        xc7z030
#

# Scan the device chain to see how many carriers we have
set deviceChain [readjtagchain -cable url TCP:$TCP]
set lastDevice [string range $deviceChain [string last devicenr $deviceChain]+9 [string last devicenr $deviceChain]+10]
puts "last device in programming chain is number $lastDevice"
set nCarriers [expr ($lastDevice-2)/2]
puts "It appears that you have $nCarriers carriers connected."

# Program bit files
fpga -f bitfiles/ScrodRevB_b2tt_gigE_${SCROD_FW_VERSION}.bit -debugdevice deviceNr 2 -cable type xilinx_tcf url TCP:$TCP frequency $freq
for {set i 4} {$i <= $lastDevice} {incr i 2} {
#Lynn's speedup improvements
#   fpga -f bitfiles/CarrierRevE_${CARRIER_FW_VERSION}.bit -debugdevice deviceNr $i -cable url TCP:$TCP frequency $freq
#   fpga -f bitfiles/CarrierRevE_newGUI_PS_LaserTest_debug.bit -debugdevice deviceNr $i -cable url TCP:$TCP  frequency $freq
#Laser Test Golden File below!!!
   fpga -f bitfiles/CarrierRevE_newGUI_PS_LaserTest_nodebug.bit -debugdevice deviceNr $i -cable type xilinx_tcf url TCP:$TCP frequency $freq
}

# Program PS for SCROD
xload hw bitfiles/ScrodRevB_b2tt_gigE_${SCROD_FW_VERSION}.hdf
source bitfiles/ps7_init_SCROD.tcl
xconnect arm hw -cable type xilinx_tcf url TCP:$TCP frequency $freq -debugdevice devicenr 1 cpunr 1
set_cur_target 64
set_cur_system
xzynqresetstatus 64
ps7_init
ps7_post_config
xclearzynqresetstatus 64
xreset 64 0x80
dow ps_files/Scrod_PS_app_${SCROD_ELF_VERSION}.elf
xsafemode 64 off
con

# Program PS for carriers
for {set i 3} {$i < $lastDevice} {incr i 2} {
#Lynn's speedup improvements
#   xload hw bitfiles/CarrierRevE_${CARRIER_FW_VERSION}.hdf
#Laser Test Golden File below!!!
   xload hw bitfiles/CarrierRevE_newGUI_PS_LaserTest_debug.hdf 
   source bitfiles/ps7_init_CARRIER.tcl
   xconnect arm hw -cable type xilinx_tcf url TCP:$TCP frequency $freq -debugdevice devicenr $i cpunr 1
   set_cur_target 64
   set_cur_system
   xzynqresetstatus 64
   ps7_init
   ps7_post_config
   xclearzynqresetstatus 64
   xreset 64 0x80
   dow ps_files/CarrierRevE_PS_app_${CARRIER_ELF_VERSION}.elf
   xsafemode 64 off
   con
}

Attachment 18: setup_env_template.sh  4 kB  | Show | Hide all
Attachment 19: XRM.bashrc  3 kB  | Show | Hide all
ELOG V3.1.5-3a5f2f0