| |||
Home > ARMulator Reference > ARMulator configuration files > Processors |
The processors region is a child ToolConf database (see ToolConf). It has a full
list of processors supported by the ARMulator. This list is the
basis of the list of processors in AXD, and the list of accepted
arguments for the -processor
option of armsd
.
You can add a variant processor to this list, for example
to include a particular memory model in the definition. See install_directory\Bin\example1.ami
for
examples.
Default
specifies the processor to use
if no other processor is specified. Each other entry in the Processors
region
is the name of a processor.
Example 4.2 declares
two processors, TRACED_ARM10 and PROFILED_ARM7. In this example, MCCFG
is
the ratio of the clock frequency on the processor to the clock frequency
on the external bus.
Example 4.2. Processors in a toolconf file
{Processors {TRACED_ARM10=ARM10200E ;CPUSPEED=400MHz ;Memory clock divisor. ;(The AHB runs this many times slower than the core.) MCCFG=4 {Flatmem {Peripherals {Tracer=Default_Tracer ;; Output options - can be plaintext to file, binary to file or to RDI log ;; window. (Checked in the order RDILog, File, BinFile.) RDILog=False File=armul.trc BinFile=armul.trc ;; Tracer options - what to trace TraceInstructions=True TraceRegisters=False TraceMemory=True TraceEvents=False ;; Flags - disassemble instructions; start up with tracing enabled. Disassemble=True StartOn=True } } } ;End TRACED_ARM10 } {PROFILED_ARM7=ARM720T {Flatmem {Peripherals {Profiler=Default_Profiler } } } } ;End Processors }
ARMulator uses the following algorithm to find a configuration for a selected processor:
Set the current
region to be Processors
.
Find the selected processor in the current region.
If the tag has a child, that child is the required configuration.