1.3.2 Project files

System Canvas uses one project file (.sgproj) to drive the process of system creation, build configuration, and building the model.

  • There is no requirement to provide a makefile and a set of configuration files for each new project.
  • Each project file references all files that System Canvas needs to build and run a simulation, including LISA, C and C++ sources, libraries including directories, files to deploy to the simulation directory, and nested repository files.
Repository files have the same format as project files.
You can add single files or a complete repository, such as the Fast Models Portfolio, to the project file.
Figure 1-2 Organization of project directories and files on Microsoft Windows
To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.

The Build subdirectory of the My_System directory contains the My_System.sgproj project file:
  1. My_System.sgproj points to the standard Fast Model Portfolio repository file sglib.sgrepo.
  2. The sglib.sgrepo repository file contains a list of repository locations such as components.sgrepo.
  3. components.sgrepo lists the locations of the LISA files for the components and the location and type of libraries that are available for the components.
  4. The project file lists My_System.lisa as the top-level LISA file for the system. The top-level LISA file lists the components in the system and shows how the components interconnect.
  5. This project uses a custom component in addition to the standard Fast Model Portfolio components. Custom components can sit anywhere in the directory structure. In this case, only the My_System component uses the custom component, so the My_custom_component.lisa file is in the same directory.
    System Canvas generates the My_System.sgcanvas and My_custom_component.sgcanvas files to save display changes in the Workspace window. These files describe the display settings for a component such as:
    • Component location and size.
    • Label text, position and formatting.
    • Text font and size.
    • The moving of or hiding of ports.
    • Grid spacing.
    • The build process does not use .sgcanvas files. System Canvas uses them for the Block Diagram view of System Canvas.
  6. My_System.sgproj lists Win32-Debug-VC2010 as the build directory for the selected platform. The build options in the project file determine:
    • The libraries.
    • The location.
    • The format of the generated system. For example, the extension for the model is .so for Linux or .dll for Microsoft Windows.
Related reference
4.19 Project Settings dialog
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.