Skip to content

zahrasalarian/Cache-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache-Simulator

A cache simulator written in Python

Parameters that you can adjust:
• Total cache size
• Block size
• Unified vs. split I- and D-caches (Von Neumann. vs. Harvard)
• Associativity
• Write back vs. write through
• Write allocate vs. write no-allocate
Output:
• Number of instruction references
• Number of data references
• Number of instruction misses
• Number of data misses
• Number of words fetched from memory
• Number of words copied back to memory

The reference number specifies what type of memory reference is being performed with the following encoding:
0 Data load reference
1 Data store reference
2 Instruction load reference

Input format:
Input_format

To see more on input format check https://github.com/zahrasalarian/Cache-Simulator/tree/master/PubliclyAvailableTestCases/traces.

About

A cache simulator written in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages