6.1.3 Adding a resources section to a LISA file

How to add a resources section to a LISA file.

A resources section describes the resources of the component, including registers, memories, states, and other variables. In addition to annotated resources such as REGISTER and MEMORY, you can use variable definitions. The doubler component requires one variable that indicates if the current character sequence follows an escape character.

Procedure

  1. Select the Source tab in the workspace for the file SerialCharDoubler.lisa.
  2. Add the resources section with marker to the code.
    // System Generator generated this file.
    // --------------------------------------------------
    component SerialCharDoubler
    {
        composition
        {
        }
        connection
        {
        }
        resources
        {
        // Remember whether or not we are inside an escape sequence
        // that came through 'in'.
           bool inEscape;
        }
    }
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.