OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [ip-xact/] [1685-2014/] [generator.xsd] - Rev 135

Compare with Previous | Blame | View Log

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2007 rel. 3 (http://www.altova.com) by Erwin de Kock (Philips Electronics Nederland BV) -->
<!--
// Description : generator.xsd
// Author: The Accellera System Initiative IP-XACT Schema Working Group
// 
// Revision:    $Revision: 1537 $
// Date:        $Date: 2010-02-26 13:28:40 -0800 (Fri, 26 Feb 2010) $
// 
// Copyright (c) 2005 - 2012 Accellera Systems Initiative Inc. 
// All rights reserved.
// 
// This source file is provided on an AS IS basis. The Accellera 
// Systems Initiative 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 Accellera 
// Systems Initiative 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-???? 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 Accellera Systems 
// Initiative IP-XACT Schema Working Group using: 
// mailto:ip-xact-swg@lists.accellera.org
 -->
<xs:schema xmlns:ipxact="http://www.accellera.org/XMLSchema/IPXACT/1685-2014" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.accellera.org/XMLSchema/IPXACT/1685-2014" elementFormDefault="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="ipxact: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="ipxact:groupSelector"/>
                                                                <xs:element name="generatorChainRef" type="ipxact:configurableLibraryRefType">
                                                                        <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:attributeGroup ref="ipxact:id.att"/>
                                                </xs:complexType>
                                        </xs:element>
                                        <xs:element name="componentGeneratorSelector" type="ipxact: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="ipxact:generator"/>
                                </xs:choice>
                                <xs:element name="chainGroup" 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:complexType>
                                                <xs:simpleContent>
                                                        <xs:extension base="xs:Name">
                                                                <xs:attributeGroup ref="ipxact:id.att"/>
                                                        </xs:extension>
                                                </xs:simpleContent>
                                        </xs:complexType>
                                </xs:element>
                                <xs:element ref="ipxact:displayName" minOccurs="0"/>
                                <xs:element ref="ipxact:description" minOccurs="0"/>
                                <xs:element ref="ipxact:choices" minOccurs="0"/>
                                <xs:element ref="ipxact:parameters" minOccurs="0"/>
                                <xs:element ref="ipxact:assertions" minOccurs="0"/>
                                <xs:element ref="ipxact: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:attributeGroup ref="ipxact:id.att"/>
                </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="ipxact:generatorType"/>
                        </xs:complexContent>
                </xs:complexType>
        </xs:element>
        <xs:element name="componentGenerator" type="ipxact:instanceGeneratorType">
                <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:element>
        <xs:element name="abstractorGenerator" type="ipxact: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" 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:complexType>
                                                <xs:simpleContent>
                                                        <xs:extension base="xs:Name">
                                                                <xs:attributeGroup ref="ipxact:id.att"/>
                                                        </xs:extension>
                                                </xs:simpleContent>
                                        </xs:complexType>
                                </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:attributeGroup ref="ipxact:id.att"/>
                </xs:complexType>
        </xs:element>
        <xs:element name="phase" type="ipxact:realExpression">
                <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:element>
        <xs:complexType name="instanceGeneratorType">
                <xs:complexContent>
                        <xs:extension base="ipxact:generatorType">
                                <xs:sequence>
                                        <xs:element name="group" 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:complexType>
                                                        <xs:simpleContent>
                                                                <xs:extension base="xs:Name">
                                                                        <xs:attributeGroup ref="ipxact:id.att"/>
                                                                </xs:extension>
                                                        </xs:simpleContent>
                                                </xs:complexType>
                                        </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="ipxact:groupSelector"/>
                </xs:sequence>
                <xs:attributeGroup ref="ipxact:id.att"/>
        </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="ipxact:componentGenerator" maxOccurs="unbounded"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        <xs:element name="abstractorGenerators">
                <xs:annotation>
                        <xs:documentation>List of abstractor generators.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="ipxact:abstractorGenerator" maxOccurs="unbounded"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        <xs:simpleType name="apiType">
                <xs:restriction base="xs:token">
                        <xs:enumeration value="TGI_2009"/>
                        <xs:enumeration value="TGI_2014_BASE"/>
                        <xs:enumeration value="TGI_2014_EXTENDED"/>
                        <xs:enumeration value="none"/>
                </xs:restriction>
        </xs:simpleType>
        <xs:simpleType name="transportMethodType">
                <xs:restriction base="xs:token">
                        <xs:enumeration value="file"/>
                </xs:restriction>
        </xs:simpleType>
        <xs:complexType name="generatorType">
                <xs:annotation>
                        <xs:documentation>Types of generators</xs:documentation>
                </xs:annotation>
                <xs:sequence>
                        <xs:group ref="ipxact:nameGroup"/>
                        <xs:element ref="ipxact:phase" minOccurs="0"/>
                        <xs:element ref="ipxact:parameters" minOccurs="0"/>
                        <xs:element name="apiType" minOccurs="0">
                                <xs:annotation>
                                        <xs:documentation>Indicates the type of API used by the generator. Valid value are TGI_2009, TGI_2014_BASE, TGI_2014_EXTENDED, and none. If this element is not present, TGI_2014_BASE is assumed. The type TGI_2009 indicates a generator using the 1685-2009 version of the TGI API. This is not part of the 1685-2014 version of the standard and may not be supported by Design Environments.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                        <xs:simpleContent>
                                                <xs:extension base="ipxact:apiType">
                                                        <xs:attributeGroup ref="ipxact:id.att"/>
                                                </xs:extension>
                                        </xs:simpleContent>
                                </xs:complexType>
                        </xs:element>
                        <xs:element name="transportMethods" minOccurs="0">
                                <xs:complexType>
                                        <xs:sequence>
                                                <xs:element name="transportMethod">
                                                        <xs:annotation>
                                                                <xs:documentation>Defines a SOAP transport protocol other than HTTP which is supported by this generator. The only other currently supported protocol is 'file'.</xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                                <xs:simpleContent>
                                                                        <xs:extension base="ipxact:transportMethodType">
                                                                                <xs:attributeGroup ref="ipxact:id.att"/>
                                                                        </xs:extension>
                                                                </xs:simpleContent>
                                                        </xs:complexType>
                                                </xs:element>
                                        </xs:sequence>
                                        <xs:attributeGroup ref="ipxact:id.att"/>
                                </xs:complexType>
                        </xs:element>
                        <xs:element name="generatorExe" type="ipxact:ipxactURI">
                                <xs:annotation>
                                        <xs:documentation>The pathname to the executable file that implements the generator</xs:documentation>
                                </xs:annotation>
                        </xs:element>
                        <xs:element ref="ipxact: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:attributeGroup ref="ipxact:id.att"/>
        </xs:complexType>
</xs:schema>

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.