Look at the function parameters. That is your hint.
You first need to fill get_block_size, get_cache_size and then get_cache_assoc.
get_cache_size needs block_Size which will be passed by us in as a parameter
get_cache_assoc only needs to know the cache_size which again we pass in as a parameter
For get_cache_assoc. Think conflict misses; how can you access the cache to create conflict misses.
How do you detect whether a miss (i.e., access_cache() returned false). and that was due to a conflict miss (as opposed to a capacity miss).
See this video
- Think how can you separate between