source: trunk/IPs/systemC/Environnement/Cache/src/Cache_MultiLevel.cpp @ 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: 751 bytes
Line 
1#include "../include/Cache_MultiLevel.h"
2#include <sstream>
3
4namespace environnement {
5namespace cache {
6namespace cache_multilevel {
7
8  Cache_MultiLevel::Cache_MultiLevel (std::string name,
9                                      Parameters * param)
10  {
11    this->name  = name;
12    this->param = param;
13
14    hierarchy_cache = new cache_onelevel::Cache_OneLevel * [param->nb_level];
15   
16    for (uint32_t i=0; i<param->nb_level; i++)
17      {
18        std::stringstream str;
19
20        str << name << "_level_" << i;
21
22        hierarchy_cache[i] = new cache_onelevel::Cache_OneLevel (str.str(), param->param_cache[i]);
23      }
24  }
25
26  Cache_MultiLevel::~Cache_MultiLevel (void)
27  {
28    for (uint32_t i=0; i<param->nb_level; i++)
29      delete hierarchy_cache [i];
30    delete [] hierarchy_cache;
31  }
32};
33};
34};
Note: See TracBrowser for help on using the repository browser.