source: trunk/IPs/systemC/Environment/Cache/include/Types.h @ 101

Last change on this file since 101 was 101, checked in by rosiere, 15 years ago

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifndef ENVIRONMENT_CACHE_TYPES_H
2#define ENVIRONMENT_CACHE_TYPES_H
3
4namespace environment {
5namespace cache {
6
7  // =====================================================
8  // =====[ CACHE ]=======================================
9  // =====================================================
10
11  typedef enum
12    {
13      INSTRUCTION_CACHE ,
14      DATA_CACHE
15    } cache_t;
16 
17  // =====================================================
18  // =====[ DIRECTION ]===================================
19  // =====================================================
20
21  typedef enum
22    {
23      READ       ,
24      WRITE      ,
25      NONE
26    } direction_req_cache_t;
27 
28  // =====================================================
29  // =====[ REQUEST ]=====================================
30  // =====================================================
31
32  typedef enum 
33    {
34      CACHED         , // address can be in the cache
35      UNCACHED       , // Always miss (not address in cache)
36      INVALIDATE     , // The direction is not used
37      PREFETCH       , // The direction is not used
38      FLUSH          , // The direction is not used
39      LOCK           , // The direction is not used
40      SYNCHRONIZATION  // The direction is not used
41    } type_req_cache_t;
42
43  // =====================================================
44  // =====[ RESPONS ]=====================================
45  // =====================================================
46
47  typedef enum 
48    {
49      HIT_CACHE        ,
50      HIT_BYPASS       ,
51      HIT_WRITE_BUFFER ,
52      MISS
53    } type_rsp_cache_t;
54
55};
56};
57#endif
Note: See TracBrowser for help on using the repository browser.