5.5.6. Protocols example

The Protocols example, shown in Figure 5.9, uses the AMBA-PV Signal and SignalState protocols and associated components provided with the Fast Model Portfolio. The example tests these two protocols. The AMBA-PV API on the SystemC side is provided by Fast Models.

The Fast Models system contains the following components:

The SystemC side contains a simple component model with associated master ports and slave exports.

The ARM1176 component runs NOPs if no application is loaded. The simple component in the example performs various state transfers.

Note

The Protocols example does not include support for debugging. The only purpose for this example is illustrating the use of additional protocols and corresponding bridges.

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

Figure 5.9. Protocols example

Protocols 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/Protocols/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/Protocols/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\Protocols\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\Protocols\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

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