|
CohereSim: A Bus-based Cache Simulator
v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
|
Declaration of the helper methods in main.cc. More...
#include "typedefs.h"

Go to the source code of this file.
Functions | |
| void | getConfig (int argc, char *argv[], cache_config &config) |
| Parse the given arguments into a memory system configuration. More... | |
| size_t | getTrace (int argc, char *argv[], std::ifstream &trace_file, int arg_max_count) |
| Open the trace file and read the trace limit. More... | |
| void | printStatsHeader () |
| Print the header row in the statistics output CSV. | |
| void | readConfigurations (std::vector< cache_config > &configs, char *configs_file_path) |
| Parse the cache configurations from the given configs file. More... | |
Declaration of the helper methods in main.cc.
| void getConfig | ( | int | argc, |
| char * | argv[], | ||
| cache_config & | config | ||
| ) |
Parse the given arguments into a memory system configuration.
| argc | The number of program arguments |
| argv | The array of program arguments |
| config | The configuration struct to populate |
| size_t getTrace | ( | int | argc, |
| char * | argv[], | ||
| std::ifstream & | trace_file, | ||
| int | arg_max_count | ||
| ) |
Open the trace file and read the trace limit.
| argc | The number of program arguments |
| argv | The array of program arguments |
| trace_file | An ifstream that will become the trace file |
| arg_max_count | The number of arguments when the trace limit argument is present |
| void readConfigurations | ( | std::vector< cache_config > & | configs, |
| char * | configs_file_path | ||
| ) |
Parse the cache configurations from the given configs file.
| configs | The vector to contain the configurations |
| configs_file_path | The file path to the configs file |