Changeset 128 for trunk/IPs/systemC/Environment/src/Environment.cpp
- Timestamp:
- Jun 26, 2009, 10:43:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/src/Environment.cpp
r123 r128 1 1 #include "../include/Environment.h" 2 #include "../../processor/Morpheo/Common/include/ToString.h" 2 3 3 4 using namespace morpheo; … … 13 14 component_tty = new tty::TTY * [param->nb_component_tty]; 14 15 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]); 16 17 component_ramlock = new ramlock::RamLock * [param->nb_component_ramlock]; 17 18 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]); 19 20 component_sim2os = new sim2os::Sim2OS ("sim2os" ,param->param_sim2os ); 20 21 component_data = new data::Data ("data" ,param->param_data ); … … 186 187 icache_req_ack = new Tcontrol_t * [param->nb_entity]; 187 188 icache_rsp_val = new Tcontrol_t * [param->nb_entity]; 189 icache_rsp_num = new uint32_t * [param->nb_entity]; 188 190 dcache_req_ack = new Tcontrol_t * [param->nb_entity]; 189 191 dcache_rsp_val = new Tcontrol_t * [param->nb_entity]; 192 dcache_rsp_num = new uint32_t * [param->nb_entity]; 190 193 191 194 for (uint32_t i=0; i<param->nb_entity; i++) … … 193 196 icache_req_ack [i] = new Tcontrol_t [param->icache_dedicated_nb_port[i]]; 194 197 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]]; 195 199 dcache_req_ack [i] = new Tcontrol_t [param->dcache_dedicated_nb_port[i]]; 196 200 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]]; 197 202 } 198 203 … … 214 219 delete [] icache_req_ack [i]; 215 220 delete [] icache_rsp_val [i]; 221 delete [] icache_rsp_num [i]; 216 222 delete [] dcache_req_ack [i]; 217 223 delete [] dcache_rsp_val [i]; 224 delete [] dcache_rsp_num [i]; 218 225 } 219 226 220 227 delete [] icache_req_ack; 221 228 delete [] icache_rsp_val; 229 delete [] icache_rsp_num; 222 230 delete [] dcache_req_ack; 223 231 delete [] dcache_rsp_val; 232 delete [] dcache_rsp_num; 224 233 225 234 delete CLOCK ; … … 243 252 244 253 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]; 247 255 delete [] ICACHE_RSP_INSTRUCTION [i][j]; 248 256 } 257 249 258 delete [] ICACHE_REQ_VAL [i]; 250 259 delete [] ICACHE_REQ_ACK [i]; … … 276 285 for (uint32_t i=0; i<param->nb_entity; i++) 277 286 { 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++) 279 288 { 280 289 delete DCACHE_REQ_VAL [i][j];
Note: See TracChangeset
for help on using the changeset viewer.