From 706b5e4f716e1d85196ddc6f5ac789f6eb72d4ce Mon Sep 17 00:00:00 2001 From: "hadaq@countinghouse" Date: Thu, 28 Aug 2014 17:27:05 +0200 Subject: [PATCH] status, mt --- pion/config/nxyter.sh | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/pion/config/nxyter.sh b/pion/config/nxyter.sh index 2d832bd..39eaf8f 100755 --- a/pion/config/nxyter.sh +++ b/pion/config/nxyter.sh @@ -1,12 +1,12 @@ #!/bin/bash -cd nxyter/ +cd ./nxyter -nxarr=(0x3800 0x3801 0x3810 0x3811) +NXYTER_LIST="0x3800 0x3801 0x3810 0x3811" echo "======================" echo $(date) -for i in ${nxarr[*]}; do +for i in ${NXYTER_LIST} ; do echo "nxyter: $i" res=$(trbcmd i $i 2> /dev/null | wc -l) if [ $res -eq 0 ]; then @@ -16,31 +16,32 @@ for i in ${nxarr[*]}; do fi msg="+ n-XYTER found" echo -e $msg - ./trb3_setup.sh $i + ./setup.sh $i done -#./trb3_setup.sh 0x3800 -#./trb3_setup.sh 0x3801 -#./trb3_setup.sh 0x3802 -#./trb3_setup.sh 0x3803 +# Configure Central FPGA Hubs +trbcmd w 0x8900 0xc0 0xfff6 +trbcmd w 0x8900 0xc1 0xfff6 +trbcmd w 0x8900 0xc3 0xfff6 +# 9 +trbcmd w 0x8910 0xc0 0xfff6 +trbcmd w 0x8910 0xc1 0xfff6 +trbcmd w 0x8910 0xc3 0xfff7 -trbcmd w 0x8900 0xc0 0xfff9 -trbcmd w 0x8900 0xc1 0xfff9 -trbcmd w 0x8900 0xc3 0xfff9 - -trbcmd w 0x8910 0xc0 0xfff3 -trbcmd w 0x8910 0xc1 0xfff3 -trbcmd w 0x8910 0xc3 0xfff3 +#TDC channel for spill signal +trbcmd w 0x3830 0xc802 0x3000 #Trigger forwarding setting -trbcmd setbit 0x8900 0xcf00 0x8000 #3801 only -trbcmd clearbit 0x8900 0xcf00 0x0008 #3800 disabled +trbcmd setbit 0x8900 0xcf00 0x0800 #3801 only +trbcmd clearbit 0x8900 0xcf00 0x0080 #3800 disabled + +trbcmd setbit 0x8910 0xcf00 0x0080 #3810 +trbcmd clearbit 0x8910 0xcf00 0x0800 #3811 disabled -trbcmd setbit 0x8910 0xcf00 0x0008 #3810 -trbcmd clearbit 0x8910 0xcf00 0x0080 #3811 disabled +#Enable SED for debugging +trbcmd w 0xfe49 0xd500 1 cd .. # enable TT mode (calibration) #../nxscripts/mode_t.sh - -- 2.43.0