SuperKEKB XRM system |
Not logged in |
 |
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
}
|
|
|