User guide

CIF Module - SimpleVSP
22 CoMET Version 5.9 – Tutorial
Constructing a VSP in CoMET
CoMET manages a group of projects within a Workspace. To construct a VSP, you first
create a workspace then create a CIF Virtual System Prototype project within it. You also
create CIF Projects for the component Virtual Platforms and Peripheral Devices required by
the system.
You may also use pre-built VPMs and Peripheral Device models.
You specify the hierarchical structure of the VSP and the Virtual Platforms by adding
instances of component modules. You create Nets to connect the Ports of component module
instances. Module instances, Nets and Instance Port connections are specified in a Fabric
Module Definition (.fmx)
You specify the runtime configuration of the component modules by overriding parameters in
the Prototype Configuration (.pcx) file.
To create target software, you write code for the target microprocessor platform and compile
it, using a cross-compiler appropriate for the processor modeled by your VPM, just as you
would for the actual hardware platform.
You can then run the target software on the virtual system prototype. CoMET provides tools
to manage all stages of a VSP project. Using CoMET you can create and edit .fmx files and
.pcx files. You can create, edit and compile module behavior code. For some processors, such
as the ARM processor, you can edit and compile target code within the CoMET environment.
Within the CoMET environment you can specify software build options, build the VSP and
run the simulation.
The SimpleVSP Example
The SimpleVSP example is as simple as possible. It is a functioning prototype with a Virtual
Platform containing a VPM (Virtual Microprocessor Model), memory, and the necessary
support modules. No coding is required. SimpleVSP is built entirely with modules from the
VaST Modules library.
Not all customers receive the Arm926ejs VPM used as an example in this tutorial. The
tutorial uses features common to all microprocessors. You may have to modify some of the
procedures to suit the VPM you choose.
This tutorial does not cover building target code. How you build target code depends on your
choice of VPM. The tools available for the processor modeled by the VPM determine the
appropriate cross-compiler and the target code development environment.