From 7b3258660adae797a84d278b6f57c9fd2ac36c0b Mon Sep 17 00:00:00 2001 From: Maps Date: Thu, 13 Apr 2023 17:42:17 +0200 Subject: [PATCH] add configuration files for probestation setup (JM) --- scripts/start.sh | 6 ++++++ trbnet/addresses.sh | 7 +++++-- trbnet/register_configgbe.db | 3 +++ trbnet/register_configgbe_ip.db | 3 +++ trbnet/start.sh | 5 ++--- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 65453fb..ce1147a 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -39,6 +39,12 @@ cd ../git/daqtools/xml-db cd - echo Config CTS +#01.317 setup trbcmd w 0xc000 0xa146 0x000186a0 #1kHz pulser trbcmd loadbit 0xc000 0xa14f 0x000000f0 0x00000080 #trigger type 8 trbcmd setbit 0xc000 0xa101 0x2 #trigger on + +#Probestation setup +trbcmd w 0xc100 0xa13b 0x000186a0 #1kHz pulser +trbcmd loadbit 0xc100 0xa144 0x000000f0 0x00000080 #trigger type 8 +trbcmd setbit 0xc100 0xa101 0x2 #trigger on diff --git a/trbnet/addresses.sh b/trbnet/addresses.sh index 0ca54a0..86d5c1f 100755 --- a/trbnet/addresses.sh +++ b/trbnet/addresses.sh @@ -4,11 +4,14 @@ ### set addresses of FPGAs ### -#trbcmd s 0x6c00000a62958028 0x01 0xc000 +#01.317 setup trbcmd s 0x4f0000094093c328 0x01 0xc000 trbcmd s 0x0000719900202941 0x01 0xa000 trbcmd s 0x0000509f00202941 0x01 0xa001 -#trbcmd s 0x0000719900202941 0x01 0xa000 + +#Probestation setup +trbcmd s 0x6c00000a62958028 0x01 0xc100 +trbcmd s 0x00000c8300202941 0x01 0xa100 diff --git a/trbnet/register_configgbe.db b/trbnet/register_configgbe.db index 54aa6f9..86f6184 100644 --- a/trbnet/register_configgbe.db +++ b/trbnet/register_configgbe.db @@ -13,8 +13,10 @@ # Hub # Type # C0 # C1 # C2 # C3 # C4 # ################################################################################## 0xc000 0 0xc000 1 0 0xffffff 1 + 0xc100 0 0xc100 1 0 0xffffff 1 0xa000 0 0xa000 1 0 0xffffff 1 0xa001 0 0xa001 1 0 0xffffff 1 + 0xa100 0 0xa100 1 0 0xffffff 1 @@ -25,4 +27,5 @@ # 0xff7f 1 0x00020001 0x00030062 0x578 1 59800 200 32000 60000 0xa000 1 0x00020009 0x00030062 0x578 1 59800 200 32000 60000 0xa001 1 0x00020009 0x00030062 0x578 1 59800 200 32000 60000 + 0xa100 1 0x00020009 0x00030062 0x578 1 59800 200 32000 60000 diff --git a/trbnet/register_configgbe_ip.db b/trbnet/register_configgbe_ip.db index 2be9f0d..eab83ca 100644 --- a/trbnet/register_configgbe_ip.db +++ b/trbnet/register_configgbe_ip.db @@ -32,5 +32,8 @@ 0xa000 0 0xbacdb959 0x90e2 0xc0a80025 50302 0xc350 0xa001 0 0xbacdb959 0x90e2 0xc0a80025 50303 0xc350 + 0xc100 0 0xbacdb959 0x90e2 0xc0a80025 50310 0xc350 + 0xa100 0 0xbacdb959 0x90e2 0xc0a80025 50311 0xc350 + diff --git a/trbnet/start.sh b/trbnet/start.sh index f53f4b7..b65d0fc 100755 --- a/trbnet/start.sh +++ b/trbnet/start.sh @@ -1,5 +1,4 @@ #!/bin/bash -export DAQOPSERVER=jspc29:150 export PATH=$PATH:/local/trbsoft/trbnettools/bin/ trbcmd reset @@ -12,8 +11,8 @@ sleep 1 #./conf_cts.sh ### here you could call a cts settings dump ... #./conf_tdcs.sh -trbcmd w 0xc000 0xa13b 0x000186a0 #1 kHz pulser -trbcmd w 0xc000 0xa144 0x80 #use trigger type 8 +trbcmd w 0xc000 0xa146 0x000186a0 #1 kHz pulser +trbcmd w 0xc000 0xa14f 0x80 #use trigger type 8 trbcmd clearbit 0xfe82 0x22 0x80000000 #no ref time trbcmd w 0xfe82 0x7111 0x2ee0 # max 12000 words -- 2.43.0