10.12 Importing a custom model
If you have built your own custom CADI-compliant model, to connect to it using DS-5, you have to create a new entry in the DS-5 configuration database. Depending on how the model is defined in the configuration database, DS-5 can either launch the model or can connect to an already running model.
ARM® FVPs not provided with DS-5
installation should be defined in the
environment variable of your OS to be available for DS-5.
DS-5_install_directory/bin directory to your
PATH environment variable and restart Eclipse.
- For Windows, enter set PATH=<your model
- For Linux, enter export PATH=<your model
To make the change permanent, so that the modified path is
available in future sessions:
- For Windows, right-click User
Variables, create a
variable with the value
path>\bin, or else append
model path>\bin to any existing
- For Linux, set up the
PATH in the
appropriate shell configuration file. For example, in
.bashrc, add the line
export PATH=<your model
For the models you build yourself, follow the instructions as
described in this topic.
Launch your model and start the CADI server.
- If your model is a library file:
- On Windows, select model_shell -m <your model path
and name> -S.
- On Linux, open a new terminal and run:
DS-5_install_directory/bin/model_shell -m <your
model path and name> -S
- If your model is an executable file, at the command prompt, enter <your
model path and name> -S.
NoteFor more information about options available with the
utility in DS-5, enter
model_shell --help at the DS-5
Launch DS-5 and open the DS-5
Configuration perspective. Create a new model configuration as shown in 10.11 Creating a new model configuration.
Browse the list of models running on the local host.
If there is more than one active CADI-compliant model simulation,
DS-5 lists the available connections. Select the one
you want to connect to.
If needed, select a core to modify.
If needed, enter the name of the Platform
NoteIf you do not enter a name for the platform manufacturer, you can find the platform you
added listed under Imported in the list of
platforms in the Debug Configurations
Enter the name of the Platform.
Rebuild the DS-5 Configuration database:
- From the DS-5 menu, select and click Rebuild
Your model is now available as one of the targets in the configuration database. Use
the Debug Configurations dialog to create, manage, and run
configurations for this target.