5.2.2. Building the EVS

  1. System Canvas automatically uses the following include path:

    • $(SYSTEMC_HOME)/include

    • $(TLM_HOME)/include/tlm

    The SYSTEMC_HOME and TLM_HOME environment variables are set when the TPIP package is installed. This package is available as a seperate download from the same location as the Fast Models package. If you require a different copy of SystemC or TLM, modify the variables before starting System Canvas.

  2. In System Canvas, enable the target option SystemC component under the menu entry Project → Project Settings → Targets.

  3. Add the ports you require on the generated SystemC component as normal Fast Models ports. See Using the generated ports for more information on using ports.

  4. Add the headers and library files specified for your operating system. See Adding header files and libraries for Linux export or Adding header files and libraries for Windows export.

  5. Build the SystemC component. The output is:

    • static library MySystem-sc_sg_wrapper-AConfig.a.

      For Windows, the library is MySystem-sc_sg_wrapper-AConfig.lib.

    • header file sc_sg_wrapper_MySystem.h in the Linux directory AConfig/gen_sc_sg_wrapper_AConfig_Linux.

      For Windows, the header file is located in the directory AConfig/gen_sc_sg_wrapper_AConfig_Win32.


    The SystemC examples that ship with the Fast Models Portfolio directly produce a SystemC executable by specifying Post Build Actions for the linker in the Project Settings dialog. This allows to build and run these examples directly from System Canvas.This is accomplished by customized Makefiles/vcprojs which compile the users SystemC files and link against the EVS. They are triggered in the Post-Build Actions of the sgproj.

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0370K