1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
5 <!-- déclaration des groupes d'attributs -->
7 <xs:attributeGroup name="group_itemAttrGroup">
8 <xs:attribute ref="id"/>
9 <xs:attribute ref="name"/>
10 <xs:attribute ref="upper_group"/>
11 <xs:attribute ref="upper_item"/>
12 <xs:attribute ref="position"/>
13 <xs:attribute ref="dimension"/>
16 <xs:attributeGroup name="group_ifaceAttrGroup">
17 <xs:attribute ref="id"/>
18 <xs:attribute ref="name"/>
19 <xs:attribute ref="purpose"/>
20 <xs:attribute ref="direction"/>
21 <xs:attribute ref="orientation"/>
22 <xs:attribute ref="position"/>
25 <xs:attributeGroup name="source_itemsAttrGroup">
26 <xs:attribute ref="count" />
29 <xs:attributeGroup name="block_itemsAttrGroup">
30 <xs:attribute ref="functional_count" />
31 <xs:attribute ref="group_count" />
34 <xs:attributeGroup name="source_itemAttrGroup">
35 <xs:attribute ref="id" />
36 <xs:attribute ref="ref_xml" />
37 <xs:attribute ref="ref_md5" />
38 <xs:attribute ref="name" />
39 <xs:attribute ref="position" />
40 <xs:attribute ref="dimension" />
43 <xs:attributeGroup name="bi_functionalAttrGroup">
44 <xs:attribute ref="id" />
45 <xs:attribute ref="ref_xml" />
46 <xs:attribute ref="ref_md5" />
47 <xs:attribute ref="name" />
48 <xs:attribute ref="position" />
49 <xs:attribute ref="dimension" />
52 <xs:attributeGroup name="source_parameterAttrGroup">
53 <xs:attribute ref="name" />
54 <xs:attribute ref="value" />
55 <xs:attribute ref="context" />
56 <xs:attribute ref="type" />
59 <xs:attributeGroup name="bif_parameterAttrGroup">
60 <xs:attribute ref="name" />
61 <xs:attribute ref="value" />
62 <xs:attribute ref="context" />
63 <xs:attribute ref="type" />
66 <xs:attributeGroup name="source_ifaceAttrGroup">
67 <xs:attribute ref="id" />
68 <xs:attribute ref="name" />
69 <xs:attribute ref="ref_name" />
70 <xs:attribute ref="orientation" />
71 <xs:attribute ref="position" />
74 <xs:attributeGroup name="bif_ifaceAttrGroup">
75 <xs:attribute ref="id" />
76 <xs:attribute ref="name" />
77 <xs:attribute ref="ref_name" />
78 <xs:attribute ref="orientation" />
79 <xs:attribute ref="position" />
82 <xs:attributeGroup name="bi_groupAttrGroup">
83 <xs:attribute ref="id" />
84 <xs:attribute ref="inside_group" />
85 <xs:attribute ref="position" />
86 <xs:attribute ref="dimension" />
89 <xs:attributeGroup name="big_ifaceAttrGroup">
90 <xs:attribute ref="id" />
91 <xs:attribute ref="ref_name" />
92 <xs:attribute ref="orientation" />
93 <xs:attribute ref="position" />
96 <xs:attributeGroup name="connectionAttrGroup">
97 <xs:attribute ref="from" />
98 <xs:attribute ref="to" />
102 <!-- déclaration des attributs -->
104 <xs:attribute name="count">
106 <xs:restriction base="xs:nonNegativeInteger">
107 <xs:minInclusive value="0"/>
112 <xs:attribute name="id">
114 <xs:restriction base="xs:nonNegativeInteger">
115 <xs:minInclusive value="0"/>
120 <xs:attribute name="upper_scene">
122 <xs:restriction base="xs:integer">
123 <xs:minInclusive value="-1"/>
128 <xs:attribute name="upper_group">
130 <xs:restriction base="xs:integer">
131 <xs:minInclusive value="-1"/>
136 <xs:attribute name="upper_item">
138 <xs:restriction base="xs:integer">
139 <xs:minInclusive value="-1"/>
144 <xs:attribute name="inside_group">
146 <xs:restriction base="xs:nonNegativeInteger">
147 <xs:minInclusive value="0"/>
152 <xs:attribute name="functional_count">
154 <xs:restriction base="xs:nonNegativeInteger">
155 <xs:minInclusive value="0"/>
160 <xs:attribute name="group_count">
162 <xs:restriction base="xs:nonNegativeInteger">
163 <xs:minInclusive value="0"/>
168 <xs:attribute name="value" type="xs:string"/>
170 <xs:attribute name="from">
172 <xs:restriction base="xs:nonNegativeInteger">
173 <xs:minInclusive value="0"/>
178 <xs:attribute name="to">
180 <xs:restriction base="xs:nonNegativeInteger">
181 <xs:minInclusive value="0"/>
186 <xs:attribute name="purpose">
188 <xs:restriction base="xs:string">
189 <xs:enumeration value="data"/>
190 <xs:enumeration value="clock"/>
191 <xs:enumeration value="reset"/>
192 <xs:enumeration value="wishbone"/>
197 <xs:attribute name="direction">
199 <xs:restriction base="xs:string">
200 <xs:enumeration value="input"/>
201 <xs:enumeration value="output"/>
202 <xs:enumeration value="inout"/>
207 <xs:attribute name="orientation">
209 <xs:restriction base="xs:string">
210 <xs:enumeration value="west"/>
211 <xs:enumeration value="east"/>
212 <xs:enumeration value="north"/>
213 <xs:enumeration value="south"/>
218 <xs:attribute name="position" type="xs:string"/>
219 <xs:attribute name="dimension" type="xs:string"/>
220 <xs:attribute name="name" type="xs:string"/>
221 <xs:attribute name="ref_name" type="xs:string"/>
222 <xs:attribute name="ref_xml" type="xs:string"/>
223 <xs:attribute name="ref_md5" type="xs:string"/>
224 <xs:attribute name="context" type="xs:string"/>
225 <xs:attribute name="type" type="xs:string"/>
228 <!-- déclaration des groupes d'éléments -->
230 <xs:group name="rootElmtGroup">
232 <xs:element ref="scenes"/>
233 <xs:element ref="connections"/>
237 <xs:group name="sceneElmtGroup">
239 <xs:element ref="group_item"/>
240 <xs:element ref="source_items" minOccurs="0" maxOccurs="unbounded"/>
241 <xs:element ref="block_items"/>
245 <xs:group name="source_itemsElmtGroup">
247 <xs:element ref="source_item" minOccurs="0" maxOccurs="unbounded"/>
251 <xs:group name="block_itemsElmtGroup">
253 <xs:element ref="bi_functional" minOccurs="0" maxOccurs="unbounded"/>
254 <xs:element ref="bi_group" minOccurs="0" maxOccurs="unbounded"/>
258 <xs:group name="source_itemElmtGroup">
260 <xs:element ref="source_parameters"/>
261 <xs:element ref="source_ifaces"/>
265 <xs:group name="bi_functionalElmtGroup">
267 <xs:element ref="bif_parameters"/>
268 <xs:element ref="bif_ifaces"/>
273 <!-- déclaration des éléments -->
275 <xs:element name="scenes">
278 <xs:element ref="scene" maxOccurs="unbounded" />
280 <xs:attribute ref="count"/>
284 <xs:element name="scene">
286 <xs:group ref="sceneElmtGroup"/>
287 <xs:attribute ref="id"/>
288 <xs:attribute ref="upper_scene"/>
292 <xs:element name="group_item">
295 <xs:element ref="group_ifaces" maxOccurs="unbounded" />
297 <xs:attributeGroup ref="group_itemAttrGroup"/>
301 <xs:element name="group_ifaces">
304 <xs:element ref="group_iface" minOccurs="0" maxOccurs="unbounded"/>
306 <xs:attribute ref="count"/>
310 <xs:element name="group_iface">
312 <xs:attributeGroup ref="group_ifaceAttrGroup"/>
316 <xs:element name="source_items">
318 <xs:group ref="source_itemsElmtGroup"/>
319 <xs:attributeGroup ref="source_itemsAttrGroup"/>
323 <xs:element name="block_items">
325 <xs:group ref="block_itemsElmtGroup"/>
326 <xs:attributeGroup ref="block_itemsAttrGroup"/>
330 <xs:element name="source_item">
332 <xs:group ref="source_itemElmtGroup"/>
333 <xs:attributeGroup ref="source_itemAttrGroup"/>
337 <xs:element name="bi_functional">
339 <xs:group ref="bi_functionalElmtGroup"/>
340 <xs:attributeGroup ref="bi_functionalAttrGroup"/>
344 <xs:element name="source_parameters">
347 <xs:element ref="source_parameter" minOccurs="0" maxOccurs="unbounded" />
352 <xs:element name="source_parameter">
354 <xs:attributeGroup ref="source_parameterAttrGroup"/>
358 <xs:element name="bif_parameters">
361 <xs:element ref="bif_parameter" minOccurs="0" maxOccurs="unbounded" />
366 <xs:element name="bif_parameter">
368 <xs:attributeGroup ref="bif_parameterAttrGroup"/>
372 <xs:element name="source_ifaces">
375 <xs:element ref="source_iface" minOccurs="0" maxOccurs="unbounded" />
377 <xs:attribute ref="count"/>
381 <xs:element name="source_iface">
383 <xs:attributeGroup ref="source_ifaceAttrGroup"/>
387 <xs:element name="bif_ifaces">
390 <xs:element ref="bif_iface" minOccurs="0" maxOccurs="unbounded" />
392 <xs:attribute ref="count"/>
396 <xs:element name="bif_iface">
398 <xs:attributeGroup ref="bif_ifaceAttrGroup"/>
402 <xs:element name="bi_group">
405 <xs:element ref="big_ifaces"/>
407 <xs:attributeGroup ref="bi_groupAttrGroup"/>
411 <xs:element name="big_ifaces">
414 <xs:element ref="big_iface" minOccurs="0" maxOccurs="unbounded" />
416 <xs:attribute ref="count" />
420 <xs:element name="big_iface">
422 <xs:attributeGroup ref="big_ifaceAttrGroup" />
426 <xs:element name="connections">
429 <xs:element ref="connection" minOccurs="0" maxOccurs="unbounded"/>
431 <xs:attribute ref="count" />
435 <xs:element name="connection">
437 <xs:attributeGroup ref="connectionAttrGroup"/>
441 <!-- racine du document -->
443 <xs:element name="blast_project">
445 <xs:group ref="rootElmtGroup"/>