- Timestamp:
- Jul 19, 2013, 2:34:03 PM (11 years ago)
- Location:
- branches/ODCCP/modules/vci_mem_cache
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ODCCP/modules/vci_mem_cache/caba/source/include/xram_transaction.h
r422 r460 293 293 return false; 294 294 } 295 296 /////////////////////////////////////////////////////////////////////// 297 // The hit_write() function looks if an XRAM write transaction exists 298 // for a given line. 299 // Arguments : 300 // - nline : the index (zy) of the requested line 301 // The function returns true if a write request has already been sent 302 /////////////////////////////////////////////////////////////////////// 303 bool hit_write(const addr_t nline, size_t *index) 304 { 305 for(size_t i=0; i<size_tab; i++){ 306 if(tab[i].valid && (nline==tab[i].nline) && !(tab[i].xram_read)) { 307 *index = i; 308 return true; 309 } 310 } 311 return false; 312 } 295 313 296 314 /////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.