4.7. Handlers

ARMulator can be made to call back your model when some state values change. You do this by installing the relevant event handler.

You must provide implementations of the event handlers if you want to use them in your own models. See the implementations in the ARM supplied models for examples.

You can use event handlers to avoid having to check state values on every access. For example, a peripheral model is expected to present the ARM core with data in the correct byte order for the value of the ARM processor bigend signal. A peripheral model can attach to the EventHandler() (see Event handler) to be informed when this signal changes.

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