Changeset 114 for trunk/IPs/systemC/Environment
- Timestamp:
- Apr 17, 2009, 12:35:37 AM (16 years ago)
- Location:
- trunk/IPs/systemC/Environment
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_update_access.cpp
r81 r114 20 20 // if (latence != 0) 21 21 // { 22 // std::cout << "<Cache_MultiLevel::update_access> after all update, latence must be null." << std::endl;22 // _cout(CACHE,"after all update, latence must be null.\n"); 23 23 // exit(1); 24 24 // } -
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_access.cpp
r101 r114 30 30 case SYNCHRONIZATION : return access_synchronization (num_port,address,trdid ); break; 31 31 case CACHED : return access_cached (num_port,address,trdid,dir); break; 32 default : std::cout << "<Cache_Onelevel.access> unknow type : " << std::endl; exit(1); break;32 default : _cerr("<Cache_Onelevel.access> unknow type\n"); exit(1); break; 33 33 } 34 34 } -
trunk/IPs/systemC/Environment/Common/include/Debug.h
r88 r114 11 11 #define DEBUG_TTY true 12 12 13 // #ifdef DEBUG14 13 # define _cout(component, str...) \ 15 14 do \ … … 21 20 } \ 22 21 while(0) 23 // #else 24 // # define _cout(component, str...) 25 // do 26 // { 27 // } 28 // while(0) 29 // #endif 22 23 # define _cerr(str...) \ 24 do \ 25 { \ 26 fprintf(stderr,str); \ 27 } \ 28 while(0) 30 29 31 30 #endif -
trunk/IPs/systemC/Environment/Makefile
r113 r114 45 45 all : 46 46 @\ 47 $(MAKE) all_environment; \48 47 $(MAKE) --directory=$(DIR_CACHE) all; \ 49 48 $(MAKE) --directory=$(DIR_DATA) all; \ … … 56 55 57 56 58 $(LIBRARY_FILE) : $( Environment_OBJECTS_DEPS)57 $(LIBRARY_FILE) : $(DIR_LIB) $(Environment_OBJECTS_DEPS) 59 58 @\ 60 59 $(ECHO) "Archive : $@";\ 61 $(ECHO) "Archive : $@";\62 $(MKDIR) $(DIR_LIB);\63 60 $(AR) -r $@ $(Environment_OBJECTS_DEPS);\ 64 61 $(RANLIB) $@; -
trunk/IPs/systemC/Environment/Makefile.Environment
r113 r114 29 29 $(CXX) $(MORPHEO_L_FLAGS) -o $@ $^ $(LIBNAME); 30 30 31 $(DIR_OBJ) 31 $(DIR_OBJ) $(DIR_BIN) : 32 32 @\ 33 33 $(ECHO) "Create directory : $@";\ 34 34 $(MKDIR) $@ 35 36 $(DIR_BIN) :37 @\38 $(ECHO) "Create directory : $@";\39 $(MKDIR) $@40 41 35 42 36 exe : all $(DIR_BIN) -
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.