CohereSim: A Bus-based Cache Simulator  v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
main.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "typedefs.h"
7 
12 void getConfig(int argc, char* argv[], cache_config& config);
13 
20 size_t getTrace(int argc, char* argv[], std::ifstream& trace_file, int arg_max_count);
21 
23 void printStatsHeader();
24 
28 void readConfigurations(std::vector<cache_config>& configs, char* configs_file_path);
void printStatsHeader()
Print the header row in the statistics output CSV.
Definition: main.cc:153
size_t getTrace(int argc, char *argv[], std::ifstream &trace_file, int arg_max_count)
Open the trace file and read the trace limit.
Definition: main.cc:91
void readConfigurations(std::vector< cache_config > &configs, char *configs_file_path)
Parse the cache configurations from the given configs file.
Definition: main.cc:108
void getConfig(int argc, char *argv[], cache_config &config)
Parse the given arguments into a memory system configuration.
Definition: main.cc:47
Configuration for an individual memory system.
Definition: typedefs.h:164
Global type definitions.