5.5.5. LinuxSystem example

The LinuxSystem example shown in Figure 5.8 is modified version of the DualCoreSystem example. This variant of the system provides sufficient resource to run the operating system and a simple example application.

The Fast Models system contains the following components:

The SystemC side contains simple CPTimers model.

The ARM1176CT component runs a Linux image.

The project file is $PVLIB_HOME/examples/SystemCExport/LinuxSystem/Build/LinuxSystem.sgproj.

Figure 5.8. LinuxSystem example

LinuxSystem example

Building the example with Linux

To build the debug version of the example, enter the following at the command line:

cd $PVLIB_HOME/examples/SystemCExport/LinuxSystem/Build
make DEBUG=y clean all

To build the release version of the example, enter the following at the command line:

cd $PVLIB_HOME/examples/SystemCExport/LinuxSystem/Build
make DEBUG=n clean all

Note

The make clean command is optional. If used, the model is completely rebuilt.

Building the example with Windows

To build the debug version of the example, enter the following at the command line:

cd %PVLIB_HOME%\examples\SystemCExport\LinuxSystem\Build
build_Windows-Debug-vc_version.bat

where vc_version is either VC2005 or VC2008 as appropriate to select the batch file that corresponds to the Windows compiler being used.

To build the release version of the example, enter the following at the command line:

cd %PVLIB_HOME%\examples\SystemCExport\LinuxSystem\Build
build_Windows-Release-vc_version.bat

where vc_version is either VC2005 or VC2008 as appropriate to select the batch file that corresponds to the Windows compiler being used.

Running the example

To run the example under Linux, enter the following at the command line:

./run.sh

Note

You must install the TPIP package to run the LinuxSystem example with cpu1_linux.axf.

To run the example under Windows, enter the following at the command line:

run.bat
Copyright © 2007-2009 ARM Limited. All rights reserved.ARM DUI 0370H
Non-Confidential