Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Last active August 29, 2015 14:10
Show Gist options
  • Save goyalankit/219d16b63aaf807e7f14 to your computer and use it in GitHub Desktop.
Save goyalankit/219d16b63aaf807e7f14 to your computer and use it in GitHub Desktop.

All addresses map to set 0 of the cache.

1168214315068
1168214319164
1168214323260
1168214327356
1168214331452
1168214335548
1168214339644
1168214343740
1168214347836
1168214351932
1168214356028
1168214360124
1168214364220
--------------------------------
Cache created successfully
Cache size:      32768 bytes
Line length:     64 bytes
Number of lines: 512
Associativity:   8
Number of sets:  64
Offset length:   6 bits
Set length:      6 bits
Replacem policy: lru
Memory required: 4168 bytes
Cache initialized successfully
--------------------------------
Ok!
--------------------------------
Cache hits:     0
Cache misses:   13
Total accesses: 13
Cache finalized successfully
--------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment