The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::app::DefaultValues Class Reference

Optional default values for the simulator which can be customized and provided by anyone instantiating the simulator at construction-time. More...

#include <SimulationConfiguration.hpp>

Public Types

enum class  RetiredInstPathStrictness { Strict , Relaxed }
 

Public Attributes

std::vector< std::string > arch_search_dirs = {""}
 
std::string arch_arg_default = ""
 
bool non_empty_arch_arg_required = false
 
std::string run_time_clock = ""
 
std::string inst_counter = ""
 
std::list< ParameterTemplateother_meta_params = {}
 
std::string auto_summary_default = "off"
 
std::pair< std::string, RetiredInstPathStrictnesspath_to_retired_inst_counter
 

Detailed Description

Optional default values for the simulator which can be customized and provided by anyone instantiating the simulator at construction-time.

Definition at line 39 of file SimulationConfiguration.hpp.

Member Enumeration Documentation

◆ RetiredInstPathStrictness

From "top.core*", what is the path to the counter specifying retired instructions on a given core? For instance,

Retired instruction counters: "top.core0.rob.stats.total_number_retired" "top.core1.rob.stats.total_number_retired"

Then the path_to_retired_inst_counter is: "rob.stats.total_number_retired"

Definition at line 97 of file SimulationConfiguration.hpp.

Member Data Documentation

◆ arch_arg_default

std::string sparta::app::DefaultValues::arch_arg_default = ""

Default for –arch. This is not processed by SimulationConfiguration as a user might supply a different arch on the command line

Definition at line 52 of file SimulationConfiguration.hpp.

◆ arch_search_dirs

std::vector<std::string> sparta::app::DefaultValues::arch_search_dirs = {""}

Default for architecture search directory (–arch-search-dir)

Definition at line 45 of file SimulationConfiguration.hpp.

◆ auto_summary_default

std::string sparta::app::DefaultValues::auto_summary_default = "off"

Set the default value for the auto_summary flag. Values: "on" or "normal" – write summary after simulation run "verbose" – write summary after simulation run with description "off" – do nothing

Definition at line 84 of file SimulationConfiguration.hpp.

◆ inst_counter

std::string sparta::app::DefaultValues::inst_counter = ""

Default name of instruction counter used to run by icount and instruction-based debug triggers

Definition at line 69 of file SimulationConfiguration.hpp.

◆ non_empty_arch_arg_required

bool sparta::app::DefaultValues::non_empty_arch_arg_required = false

is an –arch option required for command line parsing to succeed?

Definition at line 57 of file SimulationConfiguration.hpp.

◆ other_meta_params

std::list<ParameterTemplate> sparta::app::DefaultValues::other_meta_params = {}

Meta-parameters. Simulators can provide a list of parameter templates which will be added to the meta parameters set.

Definition at line 75 of file SimulationConfiguration.hpp.

◆ path_to_retired_inst_counter

std::pair<std::string, RetiredInstPathStrictness> sparta::app::DefaultValues::path_to_retired_inst_counter
Initial value:
=
std::make_pair("rob.stats.total_number_retired",
RetiredInstPathStrictness::Relaxed)

Definition at line 100 of file SimulationConfiguration.hpp.

◆ run_time_clock

std::string sparta::app::DefaultValues::run_time_clock = ""

Default name of clock used to run by cycles (-r) if not overridden by users

Definition at line 63 of file SimulationConfiguration.hpp.


The documentation for this class was generated from the following file: