- Timestamp:
- Apr 17, 2009, 12:35:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/src/Environment_transition.cpp
r101 r114 130 130 if (bus_error == true) 131 131 { 132 std::cout << "Icache : have a bus error" << std::endl 133 << " * entity : " << i << std::endl 134 << " * port : " << j << std::endl 135 << std::hex 136 << " * req_addr : " << address << std::endl 137 << std::dec 138 << " * req_trdid : " << context << std::endl 139 << " * req_pktid : " << packet << std::endl; 132 _cout(ENVIRONMENT," * Icache : have a bus error\n"); 133 _cout(ENVIRONMENT," * entity : %d\n",i); 134 _cout(ENVIRONMENT," * port : %d\n",j); 135 _cout(ENVIRONMENT," * req_addr : %x\n",address); 136 _cout(ENVIRONMENT," * req_trdid : %d\n",context); 137 _cout(ENVIRONMENT," * req_pktid : %d\n",packet ); 140 138 141 139 // Write in instruction [0] the bad address (only 32bit ....) … … 211 209 data::Entity entity = component_data->entity(static_cast<uint32_t>(address),nb_bytes); 212 210 213 std::cout << entity << std::endl;211 // std::cout << entity << std::endl; 214 212 215 213 // Test the type of the address … … 377 375 if (must_write == false) 378 376 { 379 std::cerr << "<Environment::transition> SIM2OS[0] is not accessible in Read" << std::endl;377 _cerr("<Environment::transition> SIM2OS[0] is not accessible in Read\n"); 380 378 bus_error = true; 381 379 } … … 391 389 if (must_read == false) 392 390 { 393 std::cerr << "<Environment::transition> SIM2OS[1] is not accessible in Write" << std::endl;391 _cerr("<Environment::transition> SIM2OS[1] is not accessible in Write\n"); 394 392 bus_error = true; 395 393 } … … 408 406 if (must_read == false) 409 407 { 410 std::cerr << "<Environment::transition> SIM2OS[2] is not accessible in Write" << std::endl;408 _cerr("<Environment::transition> SIM2OS[2] is not accessible in Write\n"); 411 409 bus_error = true; 412 410 } … … 426 424 if (must_write == false) 427 425 { 428 std::cerr << "<Environment::transition> SIM2OS[" << num_reg << "] is not accessible in Read" << std::endl;426 _cerr("<Environment::transition> SIM2OS[%d] is not accessible in Read\n",num_reg); 429 427 bus_error = true; 430 428 } … … 443 441 default : 444 442 { 445 std::cerr << "<Environment::transition> Dcache_req : Unknow type" << std::endl;443 _cerr("<Environment::transition> Dcache_req : Unknow type\n"); 446 444 exit(1); 447 445 break; … … 482 480 if (bus_error == true) 483 481 { 484 std::cout << "Dcache : have a bus error" << std::endl 485 << " * entity : " << i << std::endl 486 << " * port : " << j << std::endl 487 << std::hex 488 << " * req_addr : 0x" << address << std::endl 489 << std::dec 490 << " * req_trdid : " << context << std::endl 491 << " * req_pktid : " << packet << std::endl; 482 _cout(ENVIRONMENT," * Dcache : have a bus error\n"); 483 _cout(ENVIRONMENT," * entity : %d\n",i); 484 _cout(ENVIRONMENT," * port : %d\n",j); 485 _cout(ENVIRONMENT," * req_addr : 0x%x\n",address); 486 _cout(ENVIRONMENT," * req_trdid : %d\n",context); 487 _cout(ENVIRONMENT," * req_pktid : %d\n",packet ); 492 488 493 489 // Write in data [0] the bad address (32bit or 64bits )
Note: See TracChangeset
for help on using the changeset viewer.