OpenASIP  2.0
Public Member Functions | List of all members
CompiledSimSettingCommand Class Reference

#include <CompiledSimSettingCommand.hh>

Inheritance diagram for CompiledSimSettingCommand:
Inheritance graph
Collaboration diagram for CompiledSimSettingCommand:
Collaboration graph

Public Member Functions

 CompiledSimSettingCommand ()
 
virtual ~CompiledSimSettingCommand ()
 
- Public Member Functions inherited from SettingCommand
 SettingCommand ()
 
virtual ~SettingCommand ()
 
virtual bool execute (const std::vector< DataObject > &arguments)
 
virtual std::string helpText () const
 
- Public Member Functions inherited from SimControlLanguageCommand
 SimControlLanguageCommand (const std::string &name)
 
virtual ~SimControlLanguageCommand ()
 
SimulatorFrontendsimulatorFrontend ()
 
const SimulatorFrontendsimulatorFrontendConst ()
 
virtual void printNextInstruction ()
 
virtual void printStopInformation ()
 
virtual void printStopReasons ()
 
virtual bool printBreakpointInfo (unsigned int breakpointHandle)
 
virtual void printSimulationTime ()
 
virtual std::ostream & outputStream ()
 
bool checkSimulationInitialized ()
 
bool checkSimulationNotAlreadyRunning ()
 
bool checkSimulationStopped ()
 
bool checkSimulationEnded ()
 
bool checkProgramLoaded ()
 
bool checkMachineLoaded ()
 
InstructionAddress parseInstructionAddressExpression (const std::string &expression)
 
TTAProgram::Address parseDataAddressExpression (const std::string &expression)
 
bool parseBreakpoint (const std::vector< DataObject > &arguments, Breakpoint &target)
 
bool askConditionFromUser (TclConditionScript &target)
 
bool askExpressionFromUser (ExpressionScript &target)
 
bool verifyBreakpointHandles (const std::vector< DataObject > &arguments, std::size_t startIndex=1)
 
void setErrorMessage (const TCEString &errorMsg)
 
- Public Member Functions inherited from CustomCommand
 CustomCommand (std::string name)
 
 CustomCommand (const CustomCommand &cmd)
 
virtual ~CustomCommand ()
 
std::string name () const
 
void setContext (InterpreterContext *context)
 
InterpreterContextcontext () const
 
void setInterpreter (ScriptInterpreter *si)
 
ScriptInterpreterinterpreter () const
 
bool checkArgumentCount (int argumentCount, int minimum, int maximum)
 
bool checkIntegerArgument (const DataObject &argument)
 
bool checkPositiveIntegerArgument (const DataObject &argument)
 
bool checkUnsignedIntegerArgument (const DataObject &argument)
 
bool checkDoubleArgument (const DataObject &argument)
 

Additional Inherited Members

- Protected Types inherited from SettingCommand
typedef std::map< std::string, SimulatorSetting * > SettingMap
 container for simulator settings indexed by name More...
 
- Protected Member Functions inherited from SimControlLanguageCommand
bool setMemoryAddress (const std::string &addressString, std::string &addressSpaceName, std::size_t &memoryAddress)
 
bool setMemoryPointer (MemorySystem::MemoryPtr &memory, const std::string &addressSpaceName)
 
- Protected Attributes inherited from SettingCommand
SettingMap settings_
 storage for simulator settings More...
 

Detailed Description

Implementation of the "setting" command for the compiled simulator

Definition at line 41 of file CompiledSimSettingCommand.hh.

Constructor & Destructor Documentation

◆ CompiledSimSettingCommand()

CompiledSimSettingCommand::CompiledSimSettingCommand ( )

Default constructor

Definition at line 79 of file CompiledSimSettingCommand.cc.

79  :
80  SettingCommand() {
81 
82  // Remove unsupported settings
83  MapTools::deleteByKey(settings_, "rf_tracking");
84  MapTools::deleteByKey(settings_, "bus_trace");
85  MapTools::deleteByKey(settings_, "profile_data_saving");
86  MapTools::deleteByKey(settings_, "utilization_data_saving");
87 
88  // Replace FU conflict detection setting
89  MapTools::deleteByKey(settings_, "fu_conflict_detection");
90  settings_["fu_conflict_detection"] =
91  new TemplatedSimulatorSetting<
92  BooleanSetting, CompiledSimSetFUConflictDetection>(
95 }

References MapTools::deleteByKey(), SettingCommand::settings_, Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_SETTING_FU_CONFLICT_DETECTION.

Here is the call graph for this function:

◆ ~CompiledSimSettingCommand()

CompiledSimSettingCommand::~CompiledSimSettingCommand ( )
virtual

Default destructor

Definition at line 100 of file CompiledSimSettingCommand.cc.

100  {
101 }

The documentation for this class was generated from the following files:
SettingCommand::SettingCommand
SettingCommand()
Definition: SettingCommand.cc:666
Texts::TextGenerator::text
virtual boost::format text(int textId)
Definition: TextGenerator.cc:94
MapTools::deleteByKey
static void deleteByKey(MapType &aMap, const KeyType &aKey)
SettingCommand::settings_
SettingMap settings_
storage for simulator settings
Definition: SettingCommand.hh:80
SimulatorToolbox::textGenerator
static SimulatorTextGenerator & textGenerator()
Definition: SimulatorToolbox.cc:75
Texts::TXT_INTERP_SETTING_FU_CONFLICT_DETECTION
@ TXT_INTERP_SETTING_FU_CONFLICT_DETECTION
Definition: SimulatorTextGenerator.hh:151
CompiledSimSetFUConflictDetection
Definition: CompiledSimSettingCommand.cc:39