From ce7d7fac396ffa06c73d47295b530f6bd3c90e4e Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 29 Oct 2013 18:02:21 +0100 Subject: [PATCH] added Readout registers --- users/frankfurt_test/startup.sh | 3 + web/htdocs/index.html | 1 + web/htdocs/network/trbnet.pl | 6 ++ xml-db/database/Readout.xml | 105 ++++++++++++++++++++++++++++++++ xml-db/database/TrgRdo.xml | 23 ------- 5 files changed, 115 insertions(+), 23 deletions(-) create mode 100644 xml-db/database/Readout.xml delete mode 100644 xml-db/database/TrgRdo.xml diff --git a/users/frankfurt_test/startup.sh b/users/frankfurt_test/startup.sh index af81236..aff2e1a 100755 --- a/users/frankfurt_test/startup.sh +++ b/users/frankfurt_test/startup.sh @@ -19,6 +19,8 @@ trbcmd s 0xef000003133e3228 0x03 0xf103 echo "Hubs" trbcmd w 0xfffe 0xc5 0x50ff +trbcmd w 0xfc00 0xc5 0x50ff + trbcmd w 0x8000 0xc0 0x0fef trbcmd w 0x8000 0xc1 0x0fef @@ -35,5 +37,6 @@ trbcmd w 0xfe48 0xc801 0x000f0000 trbcmd w 0x8000 0xc801 0x000f0000 trbcmd w 0xfe48 0xc804 0x00000040 +trbcmd w 0x8000 0xc804 0x00000010 diff --git a/web/htdocs/index.html b/web/htdocs/index.html index 6f668d6..44c7b87 100755 --- a/web/htdocs/index.html +++ b/web/htdocs/index.html @@ -39,6 +39,7 @@ The main documentation of the network can be found in these two documents: diff --git a/web/htdocs/network/trbnet.pl b/web/htdocs/network/trbnet.pl index cc95c1b..184b56d 100755 --- a/web/htdocs/network/trbnet.pl +++ b/web/htdocs/network/trbnet.pl @@ -26,6 +26,12 @@ $setup[1]->{cmd} = "TrbNet-0xffff-BoardInformation"; $setup[1]->{period} = -1; $setup[1]->{address} = 1; +$setup[2]->{name} = "Readout"; +$setup[2]->{cmd} = "Readout-0xffff-Status"; +$setup[2]->{period} = -1; +$setup[2]->{address} = 1; + + xmlpage::initPage(\@setup,$page); diff --git a/xml-db/database/Readout.xml b/xml-db/database/Readout.xml new file mode 100644 index 0000000..0e6f4d9 --- /dev/null +++ b/xml-db/database/Readout.xml @@ -0,0 +1,105 @@ + + + Register of the trigger and read-out handler in full_endpoint (on front-ends only) + + + + Status of the event data buffers + + Fill level of the data Fifo in 32 Bit words + + + The data buffer is empty + + + The data buffer is almost full - no new events can be accepted + + + The data buffer is completly full. This must not happen. + + + Data buffer write strobe. + + + State machine of the data handler + Idle + Data writing + Wait for release + + + The event header buffer is empty + + + The event header buffer is almost full - no new events can be accepted + + + The event header buffer is completly full. This must not happen. + + + Event header buffer write strobe. + + + + + Status of the event header buffers + + Fill level of the Lvl1 Fifo in 32 Bit words + + + The Lvl1 buffer is empty + + + The Lvl1 buffer is almost full - no new events can be accepted + + + The Lvl1 buffer is completly full. This must not happen. + + + Lvl1 buffer write strobe. + + + State machine of the Lvl1 handler + Idle + Data writing + Wait for release + + + + + Status of the individual data handlers. Bit is set if the handler did not get a release from the data handler. Content is only valid while the handler is not idle. + + + + + + + IPU handler status register + + FSM state bits + IDLE + WaitForLength + GotLength + SendDHDR + ReadData + EndReadout + + + Error Flag - the event was not found + + + Error Flag - the event has some missing data + + + Error Flag - the syncronization of buffers is not correct + + + Error Flag - the FEE is not configured to comply with read-out requests + + + + + diff --git a/xml-db/database/TrgRdo.xml b/xml-db/database/TrgRdo.xml deleted file mode 100644 index 4285be0..0000000 --- a/xml-db/database/TrgRdo.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - Register of the trigger and read-out handler in full_endpoint (on front-ends only) - - - - IPU handler status register - - FSM state bits - IDLE - WaitForLength - GotLength - SendDHDR - ReadData - EndReadout - - - - -- 2.43.0