4.10.2. ARMulif_ReadBusRange

You must supply a breg structure to register a peripheral. Call this function to initialize the fields in this structure.

Syntax


int ARMulif_ReadBusRange(struct RDI_ModuleDesc *mdesc,                         struct RDI_HostosInterface const *hostif,
                         toolconf config,
                         struct ARMul_BusPeripAccessRegistration *breg,
                         uint32 default_base, uint32 default_size,
                         char const *default_bus_name);

where:

mdesc

is the handle for the core.

hostif

is the handle for the host interface.

config

is the configuration passed in to your model in BEGIN_INIT.

breg

is a structure containing information for the ARMulator. You need this for registerPeripFunc() (see ARMul_BusRegisterPeripFunc).

For details of the structure, see armulbus.h in <install_directory>\armulate\armulif.

default_base

is the default base address to use for your peripheral. This address is used if config does not contain a base address for your peripheral.

default_size

is the default size of the area in memory to use for your peripheral. This is used if config does not contain a size for your peripheral.

default_bus_name

is a pointer to a string. This string is used if no bus name is found in the config parameter for this peripheral, for example in a .dsc or .ami file.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential