From 8bd11aacf3cd5ed5403e620973b4f27a9f7b7b0a Mon Sep 17 00:00:00 2001 From: Hadaq Date: Fri, 11 Nov 2016 13:30:32 +0100 Subject: [PATCH] new Frankfurt test setup files --- users/frankfurt_tdc/dmon_config.pl | 39 ++++++++++++++++++++ users/frankfurt_tdc/register_configgbe.db | 19 ++++++++++ users/frankfurt_tdc/register_configgbe_ip.db | 34 +++++++++++++++++ users/frankfurt_tdc/startup.sh | 30 +++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 users/frankfurt_tdc/dmon_config.pl create mode 100755 users/frankfurt_tdc/register_configgbe.db create mode 100755 users/frankfurt_tdc/register_configgbe_ip.db create mode 100755 users/frankfurt_tdc/startup.sh diff --git a/users/frankfurt_tdc/dmon_config.pl b/users/frankfurt_tdc/dmon_config.pl new file mode 100644 index 0000000..94ee19f --- /dev/null +++ b/users/frankfurt_tdc/dmon_config.pl @@ -0,0 +1,39 @@ +#This a an example configuration file. Copy this file to your user directory and give +#start.pl a link to this file as first argument. + +#Scripts to start & order of icons in the Overview +activeScripts => [['time','ping','-','-','daqop'], + ['numfee','temperature','reftime','',''], + ['','','-','',''], + ['trgrate','datarate','deadtime','-','-'], + ['adcvolt','adccurr','','',''], + ['','','','-','-']], + +#Names to be shown in left column of Overview (max 4 letters!) +qaNames => ['sys','main','beam','rate','pwr','-','-'], + +#Expected number of FPGAs in system +NumberOfFpga => 10, + +#The address of the individual boards +CtsAddress => 0xc000, + +HubTrbAdresses => [0xfffe], + + +#Addresses of all TDCs. Either single or broadcast addresses +TdcAddress => [0xfe51], + +#ADC voltage monitoring +AdcCombinerAddress => [0xfe52], +AdcDiRichAddress => [0xfe51], +AdcTrb3sc => [0xfe61], + +#IPs of all devices which should react on a ping +TrbIP => ['192.168.0.247'], + + +#User directory +UserDirectory => '/home/hadaq/trbsoft/daqtools/users/frankfurt_test/', +# PowerSupScript => 'measure_powers.sh' # relative to user dir + diff --git a/users/frankfurt_tdc/register_configgbe.db b/users/frankfurt_tdc/register_configgbe.db new file mode 100755 index 0000000..2728b3f --- /dev/null +++ b/users/frankfurt_tdc/register_configgbe.db @@ -0,0 +1,19 @@ + + + +!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 # +################################################################################################################################################### + 0xc002 0 0xc002 0x00020001 0x00030062 0xFDE8 0x578 1 0 1 0xffffff 0x7 + + diff --git a/users/frankfurt_tdc/register_configgbe_ip.db b/users/frankfurt_tdc/register_configgbe_ip.db new file mode 100755 index 0000000..80b9d80 --- /dev/null +++ b/users/frankfurt_tdc/register_configgbe_ip.db @@ -0,0 +1,34 @@ +########################################################################################### +#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 # +######################################################################################################################################## + + 0xc002 0 0xf4c85d53 0xbc5f 0xc0a80067 0xc352 0xdead8000 0x0230 0xc0a80002 0xc350 0x0578 + + + diff --git a/users/frankfurt_tdc/startup.sh b/users/frankfurt_tdc/startup.sh new file mode 100755 index 0000000..d01d602 --- /dev/null +++ b/users/frankfurt_tdc/startup.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +echo "reset" +trbcmd reset + +echo "addresses" +trbcmd s 0x08000002e2e22b28 0x05 0xc002 +trbcmd s 0xa6000002e2e2df28 0x00 0x8200 +trbcmd s 0x51000002e2e22828 0x01 0x0201 +trbcmd s 0x72000002e2eb4628 0x02 0x0202 +trbcmd s 0xb0000002e311b928 0x03 0x0203 + + + +echo "Hubs" +trbcmd w 0xfffe 0xc5 0x50ff + +../../tools/loadregisterdb.pl register_configgbe.db +../../tools/loadregisterdb.pl register_configgbe_ip.db + + +echo "cts" +trbcmd w 0xc002 0xa154 1000000 + + +echo "tdc" +#trbcmd w 0xfe48 0xc801 0x000f0000 +#trbcmd w 0xfe48 0xc804 0x00000040 + + -- 2.43.0