Advertisement
silver2row

Heh?

Aug 29th, 2022
745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. 43 def read_data_from_cache(memory,address,cache):
  2. 44     (cache_storage,address_to_cache_loc,cache_loc_to_address,location_stack) = cache
  3. 45     location_stack = evict_location(location_stack)
  4. 46     # If the data is not yet in the cache, fetch it from the DRAM
  5. 47     # Note this may result in eviction, which could modify the memory
  6. 48     if address not in address_to_cache_loc:
  7. 49         (memory,cache) = write_data_to_cache(memory,address,cache):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement