OpenASIP 2.2
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations
SimulatorConstants.hh File Reference
#include "BaseType.hh"
Include dependency graph for SimulatorConstants.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SIM_COMMAND_PROMPT   "(ttasim) "
 The command prompt of the simulator interpreter.
 
#define SIM_INTERP_QUIT_COMMAND   "quit"
 The command used to quit the command line interface.
 
#define SIM_INIT_FILE_NAME   ".ttasim-init"
 The initialization script file name.
 
#define SIM_DEFAULT_COMMAND_LOG   ".ttasim-history"
 The default command log file name.
 
#define SIM_CLI_TITLE   "ttasim - TTA simulator command line interface"
 The full title name of the CLI application.
 

Typedefs

typedef CycleCount ClockCycleCount
 Alias for ClockCycleCount.
 

Enumerations

enum  StopReason {
  SRE_AFTER_STEPPING , SRE_AFTER_UNTIL , SRE_AFTER_TIMEOUT , SRE_BREAKPOINT ,
  SRE_USER_REQUESTED , SRE_RUNTIME_ERROR
}
 The reasons to stop simulation. More...
 

Detailed Description

Definitions of constants and types used in simulator engine and its user interfaces.

Author
Pekka Jääskeläinen 2005 (pjaaskel-no.spam-cs.tut.fi)
Note
This file is used in compiled simulation. Keep dependencies clean
rating: red

Definition in file SimulatorConstants.hh.

Macro Definition Documentation

◆ SIM_CLI_TITLE

#define SIM_CLI_TITLE   "ttasim - TTA simulator command line interface"

The full title name of the CLI application.

Definition at line 54 of file SimulatorConstants.hh.

◆ SIM_COMMAND_PROMPT

#define SIM_COMMAND_PROMPT   "(ttasim) "

The command prompt of the simulator interpreter.

Definition at line 42 of file SimulatorConstants.hh.

◆ SIM_DEFAULT_COMMAND_LOG

#define SIM_DEFAULT_COMMAND_LOG   ".ttasim-history"

The default command log file name.

Definition at line 51 of file SimulatorConstants.hh.

◆ SIM_INIT_FILE_NAME

#define SIM_INIT_FILE_NAME   ".ttasim-init"

The initialization script file name.

Definition at line 48 of file SimulatorConstants.hh.

◆ SIM_INTERP_QUIT_COMMAND

#define SIM_INTERP_QUIT_COMMAND   "quit"

The command used to quit the command line interface.

Definition at line 45 of file SimulatorConstants.hh.

Typedef Documentation

◆ ClockCycleCount

Alias for ClockCycleCount.

Definition at line 57 of file SimulatorConstants.hh.

Enumeration Type Documentation

◆ StopReason

enum StopReason

The reasons to stop simulation.

Enumerator
SRE_AFTER_STEPPING 

Stopped after stepping the given count.

SRE_AFTER_UNTIL 

Stopped after running to the wanted.

SRE_AFTER_TIMEOUT 

Stopped after simulation timeout instruction.

SRE_BREAKPOINT 

Stopped because of at least one breakpoint.

SRE_USER_REQUESTED 

User requested the simulation to stop explicitly, e.g., by pressing ctrl-c in the CLI.

SRE_RUNTIME_ERROR 

A fatal runtime error occured in the simulated program.

Definition at line 60 of file SimulatorConstants.hh.

60 {
61 SRE_AFTER_STEPPING, ///< Stopped after stepping the given count.
62 SRE_AFTER_UNTIL, ///< Stopped after running to the wanted
63 SRE_AFTER_TIMEOUT, ///< Stopped after simulation timeout
64 /// instruction.
65 SRE_BREAKPOINT, ///< Stopped because of at least one breakpoint
66 SRE_USER_REQUESTED, ///< User requested the simulation to stop
67 /// explicitly, e.g., by pressing ctrl-c in the CLI.
68 SRE_RUNTIME_ERROR ///< A fatal runtime error occured in the simulated
69 /// program.
70};
@ SRE_AFTER_TIMEOUT
Stopped after simulation timeout instruction.
@ SRE_BREAKPOINT
Stopped because of at least one breakpoint.
@ SRE_USER_REQUESTED
User requested the simulation to stop explicitly, e.g., by pressing ctrl-c in the CLI.
@ SRE_AFTER_UNTIL
Stopped after running to the wanted.
@ SRE_AFTER_STEPPING
Stopped after stepping the given count.
@ SRE_RUNTIME_ERROR
A fatal runtime error occured in the simulated program.