source: trunk/IPs/systemC/Environnement/Cache/src/Cache_range_port.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: 878 bytes
Line 
1#include "../include/Cache.h"
2
3namespace environnement {
4namespace cache {
5
6  uint32_t Cache::range_port (cache_t  type_cache, 
7                              uint32_t num_entity)
8  {
9    uint32_t nb_port_dedicated = 0;
10   
11    if (type_cache == INSTRUCTION_CACHE)
12      {
13        for (uint32_t i = 1; i < num_entity; i++ )
14          nb_port_dedicated += param->param_icache_dedicated [i]->nb_port;
15      }
16    else
17      {
18        std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl;
19        nb_port_dedicated += param->nb_iport;
20        std::cout << "nb_port_dedicated : " << param->nb_iport<< std::endl;
21   
22        for (uint32_t i = 1; i < num_entity; i++)
23          nb_port_dedicated += param->param_dcache_dedicated [i]->nb_port;
24      }
25
26    std::cout << "nb_port_dedicated : " << num_entity << std::endl;
27    std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl;
28       
29    return nb_port_dedicated;
30  }
31
32};
33};
Note: See TracBrowser for help on using the repository browser.