]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added Readout registers
authorJan Michel <j.michel@gsi.de>
Tue, 29 Oct 2013 17:02:21 +0000 (18:02 +0100)
committerJan Michel <j.michel@gsi.de>
Tue, 29 Oct 2013 17:02:26 +0000 (18:02 +0100)
users/frankfurt_test/startup.sh
web/htdocs/index.html
web/htdocs/network/trbnet.pl
xml-db/database/Readout.xml [new file with mode: 0644]
xml-db/database/TrgRdo.xml [deleted file]

index af812365bd50d30d2e7e1edff5e542ef24e7cbf9..aff2e1afa48199ce2e8eefdc37824f1710b80fa7 100755 (executable)
@@ -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
 
 
index 6f668d6f8c8e1048296da8967b1efa6cebbd8359..44c7b872b7e08ffbc2fd38b42427326c34760ae5 100755 (executable)
@@ -39,6 +39,7 @@ The main documentation of the network can be found in these two documents:
 <ul>
 <li><a href="cts.htm">CTS Control</a>
 <li><a href="network/trbnet.pl">TrbNet status</a>
+<li><a href="network/hub.pl">Network Hubs</a>
 <li><a href="network/gbe.htm">GbE status</a>
 <li><a href="network/map.htm">Network Map</a>
 </ul>
