OpenFPGA/libs/libopenfpgacapnproto/gen/unique_blocks.xsd

45 lines
1.5 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 -->
<xs:simpleType name="BlockType">
<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
<!-- BlockInfo Structure (using attributes for type, x, and y) -->
2024-10-07 22:21:04 -05:00
<xs:complexType name="BlockInfo">
2024-10-08 03:26:35 -05:00
<xs:attribute name="type" type="BlockType"/>
<xs:attribute name="x" type="xs:unsignedInt"/>
<xs:attribute name="y" type="xs:unsignedInt"/>
2024-10-07 22:21:04 -05:00
</xs:complexType>
2024-10-08 03:26:35 -05:00
<!-- InstanceInfo Structure (using attributes for x and y) -->
2024-10-07 22:21:04 -05:00
<xs:complexType name="InstanceInfo">
2024-10-08 03:26:35 -05:00
<xs:attribute name="x" type="xs:unsignedInt"/>
<xs:attribute name="y" type="xs:unsignedInt"/>
2024-10-07 22:21:04 -05:00
</xs:complexType>
2024-10-08 04:59:20 -05:00
<!-- UniqueBlockPacked Structure (blockInfo, list of instances) -->
2024-10-07 22:21:04 -05:00
<xs:complexType name="UniqueBlockPacked">
<xs:sequence>
<xs:element name="blockInfo" type="BlockInfo"/>
2024-10-08 03:26:35 -05:00
<xs:element name="instance" type="InstanceInfo" maxOccurs="unbounded"/>
2024-10-07 22:21:04 -05:00
</xs:sequence>
</xs:complexType>
2024-10-08 03:26:35 -05:00
<!-- Root element definition combined with UniqueBlockCompactInfo structure -->
<xs:element name="unique_blocks">
<xs:complexType>
<xs:sequence>
<!-- Directly include atomInfo (previously part of UniqueBlockCompactInfo) -->
<xs:element name="atomInfo" type="UniqueBlockPacked" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
2024-10-07 22:21:04 -05:00
</xs:schema>