OpenASIP  2.0
ProximConstants.cc
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2017 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file ProximConstants.cc
26  *
27  * Implementation of ProximConstants class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #include "ProximConstants.hh"
34 
35 const std::string ProximConstants::COMMAND_NAME_OPEN_PROGRAM = "Open Program";
36 const std::string ProximConstants::COMMAND_NAME_OPEN_MACHINE = "Open Machine";
37 const std::string ProximConstants::COMMAND_NAME_CD = "CD";
39  "Clear Console";
40 const std::string ProximConstants::COMMAND_NAME_SET_BP = "Set Breakpoint";
41 const std::string ProximConstants::COMMAND_NAME_QUIT = "Quit";
42 const std::string ProximConstants::COMMAND_NAME_ABOUT = "About";
43 const std::string ProximConstants::COMMAND_NAME_RUN = "Run";
44 const std::string ProximConstants::COMMAND_NAME_STEPI = "StepI";
45 const std::string ProximConstants::COMMAND_NAME_NEXTI = "NextI";
46 const std::string ProximConstants::COMMAND_NAME_UNTIL = "Until";
47 const std::string ProximConstants::COMMAND_NAME_KILL = "Kill";
48 const std::string ProximConstants::COMMAND_NAME_RESUME = "Resume";
50  "New Register Window";
52  "New Port Window";
54  "Simulator Settings";
55 const std::string ProximConstants::COMMAND_NAME_EDIT_OPTIONS = "Options";
56 const std::string ProximConstants::COMMAND_NAME_EXECUTE_FILE = "Execute File";
57 const std::string ProximConstants::COMMAND_NAME_FIND=
58  "Find";
59 
60 const std::string ProximConstants::SCL_LOAD_PROGRAM = "prog";
61 const std::string ProximConstants::SCL_LOAD_MACHINE = "mach";
62 const std::string ProximConstants::SCL_LOAD_CONF = "conf";
63 const std::string ProximConstants::SCL_SET_BREAKPOINT = "bp";
64 const std::string ProximConstants::SCL_SET_TEMP_BP = "tbp";
65 const std::string ProximConstants::SCL_ADD_WATCH = "watch";
66 const std::string ProximConstants::SCL_SET_CONDITION = "condition";
67 const std::string ProximConstants::SCL_SET_IGNORE_COUNT = "ignore";
68 const std::string ProximConstants::SCL_SET = "setting";
69 const std::string ProximConstants::SCL_DELIM = ";";
70 const std::string ProximConstants::SCL_QUIT = "quit";
71 const std::string ProximConstants::SCL_RUN_UNTIL = "until";
72 const std::string ProximConstants::SCL_NEXT_INSTRUCTION = "nexti";
73 const std::string ProximConstants::SCL_STEP_INSTRUCTION = "stepi";
74 const std::string ProximConstants::SCL_INFO_REGISTERS = "info registers";
75 const std::string ProximConstants::SCL_INFO_IMMEDIATES = "info immediates";
76 
77 const std::string ProximConstants::SCL_SETTING_EXEC_TRACE = "execution_trace";
78 const std::string ProximConstants::SCL_SETTING_BUS_TRACE = "bus_trace";
80  "procedure_transfer_tracking";
81 const std::string ProximConstants::SCL_SETTING_RF_TRACE = "rf_tracking";
83  "fu_conflict_detection";
84 
85 const std::string ProximConstants::SCL_SETTING_HISTORY_SAVE = "history_save";
86 const std::string ProximConstants::SCL_SETTING_HISTORY_SIZE = "history_size";
88  "history_filename";
89 
91  "profile_data_saving";
93  "utilization_data_saving";
95  "next_instruction_printing";
97  "simulation_time_statistics";
98 
99 const std::string ProximConstants::MACH_WIN_FU_LABEL = "Function unit: ";
100 const std::string ProximConstants::MACH_WIN_FU_PORT_LABEL =
101  "Function Unit Port: ";
102 
103 const std::string ProximConstants::MACH_WIN_PORT_LABEL = "Port: ";
104 const std::string ProximConstants::MACH_WIN_SOCKET_LABEL = "Socket: ";
105 const std::string ProximConstants::MACH_WIN_BUS_LABEL = "Bus: ";
106 const std::string ProximConstants::MACH_WIN_RF_LABEL = "Register file: ";
107 const std::string ProximConstants::MACH_WIN_IU_LABEL = "Immediate unit: ";
108 const std::string ProximConstants::MACH_WIN_GCU_LABEL = "Global Control Unit";
110  "Trigger count: ";
111 const std::string ProximConstants::MACH_WIN_BUS_VALUE_LABEL = "Value: ";
112 const std::string ProximConstants::MACH_WIN_BUS_WRITES_LABEL = "Bus writes: ";
114  "Socket writes: ";
115 
117  "Operation executions: ";
118 
119 const std::string ProximConstants::MACH_WIN_PORTS_TITLE = "Ports:";
120 const std::string ProximConstants::MACH_WIN_REGISTERS_TITLE = "Registers:";
122  "Immediate registers:";
123 
125  _T("Component details:");
127  _T("Component utilization:");
128 
129 
130 const std::string ProximConstants::CONFIGURATION_NAME = "proxim-configuration";
131 const std::string ProximConstants::PROXIM_TITLE = "TTA Processor Simulator";
132 const std::string ProximConstants::PROXIM_VERSION = "?.?";
133 
134 const wxString ProximConstants::PROXIM_COPYRIGHT =
135  _T("Portions of this program are copyright\n"
136  "\n"
137  "Xerces (c) 1999-2005 The Apache Software\n"
138  "wxWidgets (c) 1998 Julian Smart, Robert Roebling \n"
139  "Tcl (c) 1998-1999 by Scriptics Corporation\n"
140  "Editline (c) 1997 The NetBSD Foundation, Inc.\n"
141  "Boost C++ Libraries (c) 2003 Beman Dawes, David Abrahams\n"
142  "\n"
143  "For more information see User manual chapter \"Copyright notices\""
144  );
ProximConstants::COMMAND_NAME_NEXTI
static const std::string COMMAND_NAME_NEXTI
Name of the next instruction command.
Definition: ProximConstants.hh:122
ProximConstants::SCL_DELIM
static const std::string SCL_DELIM
Command delimeter for the simulator commands.
Definition: ProximConstants.hh:202
ProximConstants::SCL_INFO_IMMEDIATES
static const std::string SCL_INFO_IMMEDIATES
Command for displaying immediate unit info.
Definition: ProximConstants.hh:171
ProximConstants::COMMAND_NAME_CLEAR_CONSOLE
static const std::string COMMAND_NAME_CLEAR_CONSOLE
Name of the clear console command.
Definition: ProximConstants.hh:110
ProximConstants::SCL_NEXT_INSTRUCTION
static const std::string SCL_NEXT_INSTRUCTION
Command for advancing simulation to the next instruction in the prog.
Definition: ProximConstants.hh:167
ProximConstants::MACH_WIN_UTILIZATION_TITLE
static const wxString MACH_WIN_UTILIZATION_TITLE
Execution count title for the machine state window.
Definition: ProximConstants.hh:244
ProximConstants::COMMAND_NAME_NEW_PORT_WINDOW
static const std::string COMMAND_NAME_NEW_PORT_WINDOW
Name of the new port window command.
Definition: ProximConstants.hh:132
ProximConstants::SCL_SETTING_RF_TRACE
static const std::string SCL_SETTING_RF_TRACE
Name of the rf access trace setting.
Definition: ProximConstants.hh:183
ProximConstants::CONFIGURATION_NAME
static const std::string CONFIGURATION_NAME
Configuration file top-level element name.
Definition: ProximConstants.hh:247
ProximConstants::COMMAND_NAME_SET_BP
static const std::string COMMAND_NAME_SET_BP
Name of the set breakpoint command.
Definition: ProximConstants.hh:112
ProximConstants::SCL_SET
static const std::string SCL_SET
Command for configuring simulator settings.
Definition: ProximConstants.hh:174
ProximConstants::MACH_WIN_BUS_WRITES_LABEL
static const std::string MACH_WIN_BUS_WRITES_LABEL
Label for the machine state window bus write count..
Definition: ProximConstants.hh:224
ProximConstants::COMMAND_NAME_OPEN_PROGRAM
static const std::string COMMAND_NAME_OPEN_PROGRAM
Name of the open program command.
Definition: ProximConstants.hh:104
ProximConstants::SCL_SET_IGNORE_COUNT
static const std::string SCL_SET_IGNORE_COUNT
Command for setting stop point ignore count.
Definition: ProximConstants.hh:159
ProximConstants::COMMAND_NAME_QUIT
static const std::string COMMAND_NAME_QUIT
Name of the quit command.
Definition: ProximConstants.hh:114
ProximConstants::SCL_SETTING_FU_CONFLICT_DETECTION
static const std::string SCL_SETTING_FU_CONFLICT_DETECTION
Name of the fu conflict detection setting.
Definition: ProximConstants.hh:185
ProximConstants::COMMAND_NAME_EDIT_OPTIONS
static const std::string COMMAND_NAME_EDIT_OPTIONS
Name of the edit options command.
Definition: ProximConstants.hh:136
ProximConstants::PROXIM_TITLE
static const std::string PROXIM_TITLE
Application title.
Definition: ProximConstants.hh:250
ProximConstants::PROXIM_VERSION
static const std::string PROXIM_VERSION
Version string.
Definition: ProximConstants.hh:252
ProximConstants::MACH_WIN_EXECUTION_COUNT_LABEL
static const std::string MACH_WIN_EXECUTION_COUNT_LABEL
Execution count title for the machine state window.
Definition: ProximConstants.hh:229
ProximConstants::SCL_LOAD_MACHINE
static const std::string SCL_LOAD_MACHINE
Command for loading a new machine in the simulator.
Definition: ProximConstants.hh:147
ProximConstants::SCL_STEP_INSTRUCTION
static const std::string SCL_STEP_INSTRUCTION
Command for stepping an instruction.
Definition: ProximConstants.hh:165
ProximConstants::COMMAND_NAME_STEPI
static const std::string COMMAND_NAME_STEPI
Name of the step instruction command.
Definition: ProximConstants.hh:120
ProximConstants::COMMAND_NAME_KILL
static const std::string COMMAND_NAME_KILL
Name of the kill command.
Definition: ProximConstants.hh:126
ProximConstants::SCL_RUN_UNTIL
static const std::string SCL_RUN_UNTIL
Command for running until specified instruciton is encoutnered.
Definition: ProximConstants.hh:163
ProximConstants::MACH_WIN_BUS_LABEL
static const std::string MACH_WIN_BUS_LABEL
Label precing bus names in the machine state window.
Definition: ProximConstants.hh:216
ProximConstants::MACH_WIN_FU_PORT_LABEL
static const std::string MACH_WIN_FU_PORT_LABEL
Label precing function unit port names in the machine state window.
Definition: ProximConstants.hh:208
ProximConstants::MACH_WIN_RF_LABEL
static const std::string MACH_WIN_RF_LABEL
Label precing register file names in the machine state window.
Definition: ProximConstants.hh:214
ProximConstants::COMMAND_NAME_FIND
static const std::string COMMAND_NAME_FIND
Name of the find command.
Definition: ProximConstants.hh:140
ProximConstants::MACH_WIN_REGISTERS_TITLE
static const std::string MACH_WIN_REGISTERS_TITLE
Title for the machine state window register file register list.
Definition: ProximConstants.hh:237
ProximConstants::SCL_SETTING_NEXT_INSTRUCTION_PRINTING
static const std::string SCL_SETTING_NEXT_INSTRUCTION_PRINTING
Name of the fu next insturction printing setting.
Definition: ProximConstants.hh:191
ProximConstants::MACH_WIN_SOCKET_LABEL
static const std::string MACH_WIN_SOCKET_LABEL
Label precing socket names in the machine state window.
Definition: ProximConstants.hh:212
ProximConstants::MACH_WIN_BUS_VALUE_LABEL
static const std::string MACH_WIN_BUS_VALUE_LABEL
Label for the machine state window bus value.
Definition: ProximConstants.hh:222
ProximConstants::MACH_WIN_IMMEDIATES_TITLE
static const std::string MACH_WIN_IMMEDIATES_TITLE
Title for the machine state window immediate unit immediates list.
Definition: ProximConstants.hh:239
ProximConstants::MACH_WIN_TRIGGER_COUNT_LABEL
static const std::string MACH_WIN_TRIGGER_COUNT_LABEL
Trigger count label for the machine state window.
Definition: ProximConstants.hh:232
ProximConstants::SCL_SETTING_EXEC_TRACE
static const std::string SCL_SETTING_EXEC_TRACE
Name of the execution trace setting.
Definition: ProximConstants.hh:177
ProximConstants::COMMAND_NAME_OPEN_MACHINE
static const std::string COMMAND_NAME_OPEN_MACHINE
Name of the open machine command.
Definition: ProximConstants.hh:106
ProximConstants::COMMAND_NAME_SIMULATOR_SETTINGS
static const std::string COMMAND_NAME_SIMULATOR_SETTINGS
Name of the simulator settings command.
Definition: ProximConstants.hh:134
ProximConstants::COMMAND_NAME_UNTIL
static const std::string COMMAND_NAME_UNTIL
Name of the until command.
Definition: ProximConstants.hh:124
ProximConstants::COMMAND_NAME_RUN
static const std::string COMMAND_NAME_RUN
Name of the run command.
Definition: ProximConstants.hh:118
ProximConstants::COMMAND_NAME_CD
static const std::string COMMAND_NAME_CD
Name of the change directory command.
Definition: ProximConstants.hh:108
ProximConstants::SCL_SETTING_HISTORY_FILE
static const std::string SCL_SETTING_HISTORY_FILE
Name of the input history file name setting.
Definition: ProximConstants.hh:199
ProximConstants::MACH_WIN_IU_LABEL
static const std::string MACH_WIN_IU_LABEL
Label precing immediate unit names in the machine state window.
Definition: ProximConstants.hh:218
ProximConstants.hh
ProximConstants::SCL_SET_BREAKPOINT
static const std::string SCL_SET_BREAKPOINT
Command for setting breakpoints in the simulator control language.
Definition: ProximConstants.hh:151
ProximConstants::COMMAND_NAME_ABOUT
static const std::string COMMAND_NAME_ABOUT
Name of the about command.
Definition: ProximConstants.hh:116
ProximConstants::PROXIM_COPYRIGHT
static const wxString PROXIM_COPYRIGHT
Copyright string.
Definition: ProximConstants.hh:254
ProximConstants::SCL_INFO_REGISTERS
static const std::string SCL_INFO_REGISTERS
Command for displaying register file info.
Definition: ProximConstants.hh:169
ProximConstants::SCL_SETTING_HISTORY_SIZE
static const std::string SCL_SETTING_HISTORY_SIZE
Name of the input history size setting.
Definition: ProximConstants.hh:197
ProximConstants::SCL_QUIT
static const std::string SCL_QUIT
Command for quiting the simulation.
Definition: ProximConstants.hh:161
ProximConstants::MACH_WIN_GCU_LABEL
static const std::string MACH_WIN_GCU_LABEL
Label for the global control unit in the machine state window.
Definition: ProximConstants.hh:220
ProximConstants::SCL_SETTING_HISTORY_SAVE
static const std::string SCL_SETTING_HISTORY_SAVE
Name of the input history saving setting,.
Definition: ProximConstants.hh:195
ProximConstants::SCL_LOAD_PROGRAM
static const std::string SCL_LOAD_PROGRAM
Command for loading a new program in the simulator.
Definition: ProximConstants.hh:145
ProximConstants::SCL_SETTING_PROFILE_DATA_SAVING
static const std::string SCL_SETTING_PROFILE_DATA_SAVING
Name of the profile data saving setting.
Definition: ProximConstants.hh:187
ProximConstants::SCL_ADD_WATCH
static const std::string SCL_ADD_WATCH
Command for adding watches in the simulator control language.
Definition: ProximConstants.hh:155
ProximConstants::MACH_WIN_PORTS_TITLE
static const std::string MACH_WIN_PORTS_TITLE
Title for the machine state window ports list.
Definition: ProximConstants.hh:235
ProximConstants::MACH_WIN_FU_LABEL
static const std::string MACH_WIN_FU_LABEL
Label precing function unit names in the machine state window.
Definition: ProximConstants.hh:206
ProximConstants::SCL_SETTING_UTILIZATION_DATA_SAVING
static const std::string SCL_SETTING_UTILIZATION_DATA_SAVING
Name of the utilization data saving setting.
Definition: ProximConstants.hh:189
ProximConstants::COMMAND_NAME_RESUME
static const std::string COMMAND_NAME_RESUME
Name of the resume command.
Definition: ProximConstants.hh:128
ProximConstants::SCL_LOAD_CONF
static const std::string SCL_LOAD_CONF
Command for loading a new machine configuration file in the simulator.
Definition: ProximConstants.hh:149
ProximConstants::MACH_WIN_PORT_LABEL
static const std::string MACH_WIN_PORT_LABEL
Label precing port names in the machine state window.
Definition: ProximConstants.hh:210
ProximConstants::COMMAND_NAME_EXECUTE_FILE
static const std::string COMMAND_NAME_EXECUTE_FILE
Name of the execute file command.
Definition: ProximConstants.hh:138
ProximConstants::MACH_WIN_SOCKET_WRITES_LABEL
static const std::string MACH_WIN_SOCKET_WRITES_LABEL
Label for the machine state window socket write count.
Definition: ProximConstants.hh:226
ProximConstants::SCL_SET_CONDITION
static const std::string SCL_SET_CONDITION
Command for setting stop point condition in simulator control language.
Definition: ProximConstants.hh:157
ProximConstants::SCL_SETTING_BUS_TRACE
static const std::string SCL_SETTING_BUS_TRACE
Name of the bus trace setting.
Definition: ProximConstants.hh:179
ProximConstants::SCL_SETTING_SIMULATION_TIME_STATISTICS
static const std::string SCL_SETTING_SIMULATION_TIME_STATISTICS
Name of the simulation time statistics setting.
Definition: ProximConstants.hh:193
ProximConstants::SCL_SETTING_PROCEDURE_TRANSFER_TRACE
static const std::string SCL_SETTING_PROCEDURE_TRANSFER_TRACE
Name of the procedure transfer trace setting.
Definition: ProximConstants.hh:181
ProximConstants::SCL_SET_TEMP_BP
static const std::string SCL_SET_TEMP_BP
Command for setting temporary breakpointss in the sim.con.language.
Definition: ProximConstants.hh:153
ProximConstants::COMMAND_NAME_NEW_REGISTER_WINDOW
static const std::string COMMAND_NAME_NEW_REGISTER_WINDOW
Name of the new register window command.
Definition: ProximConstants.hh:130
ProximConstants::MACH_WIN_DETAILS_TITLE
static const wxString MACH_WIN_DETAILS_TITLE
Execution count title for the machine state window.
Definition: ProximConstants.hh:242