Datasheet

Writing ARMulator models
3-8 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
3.4 Configuring ARMulator to use a new model
ARMulator determines which models to use by reading the
.ami
and
.dsc
configuration
files. See ARMulator configuration files on page 4-63.
Before a new model can be used by ARMulator, you must add a
.dsc
file for your model,
and references to it must be added to the configuration files
default.ami
and
peripherals.ami
.
The procedures are described in the following subsections:
Adding a .dsc file
Editing default.ami and peripherals.ami on page 3-9.
3.4.1 Adding a .dsc file
Create a file called
MyModel.dsc
and place it in
install_directory\Bin
. It must contain
the following:
;; ARMulator configuration file type 3
{ Peripherals
{MyModel
MODEL_DLLfilename=MyModel
}
{
No_MyModel=Nothing
}
}
where the name of your model is one of:
MyModel.dll
MyModel.so
MyModel.sl
Nothing
is a predefined model that does nothing. The
No_MyModel=Nothing
line allows the
use of
No_MyModel
in a
.ami
file. This allows a user to configure ARMulator to exclude
your model (see Configuring ARMulator to disable a model on page 3-10).
You can include other configuration details in your
MyModel.dsc
file if required. See the
supplied
.dsc
files in
install_directory\Bin
for examples.