Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Classes | Macros | Typedefs | Enumerations
defines.h File Reference
#include <tlm.h>
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  t_cache_tag
 
union  t_cache_data
 
struct  t_cache_line
 
struct  t_PTE_context
 

Macros

#define FROZENMISS_SET(debug)   (debug |= 0x2000)
 
#define CACHEBYPASS_SET(debug)   (debug |= 0x1000)
 
#define SCRATCHPAD_SET(debug)   (debug |= 0x800)
 
#define CACHEREADHIT_SET(debug, cache_set)   ((debug &= 0xfffff7f0) |= (cache_set & 0x3))
 
#define CACHEREADMISS_SET(debug, cache_set)   (((debug &= 0xfffff7f0) |= 0x4) |= (cache_set & 0x3))
 
#define CACHEWRITEHIT_SET(debug, cache_set)   (((debug &= 0xfffff7f0) |= 0x8) |= (cache_set & 0x3))
 
#define CACHEWRITEMISS_SET(debug)   ((debug &= 0xfffff7f0) |= 0xc)
 
#define CACHEFLUSH_SET(debug)   (debug |= 0x10)
 
#define TLBHIT_SET(debug)   (debug &= ~(1 << 21));
 
#define TLBMISS_SET(debug)   (debug |= (1 << 21));
 
#define FROZENMISS_CHECK(debug)   (debug & 0x2000)
 
#define CACHEBYPASS_CHECK(debug)   (debug & 0x1000)
 
#define SCRATCHPAD_CHECK(debug)   (debug & 0x800)
 
#define CACHEREADHIT_CHECK(debug)   ((debug & 0xc) == 0)
 
#define CACHEREADMISS_CHECK(debug)   ((debug & 0xc) == 4)
 
#define CACHEWRITEHIT_CHECK(debug)   ((debug & 0xc) == 8)
 
#define CACHEWRITEMISS_CHECK(debug)   (((debug & 0xc) == 0xc) && ((debug & 0x3) == 0))
 
#define CACHEFLUSH_CHECK(debug)   ((debug & 0x10) == 0x10)
 
#define TLBHIT_CHECK(debug)   ((debug & (1 << 21)) == 0)
 
#define TLBMISS_CHECK(debug)   ((debug & (1 << 21)) != 0)
 

Typedefs

typedef unsigned int t_VAT
 
typedef tlm::tlm_generic_payload * gp_ptr
 

Enumerations

enum  check_t {
  NOCHECK, FROZENMISS, NOTFROZENMISS, CACHEBYPASS,
  SCRATCHPAD, CACHEREADHIT, CACHEREADMISS, CACHEWRITEHIT,
  CACHEWRITEMISS, CACHEFLUSH, TLBHIT, TLBMISS
}