Miscellaneous scripts
This repository contains miscellaneous scripts that does not fit in one repository, yet I will use them sometimes for my personal use. Note that some of the scripts might contain hardcoded paths and opinionated presets, and you are advised to inspect them before actually using.
|
Functions | |
tuple | add_cache (list[dict] cache, int block, int history, int miss) |
tuple | direct_map_add_cache (list[dict] cache, int block, int history, int miss) |
Variables | |
list | cache = [{}, {}, {}, {}, {}, {}, {}, {}] |
int | counter = 1 |
int | miss = 0 |
tuple cache_memory.add_cache | ( | list[dict] | cache, |
int | block, | ||
int | history, | ||
int | miss ) |
Definition at line 1 of file cache_memory.py.
tuple cache_memory.direct_map_add_cache | ( | list[dict] | cache, |
int | block, | ||
int | history, | ||
int | miss ) |
Definition at line 20 of file cache_memory.py.
list cache_memory.cache = [{}, {}, {}, {}, {}, {}, {}, {}] |
Definition at line 33 of file cache_memory.py.
int cache_memory.counter = 1 |
Definition at line 31 of file cache_memory.py.
int cache_memory.miss = 0 |
Definition at line 32 of file cache_memory.py.