Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 43 def read_data_from_cache(memory,address,cache):
- 44 (cache_storage,address_to_cache_loc,cache_loc_to_address,location_stack) = cache
- 45 location_stack = evict_location(location_stack)
- 46 # If the data is not yet in the cache, fetch it from the DRAM
- 47 # Note this may result in eviction, which could modify the memory
- 48 if address not in address_to_cache_loc:
- 49 (memory,cache) = write_data_to_cache(memory,address,cache):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement