Changeset 81 for trunk/IPs/systemC/Environment/Cache/src
- Timestamp:
- Apr 15, 2008, 8:40:01 PM (17 years ago)
- Location:
- trunk/IPs/systemC/Environment/Cache/src
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Cache/src/Cache.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_access.cpp
-
Property
svn:keywords
set to
Id
r80 r81 16 16 { 17 17 hit = hierarchy_cache[i]->access (num_port,address,trdid,type,dir); 18 time += hierarchy_cache[i]->latence(num_port); 18 uint32_t latence = hierarchy_cache[i]->latence(num_port); 19 time += latence; 19 20 20 std::cout << "SETH : " 21 << " * i : " << i 22 << " * hit : " << hit 23 << " * time :" << time << std::endl; 24 21 _cout(CACHE," * Level [%d] - type_hit %d, latence %d, Sum latence %d\n",i,hit,latence,time); 22 25 23 if ( (hit == HIT_CACHE) or 26 24 (hit == HIT_WRITE_BUFFER) or -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_information.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_latence.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_print.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_reset.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_transition.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_MultiLevel_update_access.cpp
-
Property
svn:keywords
set to
Id
r80 r81 8 8 uint32_t Cache_MultiLevel::update_access (Access cur_access) 9 9 { 10 if (cur_access.last_nb_level > 0)10 // if (cur_access.last_nb_level > 0) 11 11 { 12 12 uint32_t latence = cur_access.latence; 13 14 _cout(CACHE,"Cache_MultiLevel::update_access [%d] : latence : %d, last_nb_level : %d (nb_level : %d)\n",cur_access.num_port,latence,cur_access.last_nb_level,param->nb_level); 13 15 14 for (uint32_t it = 0; it <= cur_access.last_nb_level; it ++) 15 latence = hierarchy_cache [it]->update_latence (cur_access.num_port,latence); 16 16 for (uint32_t it = 0; it < cur_access.last_nb_level; it ++) 17 { 18 latence = hierarchy_cache [it]->update_latence (cur_access.num_port,latence); 19 } 17 20 // if (latence != 0) 18 21 // { -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_access.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_access_cached.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_access_flush.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_access_invalidate.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_access_uncached.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_hit_access_port.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_hit_cache.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_hit_write_buffer.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_index_victim.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_information.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_latence.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_need_slot.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_print.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_reset.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_transition.cpp
-
Property
svn:keywords
set to
Id
r80 r81 34 34 35 35 // Test if a write_buffer have the result 36 while ((write_buffer->empty() == false) && (write_buffer->read(0)._delay == 0)) 36 while ((write_buffer->empty() == false) and 37 (write_buffer->read(0)._delay == 0)) 37 38 { 38 39 // Save in the cache 39 Write_Buffer val 40 Write_Buffer val = write_buffer->pop(); 40 41 41 uint32_t num_tag = val.address.tag;42 uint32_t num_familly = val.address.familly;42 uint32_t num_tag = val.address.tag; 43 uint32_t num_familly = val.address.familly; 43 44 uint32_t num_associativity = index_victim(num_familly); 44 45 -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_translate_address.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_update_latence.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_OneLevel_update_lru.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_information.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_latence.cpp
-
Property
svn:keywords
set to
Id
r80 r81 22 22 23 23 cache_multilevel::Cache_MultiLevel * cache; 24 cache_multilevel::Parameters * param_cache_dedicated; 25 _cout(CACHE," * Access Cache_Dedicated_"); 24 26 if (type_cache == INSTRUCTION_CACHE) 25 cache = icache_dedicated [num_entity]; 27 { 28 _cout(CACHE,"Instruction"); 29 cache = icache_dedicated [num_entity]; 30 param_cache_dedicated = param->param_icache_dedicated [num_entity]; 31 } 26 32 else 27 cache = dcache_dedicated [num_entity]; 33 { 34 _cout(CACHE,"Data"); 35 cache = dcache_dedicated [num_entity]; 36 param_cache_dedicated = param->param_dcache_dedicated [num_entity]; 37 } 38 _cout(CACHE," [%d] - entity : %d, address : 0x%.x\n",num_port,num_entity,address); 28 39 29 40 if (num_port >= cache->param->nb_port) … … 34 45 35 46 // Make a access with this level "dedicated" 36 std::cout << "cache dedicated : access" << std::endl;37 47 cache_multilevel::Access access_dedicated = cache->access(num_port,address,trdid,type,dir); 38 48 39 49 if (access_dedicated.hit == MISS) 40 50 { 41 std::cout << "cache shared : access" << std::endl; 51 _cout(CACHE," * Access Cache_shared"); 52 42 53 // Make a access with this level "shared" 43 54 cache_multilevel::Access access_shared = cache_shared->access(range_port (type_cache,num_entity)+num_port,address,trdid,type,dir); … … 45 56 cache_shared->update_access (access_shared); 46 57 47 access_dedicated.last_nb_level = param ->nb_cache_dedicated-1; // Update all cache58 access_dedicated.last_nb_level = param_cache_dedicated->nb_level; // Update all cache 48 59 access_dedicated.latence += access_shared.latence; 49 60 } 50 61 51 std::cout << "end access, update access" << std::endl;52 53 62 cache->update_access (access_dedicated); 54 63 55 std::cout << "end access, update access" << std::endl; 56 64 _cout(CACHE,"Access latence : %d\n",access_dedicated.latence); 57 65 return access_dedicated.latence; 58 66 } -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_print.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_range_port.cpp
-
Property
svn:keywords
set to
Id
r80 r81 16 16 else 17 17 { 18 std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl;18 // std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl; 19 19 nb_port_dedicated += param->nb_iport; 20 std::cout << "nb_port_dedicated : " << param->nb_iport<< std::endl;20 // std::cout << "nb_port_dedicated : " << param->nb_iport<< std::endl; 21 21 22 22 for (uint32_t i = 1; i < num_entity; i++) … … 24 24 } 25 25 26 std::cout << "nb_port_dedicated : " << num_entity << std::endl;27 std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl;26 // std::cout << "nb_port_dedicated : " << num_entity << std::endl; 27 // std::cout << "nb_port_dedicated : " << nb_port_dedicated<< std::endl; 28 28 29 29 return nb_port_dedicated; -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_reset.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Cache/src/Cache_transition.cpp
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.