bank_after_read bank_before_read
API Reference Manual  /  5 Model-to-Simulator Interfaces  / 

bank_after_write

Description
The bank_after_write interface is used to monitor and modify the state of write accesses from the after_write_callback_t callback.

SIM_INTERFACE(bank_after_write) {
        physical_address_t (*offset)(bank_access_t *handle);
        physical_address_t (*size)(bank_access_t *handle);
        bool (*missed)(bank_access_t *handle);

        void (*set_missed)(bank_access_t *handle, bool missed);
        conf_object_t *(*initiator)(bank_access_t *handle);
};
#define BANK_AFTER_WRITE_INTERFACE "bank_after_write"

offset retrieves the address of the access.

size gets the size of the access.

missed tells you whether or not the access succeeded.

set_missed can be used to inject or forgive an access miss.

initiator returns the initiator of the access. This method may be NULL, although this is deprecated. If the interface was implemented by a DML/C/C++ bank, then the method may only be accessed if the bank was compiled with Simics Base 6.0.129 or newer.

Execution Context
Cell Context for all methods, but must be called from an after_write_callback_t callback with a valid handle of type bank_access_t.

bank_after_read bank_before_read