index cc95c1b226b14cbeaf6eca062c624db46c20c040..184b56d835c1e68fba58fd27dd5a61875645e3fe 100755 (executable)
@@ -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 (file)
index 0000000..0e6f4d9
--- /dev/null
@@ -0,0 +1,105 @@
+<?xml version="1.0"  encoding="utf-8" ?>
+<TrbNetEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:noNamespaceSchemaLocation="../schema/TrbNetEntity.xsd"
+              name="Readout"
+              address="7000"
+              >
+  <description>Register of the trigger and read-out handler in full_endpoint (on front-ends only)</description>
+
+  <group name="Status" address="0000" mode="r" continuous="false">
+    <register name="DataBufferStatus" address="0100" repeat="4" purpose="status">
+      <description>Status of the event data buffers</description>
+      <field name="DataFifoLevel" start="0" bits="16" format="unsigned" >
+        <description>Fill level of the data Fifo in 32 Bit words</description>
+      </field>
+      <field name="DataFifoEmpty" start="16" bits="1" format="boolean" invertflag="true">
+        <description>The data buffer is empty</description>
+      </field>
+      <field name="DataFifoAlmostFull" start="17" bits="1" format="boolean"  invertflag="true">
+        <description>The data buffer is almost full - no new events can be accepted</description>
+      </field>
+      <field name="DataFifoFull" start="18" bits="1" format="boolean" errorflag="true">
+        <description>The data buffer is completly full. This must not happen.</description>
+      </field>
+      <field name="DataFifoWrite" start="19" bits="1" format="boolean" invertflag="true">
+        <description>Data buffer write strobe.</description>
+      </field>
+      <field name="DataHandlerState" start="20" bits="3" format="enum">
+        <description>State machine of the data handler</description>
+        <enumItem value="1">Idle</enumItem>
+        <enumItem value="2">Data writing</enumItem>
+        <enumItem value="4">Wait for release</enumItem>
+      </field>       
+      <field name="LengthFifoEmpty" start="24" bits="1" format="boolean" invertflag="true">
+        <description>The event header buffer is empty</description>
+      </field>
+      <field name="LengthFifoAlmostFull" start="25" bits="1" format="boolean"  invertflag="true">
+        <description>The event header buffer is almost full - no new events can be accepted</description>
+      </field>
+      <field name="LengthFifoFull" start="26" bits="1" format="boolean" errorflag="true">
+        <description>The event header buffer is completly full. This must not happen.</description>
+      </field>
+      <field name="LengthFifoWrite" start="27" bits="1" format="boolean" invertflag="true">
+        <description>Event header buffer write strobe.</description>
+      </field>
+    </register>
+
+    <register name="Lvl1BufferStatus" address="0110"  purpose="status">
+      <description>Status of the event header buffers</description>
+      <field name="Lvl1FifoLevel" start="0" bits="16" format="unsigned" >
+        <description>Fill level of the Lvl1 Fifo in 32 Bit words</description>
+      </field>
+      <field name="Lvl1FifoEmpty" start="16" bits="1" format="boolean" invertflag="true">
+        <description>The Lvl1 buffer is empty</description>
+      </field>
+      <field name="Lvl1FifoAlmostFull" start="17" bits="1" format="boolean"  invertflag="true">
+        <description>The Lvl1 buffer is almost full - no new events can be accepted</description>
+      </field>
+      <field name="Lvl1FifoFull" start="18" bits="1" format="boolean" errorflag="true">
+        <description>The Lvl1 buffer is completly full. This must not happen.</description>
+      </field>
+      <field name="Lvl1FifoWrite" start="19" bits="1" format="boolean" invertflag="true">
+        <description>Lvl1 buffer write strobe.</description>
+      </field>
+      <field name="Lvl1HandlerState" start="20" bits="3" format="enum">
+        <description>State machine of the Lvl1 handler</description>
+        <enumItem value="1">Idle</enumItem>
+        <enumItem value="2">Data writing</enumItem>
+        <enumItem value="4">Wait for release</enumItem>
+      </field>       
+    </register>    
+
+    <register name="Lvl1ReleaseStatus" address="0200"  purpose="status">
+      <description>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.</description>
+      <field name="Lvl1ReleaseStatus" start="0" bits="6" format="bitmask" >
+      </field>
+    </register>
+    
+    
+    <register name="IPUHandlerStatus" address="0202" purpose="status">
+      <description>IPU handler status register</description>
+      <field name="IPUHandlerStatusState" start="0" bits="4" format="enum"  invertflag="true">
+        <description>FSM state bits</description>
+        <enumItem value="0">IDLE</enumItem>
+        <enumItem value="1">WaitForLength</enumItem>
+        <enumItem value="2">GotLength</enumItem>
+        <enumItem value="3">SendDHDR</enumItem>
+        <enumItem value="4">ReadData</enumItem>
+        <enumItem value="5">EndReadout</enumItem>
+      </field>
+      <field name="EventNotFound" start="12" bits="1" format="boolean" errorflag="true">
+        <description>Error Flag - the event was not found</description>
+      </field>
+      <field name="EventMissingData" start="13" bits="1" format="boolean" errorflag="true">
+        <description>Error Flag - the event has some missing data</description>
+      </field>
+      <field name="ErrorSynchornization" start="14" bits="1" format="boolean" errorflag="true">
+        <description>Error Flag - the syncronization of buffers is not correct</description>
+      </field>
+      <field name="ErrorNotConfigured" start="15" bits="1" format="boolean" errorflag="true">
+        <description>Error Flag - the FEE is not configured to comply with read-out requests</description>
+      </field>
+    </register>
+  </group>
+
+</TrbNetEntity>
diff --git a/xml-db/database/TrgRdo.xml b/xml-db/database/TrgRdo.xml
deleted file mode 100644 (file)
index 4285be0..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0"  encoding="utf-8" ?>
-<TrbNetEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-              xsi:noNamespaceSchemaLocation="../schema/TrbNetEntity.xsd"
-              name="TrgRdo"
-              address="7000"
-              >
-  <description>Register of the trigger and read-out handler in full_endpoint (on front-ends only)</description>
-
-
-  <register name="IPUHandlerStatus" address="0202" purpose="status">
-    <description>IPU handler status register</description>
-    <field name="IPUHandlerStatusState" start="0" bits="4" format="enum">
-      <description>FSM state bits</description>
-      <enumItem value="0">IDLE</enumItem>
-      <enumItem value="1">WaitForLength</enumItem>
-      <enumItem value="2">GotLength</enumItem>
-      <enumItem value="3">SendDHDR</enumItem>
-      <enumItem value="4">ReadData</enumItem>
-      <enumItem value="5">EndReadout</enumItem>
-    </field>
-  </register>
-
-</TrbNetEntity>