Skip to content

UVM RAL · Topic

UVM RAL Callbacks — Extending Register Behaviour

Register and field callbacks — customising access behaviour, modelling side effects, and extending the model without editing it.

Callbacks exist because real registers do things a generic model cannot express: a read that clears, a write that triggers a side effect elsewhere, a field whose legal values depend on another register. A callback lets that behaviour be attached to a generated model without editing generated code, which is what keeps regeneration safe. The failure mode is registration — an unregistered callback simply never fires, and the model quietly behaves as though the special case did not exist.

Lessons in this topic(5)

Start hereRegister CallbacksUVM RAL Register Callbacks
  1. 2Field Callbacks
  2. 3pre/post Read & Write Callbacks
  3. 4Advanced Callback Use Cases
  4. 5Callback Debugging