2.4. Composition section

The composition section enables hierarchical description of components.

The section lists all subcomponents of a component or system and defines the values of initialization-time and run-time parameters of the contained subcomponents.

Parameters of subcomponents are initialized in the composition section by specifying a comma-separated list of name=value statements in parentheses following the component type name. The name must be a published name. The name attribute is relevant for published names. See Parameters. The value can be either:

Example 2.14 describes component MyComponent having two sub components mem1 and mem2 that are both of type MyMemory. The expression size=0x1000 sets compile time parameter size of component mem1 to 0x1000.

Example 2.14. Composition section

component MyComponent
       PARAMETER mem2size;
        mem1: MyMemory(size=0x1000);
        mem2: MyMemory(size=mem2size, id=0x7000);

Copyright © 2007-2009 ARM Limited. All rights reserved.ARM DUI 0372H