]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added latest xml test files
authorJan Michel <j.michel@gsi.de>
Thu, 27 Jun 2013 12:36:28 +0000 (14:36 +0200)
committerJan Michel <j.michel@gsi.de>
Thu, 27 Jun 2013 12:36:28 +0000 (14:36 +0200)
.gitignore
xml-db/database/TrbNetspec.xsd [new file with mode: 0644]
xml-db/database/jtag_registers_SPEC.xml [new file with mode: 0644]

index 6a18f30dc6b65b8fa248920627582a6f4f44d4c1..3569722c475564a2dc4e9d5259249c95c8237eb9 100644 (file)
@@ -2,3 +2,4 @@ web/htdocs/monitor-*
 web/htdocs/monitor
 *~
 *log
+.kateproject.d
diff --git a/xml-db/database/TrbNetspec.xsd b/xml-db/database/TrbNetspec.xsd
new file mode 100644 (file)
index 0000000..0c2b23d
--- /dev/null
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+
+<xs:simpleType name="addresstype">
+  <xs:restriction base="xs:string">
+    <xs:pattern value="[0-9a-fA-F]{4}"/>
+  </xs:restriction>
+</xs:simpleType> 
+
+<xs:simpleType name="valuetype">
+  <xs:restriction base="xs:string">
+    <xs:pattern value="[0-9a-fA-F]+"/>
+  </xs:restriction>
+</xs:simpleType> 
+
+
+
+<xs:element name="description" type="xs:string" />
+<xs:attribute name="name"         type="xs:string" />
+<xs:attribute name="address"      type="addresstype" />
+<xs:attribute name="offset"       type="addresstype" />
+<xs:attribute name="mode"         type="xs:string"  />
+<xs:attribute name="type"         type="xs:string" />
+<xs:attribute name="function"     type="xs:string" />
+<xs:attribute name="start"        type="xs:positiveInteger" />
+<xs:attribute name="size"         type="xs:positiveInteger" />
+<xs:attribute name="defaultValue" type="valuetype" />
+<xs:attribute name="value"        type="valuetype" />
+<xs:attribute name="format"       type="xs:string" />
+<xs:attribute name="continuous"   type="xs:boolean" />
+
+
+<xs:element name="TrbNet">
+  <xs:complexType>
+    <xs:choice maxOccurs="unbounded">
+      <xs:element   ref="description" maxOccurs="1" />
+      <xs:element   ref="group"       maxOccurs="unbounded" />
+      <xs:element   ref="register"    maxOccurs="unbounded" />
+      <xs:element   ref="memory"      maxOccurs="unbounded" />
+      <xs:element   ref="fifo"        maxOccurs="unbounded" />
+    </xs:choice>
+    <xs:attribute ref="type" />
+    <xs:attribute ref="offset" />
+  </xs:complexType>
+</xs:element>
+
+<xs:element name="group">
+  <xs:complexType>
+    <xs:choice maxOccurs="unbounded">
+      <xs:element   ref="group"       maxOccurs="unbounded" />
+      <xs:element   ref="description" maxOccurs="1" />
+      <xs:element   ref="register"    maxOccurs="unbounded" />
+      <xs:element   ref="memory"      maxOccurs="unbounded" />
+      <xs:element   ref="fifo"        maxOccurs="unbounded" />
+    </xs:choice>
+    <xs:attribute ref="name" use="required" />
+    <xs:attribute ref="address" />
+    <xs:attribute ref="size" />
+    <xs:attribute ref="type" />
+    <xs:attribute ref="continuous" />
+    <xs:attribute ref="defaultValue" />
+    <xs:attribute ref="format" />
+  </xs:complexType>
+</xs:element> 
+
+
+<xs:element name="field">
+  <xs:complexType>
+    <xs:all>
+      <xs:element   ref="description" maxOccurs="1" />
+    </xs:all>
+    <xs:attribute ref="name" />
+    <xs:attribute ref="start" />
+    <xs:attribute ref="size" />
+    <xs:attribute ref="type" />
+    <xs:attribute ref="defaultValue" />
+    <xs:attribute ref="format" />
+  </xs:complexType>
+</xs:element> 
+
+
+<xs:element name="register">
+  <xs:complexType>
+    <xs:choice maxOccurs="unbounded">
+      <xs:element   ref="field" />
+      <xs:element   ref="description" maxOccurs="1" />
+    </xs:choice>
+    <xs:attribute ref="name" />
+    <xs:attribute ref="address" />
+    <xs:attribute ref="mode" />
+    <xs:attribute ref="function" />
+  </xs:complexType>
+</xs:element> 
+
+<xs:element name="memory">
+  <xs:complexType>
+    <xs:choice maxOccurs="unbounded">
+      <xs:element   ref="field" />
+      <xs:element   ref="description" maxOccurs="1" />
+    </xs:choice>
+    <xs:attribute ref="name" />
+    <xs:attribute ref="address" />
+    <xs:attribute ref="size" />
+    <xs:attribute ref="mode" />
+    <xs:attribute ref="function" />
+  </xs:complexType>
+</xs:element> 
+
+<xs:element name="fifo">
+  <xs:complexType>
+    <xs:choice maxOccurs="unbounded">
+      <xs:element   ref="field" />
+      <xs:element   ref="description" maxOccurs="1" />
+    </xs:choice>
+    <xs:attribute ref="name" />
+    <xs:attribute ref="address" />
+    <xs:attribute ref="mode" />
+    <xs:attribute ref="function" />
+  </xs:complexType>
+</xs:element> 
+
+
+</xs:schema> 
+  
diff --git a/xml-db/database/jtag_registers_SPEC.xml b/xml-db/database/jtag_registers_SPEC.xml
new file mode 100644 (file)
index 0000000..1b5822c
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<TrbNet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:noNamespaceSchemaLocation="spec.xsd"
+  type="JtagController"
+  offset="1000"
+  >
+
+<register
+  name="TriggerAllchainsInitSeq"
+  address="0003"
+  mode="w"
+  function ="configuration"
+  >
+  <description>
+Start initialization sequence for all connected sensor chains    
+  </description>
+<field
+  type="configuration"
+  name="NU"
+  start="16"
+  size="4"
+  defaultValue="0" >
+  <description>Reserved, Not Used </description>
+</field>
+</register>
+
+</TrbNet>
\ No newline at end of file