About special purpose behaviors

Some behavior names have a special meaning in components. These special purpose behaviors are called implicitly and automatically in certain phases of the simulation. For example, at system startup, the application calls each component for several phases of the simulation.

Table 6-1 Special-purpose behaviors

Behavior Description
behavior init This behavior is called implicitly once when the simulation starts. It executes once. It allocates memory and other resources for the simulation.
behavior reset(int level)
This behavior is called whenever the user resets the simulation. The user might reset multiple times, so this behavior must not allocate memory.
behavior terminate This behavior is called when the simulation terminates. It frees the memory and resources that behavior init allocated.
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.