OpenFPGA/libs/libopenfpgacapnproto/gen/unique_blocks.xsd

39 lines
1.3 KiB
XML
Raw Normal View History

2024-10-07 22:21:04 -05:00
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
2024-10-08 03:26:35 -05:00
2024-10-07 22:21:04 -05:00
<!-- Enumeration for BlockType -->
2024-10-09 04:21:49 -05:00
<xs:simpleType name="type">
2024-10-07 22:21:04 -05:00
<xs:restriction base="xs:string">
<xs:enumeration value="cbx"/>
<xs:enumeration value="cby"/>
<xs:enumeration value="sb"/>
</xs:restriction>
</xs:simpleType>
2024-10-08 03:26:35 -05:00
<!-- InstanceInfo Structure (using attributes for x and y) -->
2024-10-09 04:21:49 -05:00
<xs:complexType name="instance">
<xs:attribute name="x" type="xs:unsignedInt" use="required"/>
<xs:attribute name="y" type="xs:unsignedInt" use="required"/>
2024-10-07 22:21:04 -05:00
</xs:complexType>
2024-10-09 04:21:49 -05:00
<!-- BlockInfo Structure (using attributes for type, x, and y, and instances as children) -->
<xs:complexType name="block">
<xs:sequence>
<xs:element name="instance" type="instance" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="type" type="type" use="required" />
<xs:attribute name="x" type="xs:unsignedInt" use="required" />
<xs:attribute name="y" type="xs:unsignedInt" use="required" />
</xs:complexType>
2024-10-07 22:21:04 -05:00
2024-10-09 04:21:49 -05:00
<!-- Root element definition -->
2024-10-08 03:26:35 -05:00
<xs:element name="unique_blocks">
<xs:complexType>
<xs:sequence>
2024-10-09 04:21:49 -05:00
<xs:element name="block" type="block" maxOccurs="unbounded"/>
2024-10-08 03:26:35 -05:00
</xs:sequence>
</xs:complexType>
</xs:element>
2024-10-07 22:21:04 -05:00
</xs:schema>