URL
https://opencores.org/ocsvn/socgen/socgen/trunk
Subversion Repositories socgen
[/] [socgen/] [trunk/] [tools/] [ip-xact/] [1685.1/] [generator.xsd] - Rev 135
Compare with Previous | Blame | View Log
<?xml version="1.0" encoding="UTF-8"?>
<!--
// Description : generator.xsd
// Author: The SPIRIT Consortium Schema Working Group
//
// Revision: $Revision: 1540 $
// Date: $Date: 2010-02-28 18:26:46 -0600 (Sun, 28 Feb 2010) $
//
// Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010 The SPIRIT Consortium.
//
// This XML file is believed to be a consistent XML Schema expression for
// creating and validating XML documents based on the IEEE Std 1685-2009
// Standard for IP-XACT, Standard Structure for Packaging, Integrating
// and Re-using IP within Tool-flows. This is a file in the format
// specified by the World Wide Web Consortium (W3C) as XML Schema
// definition language.
//
// The purpose of this schema is to allow the creation and validation of
// XML documents conforming to the IEEE Std 1685-2009 Standard for
// IP-XACT, Standard Structure for Packaging, Integrating and Re-using IP
// within Tool-flows.
//
// USE AT YOUR OWN RISK.
//
// This source file is provided on an AS IS basis. The SPIRIT
// Consortium disclaims any warranty express or implied including
// any warranty of merchantability and fitness for use for a
// particular purpose.
//
// The user of the source file shall indemnify and hold The SPIRIT
// Consortium and its members harmless from any damages or liability.
//
// This file may be copied, and distributed, WITHOUT
// modifications; this notice must be included on any copy.
//
// This schema shall not be modified, adapted, altered, sublicensed, nor
// any derivative works shall be created based upon the schema. The
// intended and allowed uses of the schema include:
//
// o Creating and validating XML documents that conform to the schema
//
// o Building software programs and systems based on the schema
//
// o Distributing verbatim copy of the schema as long as the full text
// of this license is included in all copies of the schema.
// Specifically, a tool may include full copies of the schema, and these
// copies may be distributed by the tool provider directly. A link or
// URL to the original of the schema is inherent in the schema URI.
//
// o Documents which are validated against this schema may also
// reference additional schema. These additional schemas may provide for
// validation of elements and attributes at the extension points
// explicitly and implicitly included in the IEEE 1685-2009 standard.
//
// o No right to create new schemas derived from parts of this base
// schema is granted pursuant to this License.
//
// Users are requested to provide feedback to The SPIRIT Consortium
// using either mailto:feedback@lists.spiritconsortium.org or the forms at
// http://www.spiritconsortium.org/about/contact_us/
-->
<xs:schema xmlns:spirit="http://www.spiritconsortium.org/XMLSchema/SPIRIT/1685-2009" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.spiritconsortium.org/XMLSchema/SPIRIT/1685-2009" elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:include schemaLocation="file.xsd"/>
<xs:include schemaLocation="identifier.xsd"/>
<xs:include schemaLocation="commonStructures.xsd"/>
<xs:element name="generatorChain">
<xs:complexType>
<xs:sequence>
<xs:group ref="spirit:versionedIdentifier"/>
<xs:choice maxOccurs="unbounded">
<xs:element name="generatorChainSelector">
<xs:annotation>
<xs:documentation>Select other generator chain files for inclusion into this chain. The boolean attribute "unique" (default false) specifies that only a single generator is valid in this context. If more that one generator is selected based on the selection criteria, DE will prompt the user to resolve to a single generator.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="spirit:groupSelector"/>
<xs:element name="generatorChainRef" type="spirit:libraryRefType">
<xs:annotation>
<xs:documentation>Select another generator chain using the unique identifier of this generator chain.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:attribute name="unique" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>Specifies that only a single generator is valid in this context. If more that one generator is selcted based on the selection criteria, DE will prompt the user to resolve to a single generator.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="componentGeneratorSelector" type="spirit:generatorSelectorType">
<xs:annotation>
<xs:documentation>Selects generators declared in components of the current design for inclusion into this generator chain.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="spirit:generator"/>
</xs:choice>
<xs:element name="chainGroup" type="xs:Name" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Identifies this generator chain as belonging to the named group. This is used by other generator chains to select this chain for programmatic inclusion.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="spirit:displayName" minOccurs="0"/>
<xs:element ref="spirit:description" minOccurs="0"/>
<xs:element ref="spirit:choices" minOccurs="0"/>
<xs:element ref="spirit:vendorExtensions" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="hidden" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>If this attribute is true then the generator should not be presented to the user, it may be part of a chain and has no useful meaning when invoked standalone.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="generator">
<xs:annotation>
<xs:documentation>Specifies a set of generators.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="spirit:generatorType"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="componentGenerator">
<xs:annotation>
<xs:documentation>Specifies a set of component generators. The scope attribute applies to component generators and specifies whether the generator should be run for each instance of the entity (or module) or just once for all instances of the entity.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="spirit:instanceGeneratorType"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="abstractorGenerator" type="spirit:instanceGeneratorType">
<xs:annotation>
<xs:documentation>Specifies a set of abstractor generators. The scope attribute applies to abstractor generators and specifies whether the generator should be run for each instance of the entity (or module) or just once for all instances of the entity.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="groupSelector">
<xs:annotation>
<xs:documentation>Specifies a set of group names used to select subsequent generators. The attribute "multipleGroupOperator" specifies the OR or AND selection operator if there is more than one group name (default=OR).</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:Name" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies a generator group name or a generator chain group name to be selected for inclusion in the generator chain.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="multipleGroupSelectionOperator" use="optional" default="or">
<xs:annotation>
<xs:documentation>Specifies the OR or AND selection operator if there is more than one group name.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:Name">
<xs:enumeration value="and"/>
<xs:enumeration value="or"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="phase">
<xs:annotation>
<xs:documentation>This is an non-negative floating point number that is used to sequence when a generator is run. The generators are run in order starting with zero. There may be multiple generators with the same phase number. In this case, the order should not matter with respect to other generators at the same phase. If no phase number is given the generator will be considered in the "last" phase and these generators will be run in the order in which they are encountered while processing generator elements.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:float"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:complexType name="instanceGeneratorType">
<xs:complexContent>
<xs:extension base="spirit:generatorType">
<xs:sequence>
<xs:element name="group" type="xs:Name" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>An identifier to specify the generator group. This is used by generator chains for selecting which generators to run.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="scope" use="optional" default="instance">
<xs:annotation>
<xs:documentation>The scope attribute applies to component generators and specifies whether the generator should be run for each instance of the entity (or module) or just once for all instances of the entity.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="instance"/>
<xs:enumeration value="entity"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="generatorSelectorType">
<xs:sequence>
<xs:element ref="spirit:groupSelector"/>
</xs:sequence>
</xs:complexType>
<xs:element name="componentGenerators">
<xs:annotation>
<xs:documentation>List of component generators.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="spirit:componentGenerator" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="generatorType">
<xs:annotation>
<xs:documentation>Types of generators</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="spirit:nameGroup"/>
<xs:element ref="spirit:phase" minOccurs="0"/>
<xs:element ref="spirit:parameters" minOccurs="0"/>
<xs:element name="generatorExe" type="spirit:spiritURI">
<xs:annotation>
<xs:documentation>The pathname to the executable file that implements the generator</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="spirit:vendorExtensions" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="hidden" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>If this attribute is true then the generator should not be presented to the user, it may be part of a chain and has no useful meaning when invoked standalone.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:schema>