Skip to content

Simulation of CPU cache and branch predictor algorithms

License

Notifications You must be signed in to change notification settings

fantonatos/architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Caches and Branch Predictors

Simulation of direct access, set associative, and fully associative caches with write-on-miss and next-line-prefetch features.

Direct access is implemented as 1-way set associative cache and use the same code.

Tracefile Format

S 0x0022f5b4
S 0x0022f7d4
L 0x006328dc
L 0x7703d9c0
S 0x0022f4c0

Simulation of various branch prediction algorithms (always take, never take, bimodal, gshare, tournament).

Tracefile Format

0x7f4072aa223f NT 0x7f4072aa2280
0x7f4072aa224c NT 0x7f4072aa2280
0x7f4072aa225d T 0x7f4072aa2266
0x408839 NT 0x408e1c
0x40859b NT 0x408730
0x4085c1 T 0x4085cc

Both programs are multithreaded and fast. They simulate their respective hardware on the input provided from tracefiles. Tracefiles should have UNIX line endings.

About

Simulation of CPU cache and branch predictor algorithms

Topics

Resources

License

Stars

Watchers

Forks