OpenASIP 2.2
Loading...
Searching...
No Matches
ProximConstants.hh
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2016 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.hh
26 *
27 * Declaration 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#ifndef PROXIM_CONSTANTS_HH
34#define PROXIM_CONSTANTS_HH
35
36#include <wx/string.h>
37#include <string>
38
39// The wxWidgets reserved IDs are in the range wxID_LOWEST..wxID_HIGHEST
40// For reference on reserved IDs, see
41// http://www.wxwidgets.org/manuals/2.6/wx_stdevtid.html#stdevtid
42
43/**
44 * Collection of Proxim constants shared by all classes of the application.
45 */
47public:
48 /// Menu command IDs.
87
88 /// IDs for single instance simulator windows.
100
101 // Command names.
102 // ---
103 /// Name of the open program command.
104 static const std::string COMMAND_NAME_OPEN_PROGRAM;
105 /// Name of the open machine command.
106 static const std::string COMMAND_NAME_OPEN_MACHINE;
107 /// Name of the change directory command.
108 static const std::string COMMAND_NAME_CD;
109 /// Name of the clear console command.
110 static const std::string COMMAND_NAME_CLEAR_CONSOLE;
111 /// Name of the set breakpoint command.
112 static const std::string COMMAND_NAME_SET_BP;
113 /// Name of the quit command.
114 static const std::string COMMAND_NAME_QUIT;
115 /// Name of the about command.
116 static const std::string COMMAND_NAME_ABOUT;
117 /// Name of the run command.
118 static const std::string COMMAND_NAME_RUN;
119 /// Name of the step instruction command.
120 static const std::string COMMAND_NAME_STEPI;
121 /// Name of the next instruction command.
122 static const std::string COMMAND_NAME_NEXTI;
123 /// Name of the until command.
124 static const std::string COMMAND_NAME_UNTIL;
125 /// Name of the kill command.
126 static const std::string COMMAND_NAME_KILL;
127 /// Name of the resume command.
128 static const std::string COMMAND_NAME_RESUME;
129 /// Name of the new register window command.
130 static const std::string COMMAND_NAME_NEW_REGISTER_WINDOW;
131 /// Name of the new port window command.
132 static const std::string COMMAND_NAME_NEW_PORT_WINDOW;
133 /// Name of the simulator settings command.
134 static const std::string COMMAND_NAME_SIMULATOR_SETTINGS;
135 /// Name of the edit options command.
136 static const std::string COMMAND_NAME_EDIT_OPTIONS;
137 /// Name of the execute file command.
138 static const std::string COMMAND_NAME_EXECUTE_FILE;
139 /// Name of the find command
140 static const std::string COMMAND_NAME_FIND;
141
142 // Simulator Control Language commands.
143 // ---
144 /// Command for loading a new program in the simulator.
145 static const std::string SCL_LOAD_PROGRAM;
146 /// Command for loading a new machine in the simulator.
147 static const std::string SCL_LOAD_MACHINE;
148 /// Command for loading a new machine configuration file in the simulator.
149 static const std::string SCL_LOAD_CONF;
150 /// Command for setting breakpoints in the simulator control language.
151 static const std::string SCL_SET_BREAKPOINT;
152 /// Command for setting temporary breakpointss in the sim.con.language.
153 static const std::string SCL_SET_TEMP_BP;
154 /// Command for adding watches in the simulator control language.
155 static const std::string SCL_ADD_WATCH;
156 /// Command for setting stop point condition in simulator control language.
157 static const std::string SCL_SET_CONDITION;
158 /// Command for setting stop point ignore count.
159 static const std::string SCL_SET_IGNORE_COUNT;
160 /// Command for quiting the simulation.
161 static const std::string SCL_QUIT;
162 /// Command for running until specified instruciton is encoutnered.
163 static const std::string SCL_RUN_UNTIL;
164 /// Command for stepping an instruction.
165 static const std::string SCL_STEP_INSTRUCTION;
166 /// Command for advancing simulation to the next instruction in the prog.
167 static const std::string SCL_NEXT_INSTRUCTION;
168 /// Command for displaying register file info.
169 static const std::string SCL_INFO_REGISTERS;
170 /// Command for displaying immediate unit info.
171 static const std::string SCL_INFO_IMMEDIATES;
172
173 /// Command for configuring simulator settings.
174 static const std::string SCL_SET;
175
176 /// Name of the execution trace setting.
177 static const std::string SCL_SETTING_EXEC_TRACE;
178 /// Name of the bus trace setting.
179 static const std::string SCL_SETTING_BUS_TRACE;
180 /// Name of the procedure transfer trace setting.
181 static const std::string SCL_SETTING_PROCEDURE_TRANSFER_TRACE;
182 /// Name of the rf access trace setting.
183 static const std::string SCL_SETTING_RF_TRACE;
184 /// Name of the fu conflict detection setting.
185 static const std::string SCL_SETTING_FU_CONFLICT_DETECTION;
186 /// Name of the profile data saving setting.
187 static const std::string SCL_SETTING_PROFILE_DATA_SAVING;
188 /// Name of the utilization data saving setting.
189 static const std::string SCL_SETTING_UTILIZATION_DATA_SAVING;
190 /// Name of the fu next insturction printing setting.
192 /// Name of the simulation time statistics setting.
194 /// Name of the input history saving setting,
195 static const std::string SCL_SETTING_HISTORY_SAVE;
196 /// Name of the input history size setting.
197 static const std::string SCL_SETTING_HISTORY_SIZE;
198 /// Name of the input history file name setting.
199 static const std::string SCL_SETTING_HISTORY_FILE;
200
201 /// Command delimeter for the simulator commands.
202 static const std::string SCL_DELIM;
203
204 // Machine window labels.
205 /// Label precing function unit names in the machine state window.
206 static const std::string MACH_WIN_FU_LABEL;
207 /// Label precing function unit port names in the machine state window.
208 static const std::string MACH_WIN_FU_PORT_LABEL;
209 /// Label precing port names in the machine state window.
210 static const std::string MACH_WIN_PORT_LABEL;
211 /// Label precing socket names in the machine state window.
212 static const std::string MACH_WIN_SOCKET_LABEL;
213 /// Label precing register file names in the machine state window.
214 static const std::string MACH_WIN_RF_LABEL;
215 /// Label precing bus names in the machine state window.
216 static const std::string MACH_WIN_BUS_LABEL;
217 /// Label precing immediate unit names in the machine state window.
218 static const std::string MACH_WIN_IU_LABEL;
219 /// Label for the global control unit in the machine state window.
220 static const std::string MACH_WIN_GCU_LABEL;
221 /// Label for the machine state window bus value.
222 static const std::string MACH_WIN_BUS_VALUE_LABEL;
223 /// Label for the machine state window bus write count..
224 static const std::string MACH_WIN_BUS_WRITES_LABEL;
225 /// Label for the machine state window socket write count.
226 static const std::string MACH_WIN_SOCKET_WRITES_LABEL;
227
228 /// Execution count title for the machine state window.
229 static const std::string MACH_WIN_EXECUTION_COUNT_LABEL;
230
231 /// Trigger count label for the machine state window.
232 static const std::string MACH_WIN_TRIGGER_COUNT_LABEL;
233
234 /// Title for the machine state window ports list.
235 static const std::string MACH_WIN_PORTS_TITLE;
236 /// Title for the machine state window register file register list.
237 static const std::string MACH_WIN_REGISTERS_TITLE;
238 /// Title for the machine state window immediate unit immediates list.
239 static const std::string MACH_WIN_IMMEDIATES_TITLE;
240
241 /// Execution count title for the machine state window.
242 static const wxString MACH_WIN_DETAILS_TITLE;
243 /// Execution count title for the machine state window.
244 static const wxString MACH_WIN_UTILIZATION_TITLE;
245
246 /// Configuration file top-level element name.
247 static const std::string CONFIGURATION_NAME;
248
249 /// Application title.
250 static const std::string PROXIM_TITLE;
251 /// Version string.
252 static const std::string PROXIM_VERSION;
253 /// Copyright string
254 static const wxString PROXIM_COPYRIGHT;
255};
256
257#endif
static const std::string SCL_SETTING_SIMULATION_TIME_STATISTICS
Name of the simulation time statistics setting.
static const std::string SCL_SETTING_FU_CONFLICT_DETECTION
Name of the fu conflict detection setting.
static const std::string COMMAND_NAME_SIMULATOR_SETTINGS
Name of the simulator settings command.
static const std::string MACH_WIN_BUS_LABEL
Label precing bus names in the machine state window.
static const std::string SCL_LOAD_PROGRAM
Command for loading a new program in the simulator.
static const std::string SCL_SET_CONDITION
Command for setting stop point condition in simulator control language.
simulatorWindowID
IDs for single instance simulator windows.
static const std::string SCL_SETTING_HISTORY_SIZE
Name of the input history size setting.
static const std::string MACH_WIN_SOCKET_WRITES_LABEL
Label for the machine state window socket write count.
static const std::string COMMAND_NAME_NEW_REGISTER_WINDOW
Name of the new register window command.
static const std::string SCL_SETTING_HISTORY_FILE
Name of the input history file name setting.
static const std::string COMMAND_NAME_ABOUT
Name of the about command.
static const std::string COMMAND_NAME_RESUME
Name of the resume command.
static const std::string SCL_INFO_REGISTERS
Command for displaying register file info.
static const std::string SCL_SETTING_RF_TRACE
Name of the rf access trace setting.
static const std::string COMMAND_NAME_RUN
Name of the run command.
static const std::string SCL_SET_IGNORE_COUNT
Command for setting stop point ignore count.
static const std::string COMMAND_NAME_CD
Name of the change directory command.
static const std::string MACH_WIN_BUS_WRITES_LABEL
Label for the machine state window bus write count..
static const std::string MACH_WIN_RF_LABEL
Label precing register file names in the machine state window.
static const std::string SCL_LOAD_CONF
Command for loading a new machine configuration file in the simulator.
static const std::string COMMAND_NAME_OPEN_PROGRAM
Name of the open program command.
static const std::string PROXIM_VERSION
Version string.
static const std::string COMMAND_NAME_SET_BP
Name of the set breakpoint command.
static const std::string SCL_SETTING_EXEC_TRACE
Name of the execution trace setting.
static const std::string MACH_WIN_GCU_LABEL
Label for the global control unit in the machine state window.
static const std::string COMMAND_NAME_NEXTI
Name of the next instruction command.
static const std::string SCL_SETTING_UTILIZATION_DATA_SAVING
Name of the utilization data saving setting.
static const std::string MACH_WIN_BUS_VALUE_LABEL
Label for the machine state window bus value.
static const std::string SCL_RUN_UNTIL
Command for running until specified instruciton is encoutnered.
static const std::string COMMAND_NAME_KILL
Name of the kill command.
static const std::string SCL_SETTING_HISTORY_SAVE
Name of the input history saving setting,.
static const std::string SCL_STEP_INSTRUCTION
Command for stepping an instruction.
static const std::string COMMAND_NAME_EDIT_OPTIONS
Name of the edit options command.
static const std::string SCL_SETTING_BUS_TRACE
Name of the bus trace setting.
static const std::string SCL_SETTING_NEXT_INSTRUCTION_PRINTING
Name of the fu next insturction printing setting.
static const std::string SCL_SET
Command for configuring simulator settings.
static const std::string MACH_WIN_FU_LABEL
Label precing function unit names in the machine state window.
static const std::string SCL_QUIT
Command for quiting the simulation.
static const std::string MACH_WIN_TRIGGER_COUNT_LABEL
Trigger count label for the machine state window.
static const std::string SCL_DELIM
Command delimeter for the simulator commands.
static const std::string MACH_WIN_EXECUTION_COUNT_LABEL
Execution count title for the machine state window.
static const std::string COMMAND_NAME_CLEAR_CONSOLE
Name of the clear console command.
static const std::string SCL_NEXT_INSTRUCTION
Command for advancing simulation to the next instruction in the prog.
static const wxString MACH_WIN_DETAILS_TITLE
Execution count title for the machine state window.
static const std::string MACH_WIN_FU_PORT_LABEL
Label precing function unit port names in the machine state window.
static const std::string COMMAND_NAME_QUIT
Name of the quit command.
static const std::string MACH_WIN_PORTS_TITLE
Title for the machine state window ports list.
static const std::string SCL_SET_BREAKPOINT
Command for setting breakpoints in the simulator control language.
static const std::string MACH_WIN_REGISTERS_TITLE
Title for the machine state window register file register list.
static const std::string MACH_WIN_SOCKET_LABEL
Label precing socket names in the machine state window.
CommandID
Menu command IDs.
static const std::string CONFIGURATION_NAME
Configuration file top-level element name.
static const std::string MACH_WIN_IMMEDIATES_TITLE
Title for the machine state window immediate unit immediates list.
static const std::string SCL_INFO_IMMEDIATES
Command for displaying immediate unit info.
static const std::string SCL_LOAD_MACHINE
Command for loading a new machine in the simulator.
static const wxString PROXIM_COPYRIGHT
Copyright string.
static const std::string COMMAND_NAME_STEPI
Name of the step instruction command.
static const std::string MACH_WIN_PORT_LABEL
Label precing port names in the machine state window.
static const std::string COMMAND_NAME_FIND
Name of the find command.
static const std::string SCL_SETTING_PROCEDURE_TRANSFER_TRACE
Name of the procedure transfer trace setting.
static const std::string SCL_SET_TEMP_BP
Command for setting temporary breakpointss in the sim.con.language.
static const wxString MACH_WIN_UTILIZATION_TITLE
Execution count title for the machine state window.
static const std::string PROXIM_TITLE
Application title.
static const std::string COMMAND_NAME_EXECUTE_FILE
Name of the execute file command.
static const std::string COMMAND_NAME_UNTIL
Name of the until command.
static const std::string SCL_ADD_WATCH
Command for adding watches in the simulator control language.
static const std::string SCL_SETTING_PROFILE_DATA_SAVING
Name of the profile data saving setting.
static const std::string MACH_WIN_IU_LABEL
Label precing immediate unit names in the machine state window.
static const std::string COMMAND_NAME_OPEN_MACHINE
Name of the open machine command.
static const std::string COMMAND_NAME_NEW_PORT_WINDOW
Name of the new port window command.