Ignore:
Timestamp:
Jun 8, 2009, 10:43:30 PM (15 years ago)
Author:
rosiere
Message:

1) Fix performance
2) add auto generation to SPECINT2000
3) add reset in genMoore and genMealy

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src/Icache_Access.cpp

    r88 r123  
    3737    usage_environment(_usage);
    3838
    39 #if DEBUG_Core == true
    40     log_printf(INFO,Core,FUNCTION,_("<%s> Parameters"),_name.c_str());
    41 
    42     std::cout << *param << std::endl;
    43 #endif   
     39// #if DEBUG_Core == true
     40//     log_printf(INFO,Core,FUNCTION,_("<%s> Parameters"),_name.c_str());
     41
     42//     std::cout << *param << std::endl;
     43// #endif   
    4444
    4545    log_printf(INFO,Icache_Access,FUNCTION,_("<%s> : Allocation"),_name.c_str());
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src/Icache_Access_genMealy_req.cpp

    r119 r123  
    2323    Tcontrol_t icache_req_val [_param->_nb_icache_port];
    2424    for (uint32_t i=0; i<_param->_nb_icache_port; ++i)
     25      icache_req_val [i] = 0;
     26    Tcontrol_t context_req_ack [_param->_nb_front_end][_param->_max_nb_context];
     27    for (uint32_t i=0; i<_param->_nb_front_end; ++i)
     28      for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
     29        context_req_ack [i][j] = 0;
     30
     31    if (PORT_READ(in_NRESET))
    2532      {
    26         icache_req_val [i] = 0;
    27 
     33    for (uint32_t i=0; i<_param->_nb_icache_port; ++i)
     34      {
    2835#ifdef STATISTICS
    2936        _internal_ICACHE_REQ_NB_ACCESS         [i] = 0;
     
    3239      }
    3340   
    34     Tcontrol_t context_req_ack [_param->_nb_front_end][_param->_max_nb_context];
    35     for (uint32_t i=0; i<_param->_nb_front_end; ++i)
    36       for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
    37         context_req_ack [i][j] = 0;
    38        
    3941    std::list<generic::priority::select_t> * select = _priority ->select();
    4042    for (std::list<generic::priority::select_t>::iterator it=select ->begin();
     
    8587          }
    8688      }
     89      }
     90
    8791
    8892    for (uint32_t i=0; i<_param->_nb_icache_port; ++i)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src/Icache_Access_genMealy_rsp.cpp

    r88 r123  
    2626        context_rsp_val [i][j] = 0;
    2727
     28    if (PORT_READ(in_NRESET))
     29      {
    2830    for (uint32_t i=0; i<_param->_nb_icache_port; ++i)
    2931      {
     
    7577      }
    7678
     79      }
     80    else
     81      for (uint32_t i=0; i<_param->_nb_icache_port; ++i)
     82        PORT_WRITE(out_ICACHE_RSP_ACK [i],0);
     83
    7784    for (uint32_t i=0; i<_param->_nb_front_end; ++i)
    7885      for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
Note: See TracChangeset for help on using the changeset viewer.