Ignore:
Timestamp:
Apr 15, 2008, 8:40:01 PM (16 years ago)
Author:
rosiere
Message:
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/Cache/include/Cache_Parameters.h

    • Property svn:keywords set to Id
    r80 r81  
    1414  public : uint32_t nb_cache_dedicated;
    1515  public : uint32_t nb_iport;
     16  public : uint32_t nb_dport;
    1617
    1718  public : cache_multilevel::Parameters ** param_icache_dedicated;
     
    4748      this->nb_cache_dedicated = nb_cache_dedicated;
    4849
     50      if (nb_cache_dedicated == 0)
     51        {
     52          std::cerr << "[  ERROR  ] nb_cache_dedicated > 0" << std::endl;
     53          exit(0);
     54        }
     55
    4956      uint32_t cache_shared_nb_port = 0;
    50       uint32_t nb_iport = 0;
     57      nb_iport = 0;
     58      nb_dport = 0;
     59
    5160      for (uint32_t i=0; i<nb_cache_dedicated; i++)
    5261        {
    5362          nb_iport             += icache_dedicated_nb_port [i];
     63          nb_dport             += dcache_dedicated_nb_port [i];
    5464          cache_shared_nb_port += icache_dedicated_nb_port [i];
    5565          cache_shared_nb_port += dcache_dedicated_nb_port [i];
     
    108118    {
    109119      std::string tab (depth,'\t');
    110       std::stringstream str;
     120      std::stringstream str ("");
    111121
    112122      str << tab << "* Nb Cache dedicated    : " << nb_cache_dedicated << std::endl
    113           << tab << "* Nb iport              : " << nb_iport << std::endl;
     123          << tab << "* Nb iport              : " << nb_iport << std::endl
     124          << tab << "* Nb dport              : " << nb_dport << std::endl
     125;
    114126
    115127      for (uint32_t i=0; i<nb_cache_dedicated; i++)
Note: See TracChangeset for help on using the changeset viewer.