]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Update xml-db with new registers for trigger generation
authorJan Michel <j.michel@gsi.de>
Fri, 3 Feb 2017 17:41:38 +0000 (18:41 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 3 Feb 2017 17:41:38 +0000 (18:41 +0100)
users/frankfurt_test/setpulser.sh [new file with mode: 0755]
xml-db/database/InputMonitorTrb3sc.xml

diff --git a/users/frankfurt_test/setpulser.sh b/users/frankfurt_test/setpulser.sh
new file mode 100755 (executable)
index 0000000..e8cf8a2
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+trbcmd w 0xfe61 0xa100 100000
+trbcmd w 0xfe61 0xa101 100000
+trbcmd w 0xfe61 0xa102 100000
+trbcmd w 0xfe61 0xa103 200000
+trbcmd w 0xfe61 0xa104 200000
+trbcmd w 0xfe61 0xa105 0x2710
+trbcmd w 0xfe61 0xa106 200000
+trbcmd w 0xfe61 0xa107 200000
+
+trbcmd w 0xfe61 0xa200 20
+trbcmd w 0xfe61 0xa201 20
+trbcmd w 0xfe61 0xa202 20
+trbcmd w 0xfe61 0xa203 20
+trbcmd w 0xfe61 0xa204 20
+trbcmd w 0xfe61 0xa205 20
+trbcmd w 0xfe61 0xa206 20
+trbcmd w 0xfe61 0xa207 20
+
+cd ../../xml-db/
+put.pl Pulser 0xfe61 EnKelFirst16 0xff
+put.pl InputMonitorTrb3sc 0xf305 MonitorEnable 0xffffffff
+
+
+
+cd -
index 8fc7dd96d049112fbb3e4fc718642bc255b29c56..391fef54a384773bdf7af2e65bf92cc5ddf215d0 100644 (file)
@@ -90,7 +90,7 @@
 
   <group name="Trigger" purpose="config" address="0000" size="256" mode="rw" continuous="false">
     <description>Registers of the trigger generation logic</description>  
-    <group name="TriggerGeneration" purpose="config" address="0000" size="4" repeat="16" continuous="false">
+    <group name="TriggerGeneration" purpose="config" address="0000" size="4" repeat="8" continuous="false">
       <register name="TriggerEnable1" address="0000"  mode="rw" >
         <description>Enables individual inputs 0 - 31 for trigger generation. If enabled, the input adds to the common or</description>
         <field  name="TriggerEnable" start="0" bits="32" format="bitmask" noflag="true" />
       <description>Inverts individual inputs for trigger generation.</description>
       <field  name="TriggerInvert" start="0"   bits="32" format="bitmask" />
     </register>     
-    <register name="TriggerCoincidence1" address="0028" mode="rw" repeat="3" >
+    <register name="SimpleCoincidence1" address="0028" mode="rw" repeat="3" >
       <description>Enable input to be used in coincidence logic. First group of signals or'ed. At least one of the inputs to each group must fire within 40 ns to get a coincidence.</description>
-      <field  name="TriggerCoincidence1" start="0"   bits="32" format="bitmask" />
+      <field  name="SimpleCoincidence1" start="0"   bits="32" format="bitmask" />
     </register>  
-    <register name="TriggerCoincidence2" address="002c" mode="rw" repeat="3" >
+    <register name="SimpleCoincidence2" address="002c" mode="rw" repeat="3" >
       <description>Enable input to be used in coincidence logic. Second group of signals or'ed. At least one of the inputs to each group must fire within 40 ns to get a coincidence.</description>
-      <field  name="TriggerCoincidence2" start="0"   bits="32" format="bitmask" />
-    </register>      
+      <field  name="SimpleCoincidence2" start="0"   bits="32" format="bitmask" />
+    </register>
     <register name="TriggerOutput" address="0030" mode="r" >
       <description>Current status of all outputs</description>
       <field  name="TriggerOutput" start="0"   bits="32" format="bitmask" />
       </field>
     </register>
     <register name="Multiplicity" address="0032" mode="r" >
-      <description>Multiplicity based on enabled inputs to output 1. Output used is 2! Coincidence interval is fixed to 4 clock cycles</description>
+      <description>Coincidence interval is fixed to 4 clock cycles</description>
       <field  name="MultLimit" start="16" bits="8" format="unsigned" noflag="true" mode="rw">
          <description>Number of inputs firing at the same time required to cause a trigger</description>
       </field>
          <description>Current number of active inputs.</description>
       </field>
     </register>    
-        
+    <register name="MultiplicityEnable" address="0033" mode="rw" >
+      <description>Select inputs for multiplicity logic</description>
+      <field  name="MultiplicityEnable" start="0"   bits="32" format="bitmask" noflag="true"/>
+    </register> 
+    
+    <register name="Coincidence" address="0040" mode="rw" repeat="16">
+      <description>Coincidence Logic</description>
+      <field  name="Enable" start="31"   bits="1" format="bitmask" />
+      <field  name="Input1" start="0"   bits="5" format="unsigned" />
+      <field  name="Input2" start="8"   bits="5" format="unsigned" />
+    </register>       
+    
+    <register name="OutputSelect" address="0034" mode="r" >
+      <description>Select the outputs for special signals (coincidence and multiplicity)</description>
+      <field  name="CoinOutput" start="16" bits="8" format="bitmask" noflag="true" mode="rw">
+         <description>Outputs to add the coincidence signal to</description>
+      </field>
+      <field  name="MultOutput" start="8" bits="8" format="bitmask" noflag="true" mode="rw">
+         <description>Outputs to add the multiplicity signal to</description>
+      </field>
+      <field  name="SimpleCoinOutput" start="8" bits="8" format="bitmask" noflag="true" mode="rw">
+         <description>Outputs to add the simple coincidence signal to</description>
+      </field>
+    </register>          
    </group>  
   
 </TrbNetEntity>