source: trunk/IPs/systemC/Environnement/Cache/include/Cache_OneLevel_Tag.h @ 78

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 785 bytes
Line 
1#ifndef ENVIRONNEMENT_CACHE_CACHE_ONELEVEL_TAG_H
2#define ENVIRONNEMENT_CACHE_CACHE_ONELEVEL_TAG_H
3
4#include <iostream>
5#include <iomanip>
6
7namespace environnement {
8namespace cache {
9namespace cache_onelevel {
10
11  class Tag
12  {
13  public    : bool            valid    ; // tag is valid ?
14  public    : uint32_t        address  ; // address
15  public    : uint32_t        trdid    ; // owner thread identification
16  public    : uint32_t        index_lru; // to select victim
17   
18    friend std::ostream& operator<< (std::ostream& output, const Tag &x)
19    {
20      output << x.valid     << " "
21             << std::hex << std::setw(8) << std::setfill('0') << x.address   << " " << std::dec
22             << x.trdid     << " "
23             << x.index_lru;
24     
25      return output;
26    }
27  };
28
29};
30};
31};
32#endif
Note: See TracBrowser for help on using the repository browser.