Ignore:
Timestamp:
Jun 26, 2009, 10:43:23 AM (15 years ago)
Author:
rosiere
Message:

1) Correct bug in link two signal
2) Fix error detected with valgrind
3) modif distexe script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/src/Environment.cpp

    r123 r128  
    11#include "../include/Environment.h"
     2#include "../../processor/Morpheo/Common/include/ToString.h"
    23
    34using namespace morpheo;
     
    1314    component_tty         = new tty::TTY * [param->nb_component_tty];
    1415    for (uint32_t i=0; i<param->nb_component_tty; i++)
    15     component_tty     [i] = new tty::TTY         ("tty_"+i    ,param->param_tty     [i]);
     16      component_tty     [i] = new tty::TTY         ("tty_"+morpheo::toString(i),param->param_tty     [i]);
    1617    component_ramlock     = new ramlock::RamLock * [param->nb_component_ramlock];
    1718    for (uint32_t i=0; i<param->nb_component_ramlock; i++)
    18     component_ramlock [i] = new ramlock::RamLock ("ramlock_"+i,param->param_ramlock [i]);
     19    component_ramlock [i] = new ramlock::RamLock ("ramlock_"+morpheo::toString(i),param->param_ramlock [i]);
    1920    component_sim2os      = new sim2os::Sim2OS   ("sim2os" ,param->param_sim2os );
    2021    component_data        = new data::Data       ("data"   ,param->param_data   );
     
    186187    icache_req_ack = new Tcontrol_t * [param->nb_entity];
    187188    icache_rsp_val = new Tcontrol_t * [param->nb_entity];
     189    icache_rsp_num = new uint32_t   * [param->nb_entity];
    188190    dcache_req_ack = new Tcontrol_t * [param->nb_entity];
    189191    dcache_rsp_val = new Tcontrol_t * [param->nb_entity];
     192    dcache_rsp_num = new uint32_t   * [param->nb_entity];
    190193
    191194    for (uint32_t i=0; i<param->nb_entity; i++)
     
    193196        icache_req_ack [i] = new Tcontrol_t [param->icache_dedicated_nb_port[i]];
    194197        icache_rsp_val [i] = new Tcontrol_t [param->icache_dedicated_nb_port[i]];
     198        icache_rsp_num [i] = new uint32_t   [param->icache_dedicated_nb_port[i]];
    195199        dcache_req_ack [i] = new Tcontrol_t [param->dcache_dedicated_nb_port[i]];
    196200        dcache_rsp_val [i] = new Tcontrol_t [param->dcache_dedicated_nb_port[i]];
     201        dcache_rsp_num [i] = new uint32_t   [param->dcache_dedicated_nb_port[i]];
    197202      }
    198203
     
    214219        delete [] icache_req_ack [i];
    215220        delete [] icache_rsp_val [i];
     221        delete [] icache_rsp_num [i];
    216222        delete [] dcache_req_ack [i];
    217223        delete [] dcache_rsp_val [i];
     224        delete [] dcache_rsp_num [i];
    218225      }
    219226
    220227    delete [] icache_req_ack;
    221228    delete [] icache_rsp_val;
     229    delete [] icache_rsp_num;
    222230    delete [] dcache_req_ack;
    223231    delete [] dcache_rsp_val;
     232    delete [] dcache_rsp_num;
    224233
    225234    delete CLOCK ;
     
    243252
    244253            for (uint32_t k=0; k<param->iaccess_nb_instruction[i]; k++)
    245               delete ICACHE_RSP_INSTRUCTION [i][j][k];
    246 
     254            delete    ICACHE_RSP_INSTRUCTION [i][j][k];
    247255            delete [] ICACHE_RSP_INSTRUCTION [i][j];
    248256          }
     257
    249258        delete [] ICACHE_REQ_VAL         [i];
    250259        delete [] ICACHE_REQ_ACK         [i];
     
    276285    for (uint32_t i=0; i<param->nb_entity; i++)
    277286      {
    278         for (uint32_t j=0; j<param->icache_dedicated_nb_port[i]; j++)
     287        for (uint32_t j=0; j<param->dcache_dedicated_nb_port[i]; j++)
    279288          {
    280289            delete DCACHE_REQ_VAL        [i][j];
Note: See TracChangeset for help on using the changeset viewer.