timing_model tsc_update
API Reference Manual  /  5 Model-to-Simulator Interfaces  / 

transaction

Description

The transaction interface is implemented by devices that can be mapped into address spaces. The issue method is called when a memory transaction t is issued to the object.

The return value of the issue function is normally Sim_PE_No_Exception, but other pseudo exception_type_t values can be used to signal error conditions. The value Sim_PE_Deferred must be used when the transaction has been deferred using SIM_defer_transaction for completion at some later time.

SIM_INTERFACE(transaction) {
        exception_type_t (*issue)(
                conf_object_t *NOTNULL obj,
                transaction_t *NOTNULL t,
                uint64 addr);
};
#define TRANSACTION_INTERFACE  "transaction"

Execution Context
Instruction Context for all methods.

timing_model tsc_update