You copied the Doc URL to your clipboard.

About LISA+ components

A component is the fundamental LISA+ construct that describes components and systems.

Components can have subcomponents and form a hierarchy. The top level component of a system, the component that does not have any parent component, is sometimes also referred to as a system. There is, however, nothing special about it, and you declare it in the same way as any other component.

Systems that have external ports can be used as components in a higher-level system. The term system can mean a collection of connected components with no external ports.

Component definitions can contain these sections:

  • Resources.
  • Includes.
  • Composition.
  • Behavior.
  • Port.
  • Connection.
  • Properties.
  • Debug.
  • Parameter export list.

Except for the behavior and port sections, there can be only one of each section type in a component.

Note

Component names and keywords are case sensitive.

A component declaration uses the component keyword and can contain any of the sections listed in any order.

Component declaration
component MyComponent
{
     includes
     {      
          // ...
     }

     resources
     {
          // ...
     }

     internal port<MyProtocol> port0
     {
          // ...
     }

     behavior init
     {
          // ...
     }
}
Was this page helpful? Yes No