From: Hadaq@styx Date: Wed, 9 Oct 2013 15:15:43 +0000 (+0200) Subject: config files for Juelich test X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=e2e08aa2e6028c3ffc2b4bb188fbbc6c39a5773e;p=daqtools.git config files for Juelich test --- diff --git a/users/cosy_test/config/TrbStart.sh b/users/cosy_test/config/TrbStart.sh new file mode 100755 index 0000000..5ef48b2 --- /dev/null +++ b/users/cosy_test/config/TrbStart.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "Setting up Start TRB" + + +#execute this on TRB: + +TRBNUM=129 + +../../../tools/command_client.pl -e etraxp$TRBNUM -c 'spi_trbv2_rl /home/hadaq/start_and_veto/thresholds_test' +../../../tools/command_client.pl -e etraxp$TRBNUM -c "cd /home/hadaq/scripts/; ./trbv2_TDCs_configure.sh ${TRBNUM}" +../../../tools/command_client.pl -e etraxp$TRBNUM -c 'rw_trbv2 --trb w 0 c2 007E0100; rw_trbv2 --trb w 0 c0 0a000000; rw_trbv2 --trb w 0 c3 00000100' + + diff --git a/users/cosy_test/config/cts.sh b/users/cosy_test/config/cts.sh new file mode 100755 index 0000000..829f1bb --- /dev/null +++ b/users/cosy_test/config/cts.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "No CTS configuration" diff --git a/users/cosy_test/config/dhcp.sh b/users/cosy_test/config/dhcp.sh new file mode 100755 index 0000000..6856051 --- /dev/null +++ b/users/cosy_test/config/dhcp.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "Setting addresses" +../../../tools/merge_serial_address.pl ../../../base/serials_trb3.db dhcp/addresses_trb3.db +../../../tools/merge_serial_address.pl dhcp/serials_hub.db dhcp/addresses_hub.db +../../../tools/merge_serial_address.pl dhcp/serials_trb2.db dhcp/addresses_start.db + + + \ No newline at end of file diff --git a/users/cosy_test/config/dhcp/addresses_hub.db b/users/cosy_test/config/dhcp/addresses_hub.db new file mode 100755 index 0000000..f1cff86 --- /dev/null +++ b/users/cosy_test/config/dhcp/addresses_hub.db @@ -0,0 +1,5 @@ +#Address # S/N # FPGA # Design # TRB # +################################################### +#Cerberos +0x8801 022 1 3 022 +0x8800 022 2 5 022 diff --git a/users/cosy_test/config/dhcp/addresses_start.db b/users/cosy_test/config/dhcp/addresses_start.db new file mode 100755 index 0000000..80cf993 --- /dev/null +++ b/users/cosy_test/config/dhcp/addresses_start.db @@ -0,0 +1,3 @@ +#Address # S/N # FPGA # Design # TRB # +################################################### +0x4000 129 1 6 129 diff --git a/users/cosy_test/config/dhcp/addresses_trb3.db b/users/cosy_test/config/dhcp/addresses_trb3.db new file mode 100755 index 0000000..7175b94 --- /dev/null +++ b/users/cosy_test/config/dhcp/addresses_trb3.db @@ -0,0 +1,14 @@ +# addresses.db +# maps trbnet-addresses to serial number + FPGA numbers + +# Address # S/N # FPGA + + +0x3800 33 0 +0x3801 33 1 +0x3802 33 2 +0x3803 33 3 +0x8900 33 5 + +0x8000 69 5 +0x8001 69 0 \ No newline at end of file diff --git a/users/cosy_test/config/dhcp/serials_hub.db b/users/cosy_test/config/dhcp/serials_hub.db new file mode 100755 index 0000000..fd991a7 --- /dev/null +++ b/users/cosy_test/config/dhcp/serials_hub.db @@ -0,0 +1,3 @@ +# s/n # unique id +########################### + 022 0x1200000123f08e28 diff --git a/users/cosy_test/config/dhcp/serials_trb2.db b/users/cosy_test/config/dhcp/serials_trb2.db new file mode 100755 index 0000000..5f33473 --- /dev/null +++ b/users/cosy_test/config/dhcp/serials_trb2.db @@ -0,0 +1,5 @@ +#Serial numbers of starts trbs and their unique ids + +# s/n # unique id +########################### +129 0xaa00000270f2d628 diff --git a/users/cosy_test/config/gbe/register_configgbe.db b/users/cosy_test/config/gbe/register_configgbe.db new file mode 100755 index 0000000..cf4f541 --- /dev/null +++ b/users/cosy_test/config/gbe/register_configgbe.db @@ -0,0 +1,21 @@ + + + +!Register table +# Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # C9 # +################################################################################################### + 0 0x8300 0x8301 0x8302 0x8303 0x8304 0x8305 0x8306 0x8307 0x8308 0x830b + +#old register set +# 17 0xc100 0xc101 0xc102 0xc103 0xc104 0xc105 0xc106 0xc107 0xc108 + + +!Value table +# SubEvtId SubEvtDec QueDec PackSize FrameSize UseGbE UseTrbNet MultiQueue Trig. Num. MinEvtSize +# Hub # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # C9 # +################################################################################################################################################### + 0x8000 0 0x8000 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7 + 0x8800 0 0x8800 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7 + 0x8900 0 0x8900 0x00020001 0x00030062 0xFDE8 0x578 1 0 0 0xffffff 0x7 + + diff --git a/users/cosy_test/config/gbe/register_configgbe_ip.db b/users/cosy_test/config/gbe/register_configgbe_ip.db new file mode 100755 index 0000000..19523da --- /dev/null +++ b/users/cosy_test/config/gbe/register_configgbe_ip.db @@ -0,0 +1,39 @@ +########################################################################################### +#Eventbuilders: +# EB 0: hadespc001 eth1 ports 50000 - 50099 + +!Register table +# Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # +########################################################################################### +#new memory locations + 0 0x8100 0x8101 0x8102 0x8103 0x8104 0x8105 0x8106 0x8107 0x8108 + 1 0x8110 0x8111 0x8112 0x8113 0x8114 0x8115 0x8116 0x8117 0x8118 + 2 0x8120 0x8121 0x8122 0x8123 0x8124 0x8125 0x8126 0x8127 0x8128 + 3 0x8130 0x8131 0x8132 0x8133 0x8134 0x8135 0x8136 0x8137 0x8138 + 4 0x8140 0x8141 0x8142 0x8143 0x8144 0x8145 0x8146 0x8147 0x8148 + 5 0x8150 0x8151 0x8152 0x8153 0x8154 0x8155 0x8156 0x8157 0x8158 + 6 0x8160 0x8161 0x8162 0x8163 0x8164 0x8165 0x8166 0x8167 0x8168 + 7 0x8170 0x8171 0x8172 0x8173 0x8174 0x8175 0x8176 0x8177 0x8178 + 8 0x8180 0x8181 0x8182 0x8183 0x8184 0x8185 0x8186 0x8187 0x8188 + 9 0x8190 0x8191 0x8192 0x8193 0x8194 0x8195 0x8196 0x8197 0x8198 + 10 0x81A0 0x81A1 0x81A2 0x81A3 0x81A4 0x81A5 0x81A6 0x81A7 0x81A8 + 11 0x81B0 0x81B1 0x81B2 0x81B3 0x81B4 0x81B5 0x81B6 0x81B7 0x81B8 + 12 0x81C0 0x81C1 0x81C2 0x81C3 0x81C4 0x81C5 0x81C6 0x81C7 0x81C8 + 13 0x81D0 0x81D1 0x81D2 0x81D3 0x81D4 0x81D5 0x81D6 0x81D7 0x81D8 + 14 0x81E0 0x81E1 0x81E2 0x81E3 0x81E4 0x81E5 0x81E6 0x81E7 0x81E8 + 15 0x81F0 0x81F1 0x81F2 0x81F3 0x81F4 0x81F5 0x81F6 0x81F7 0x81F8 + +!Value table +# Dest MAC Dest MAC Dest IP Dest Port Src MAC Src MAC Src IP Src Port Packet Size +# Hub # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # +######################################################################################################################################## +#hadespc001, EB0 00:0e:0c:5a:49:a0 192.168.0.1 +# 0x8800 0 0x18314906 0x0010 0x0a9b3b76 0xc350 0xdead8800 0x0230 0xC0A8008B 0xc350 0x0578 +# cerberos hub, EB0 d0:67:e5:10:3b:84 10.155.59.47 10.155.59.216 +# 0x8800 0 0x607bf78c 0x001d 0x0a9b3b46 0xc350 0xdead8800 0x0230 0x0a9b3b12 0xc350 0x0578 + + + 0x8000 0 0xe5103b84 0xd067 0x0a9b3b2f 0xc350 0xdead8000 0x0230 0x0a9b3bd8 0xc350 0x0578 + 0x8800 0 0xe5103b84 0xd067 0x0a9b3b2f 0xc351 0xdead8800 0x0230 0x0a9b3bd8 0xc351 0x0578 + 0x8900 0 0xe5103b84 0xd067 0x0a9b3b2f 0xc352 0xdead8900 0x0230 0x0a9b3bd8 0xc352 0x0578 + diff --git a/users/cosy_test/config/hubconfig.sh b/users/cosy_test/config/hubconfig.sh new file mode 100755 index 0000000..3c55ef3 --- /dev/null +++ b/users/cosy_test/config/hubconfig.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo "Loading hub configuration" + +#CTS sees only one peripheral FPGA (hub), SFP1 only for slow-control + trbcmd w 0x8000 0xc0 0xffe1 + trbcmd w 0x8000 0xc1 0xffe1 + trbcmd w 0x8000 0xc3 0xfff1 + +#Timeouts + trbcmd w 0xfffe 0xc5 0x40ff + + +#Gbe configuration +echo "Load GbE configuration" +../../../tools/loadregisterdb.pl gbe/register_configgbe.db +../../../tools/loadregisterdb.pl gbe/register_configgbe_ip.db + + + diff --git a/users/cosy_test/config/nxyter.sh b/users/cosy_test/config/nxyter.sh new file mode 100755 index 0000000..936c51d --- /dev/null +++ b/users/cosy_test/config/nxyter.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Loading nxyter read-out configuration" +echo "...Not available yet..." + diff --git a/users/cosy_test/config/startup.sh b/users/cosy_test/config/startup.sh new file mode 100755 index 0000000..d9f7aea --- /dev/null +++ b/users/cosy_test/config/startup.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Using Daqopserver $DAQOPSERVER." + +echo "Run Reset" +trbcmd reset + + +#Network configuration +./dhcp.sh +./hubconfig.sh + +#Front-end configuration +./TrbStart.sh +./nxyter.sh +./cts.sh \ No newline at end of file