nios nios_custom
API Reference Manual  /  4 Model-to-Model Interfaces  / 

nios_cache

Description
This nios_cache interface is used when the side-effects are required for cache instructions.

Each function is called when the corresponding instruction is executed. See IntelĀ® NiosĀ® II processor reference guide, section 8, for further information.

SIM_INTERFACE(nios_cache) {
        void (*flushd)(conf_object_t *NOTNULL self, logical_address_t addr);
        void (*flushda)(conf_object_t *NOTNULL self, logical_address_t addr);
        void (*flushi)(conf_object_t *NOTNULL self, logical_address_t addr);
        void (*flushp)(conf_object_t *NOTNULL self);
        void (*initd)(conf_object_t *NOTNULL self, logical_address_t addr);
        void (*initda)(conf_object_t *NOTNULL self, logical_address_t addr);
        void (*initi)(conf_object_t *NOTNULL self, logical_address_t addr);
        void (*sync)(conf_object_t *NOTNULL self);
};
#define NIOS_CACHE_INTERFACE "nios_cache"

Execution Context
Cell Context for all methods.

nios nios_custom