Main Content

Contents of Generated IP-XACT File

Overview of Generated IP-XACT File

The TLM generator automatically generates an IP-XACT file that complies with IEEE® Standard for IP-XACT 1685-2009. You can find this file in the same folder as the generated makefile.

The generated IP-XACT file contains the following:

  • Mapping information between Simulink® and the generated TLM component.

  • Metadata specific to MathWorks® and the model. This data is intended primarily for reference, but it is required when importing the file for TLM generation.

Generated Simulink Mapping

Each bus interface that uses Simulink mapping without a memory map is defined in the generated file as:

  • Inputs

  • Outputs

  • A combination of inputs and outputs

  • Parameters

You can combine inputs and outputs in a single bus interface definition, but you cannot mix parameters and I/O. These elements are defined in a <spirit:parameter> name-value pair.

This example from a generated IP-XACT file shows Simulink mapping without a memory map.

Generated Simulink Mapping in Memory Map

In each bus interface with a memory map, the Simulink mapping is expressed in the memory map, not in the bus interface.

The bus interface definition, <spirit:busInterface>, contains a <spirit:parameter> name-value pair indicating that there is a memory map in use for the interface.

The memory map interface, <spirit:memoryMap>, contains a <spirit:parameter> name-value pair with the Simulink mapping within each register:

The Simulink mapping for each register is defined in the generated file as:

  • Input

  • Outputs

  • A combination of inputs and outputs

  • Parameters

You can combine inputs and outputs in a single bus interface definition, but you cannot mix parameters and I/O.

Generated Metadata

Each component definition, <spirit:component>, contains information specific to MathWorks and the model. This information is located within a <spirit:parameter> element, specified with the <spirit:name> and <spirit:value> tags. If you plan to import the generated IP-XACT file for use with the TLM generator, these fields are required.

This example shows the metadata in a generated IP-XACT file.

Related Examples

More About