OpenASIP  2.0
SimulatorSettingsDialog.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 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 SimulatorSettingsDialog.hh
26  *
27  * Declaration of SimulatorSettingsDialog class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_SIMULATOR_SETTINGS_DIALOG_HH
34 #define TTA_SIMULATOR_SETTINGS_DIALOG_HH
35 
36 #include <wx/wx.h>
37 
38 class SimulatorFrontend;
39 class ProximLineReader;
40 
41 /**
42  * Dialog for modifying simulator settings.
43  */
44 class SimulatorSettingsDialog : public wxDialog {
45 public:
47  wxWindow* parent,
48  wxWindowID id,
49  SimulatorFrontend& simulator,
50  ProximLineReader& lineReader);
51  virtual ~SimulatorSettingsDialog();
52 
53 private:
54  virtual bool TransferDataToWindow();
55  wxSizer* createContents(wxWindow* parent, bool set_sizer, bool call_fit);
56  void onOK(wxCommandEvent& event);
57 
58  /// Widget IDs.
59  enum {
60  ID_EXEC_TRACE = 10000,
74  };
75 
76  /// Frontend of the simulator to configure.
78  /// Line reader to configure
80 
81  /// Execution trace enabled/disabled.
82  bool execTrace_;
83  /// Bus trace enabled/disabled.
84  bool busTrace_;
85  /// Procedure transfer tracing enabled/disabled
86  bool ptTrace_;
87  /// Register file access tracing enabled/disabled.
88  bool rfTrace_;
89  /// FU conflict detection enabled/disabled.
91 
92  /// Profile data saving enabled/disabled
94  /// Utilization data saving enabled/disabled
96  /// Next instruction printing enabled/disabled
98  /// Profile data saving enabled/disabled
100 
101  /// Input history log file enabled/disabled.
103  /// History log max size.
105  /// History log file name.
106  wxString historyFile_;
107 
108  DECLARE_EVENT_TABLE()
109 };
110 #endif
SimulatorSettingsDialog::busTrace_
bool busTrace_
Bus trace enabled/disabled.
Definition: SimulatorSettingsDialog.hh:84
SimulatorSettingsDialog::ID_FU_CONFLICT_DETECTION
@ ID_FU_CONFLICT_DETECTION
Definition: SimulatorSettingsDialog.hh:64
SimulatorSettingsDialog::TransferDataToWindow
virtual bool TransferDataToWindow()
Definition: SimulatorSettingsDialog.cc:99
SimulatorSettingsDialog::~SimulatorSettingsDialog
virtual ~SimulatorSettingsDialog()
Definition: SimulatorSettingsDialog.cc:91
SimulatorSettingsDialog::historySize_
int historySize_
History log max size.
Definition: SimulatorSettingsDialog.hh:104
SimulatorSettingsDialog::ID_BUS_TRACE
@ ID_BUS_TRACE
Definition: SimulatorSettingsDialog.hh:61
SimulatorSettingsDialog::ID_SAVE_HISTORY
@ ID_SAVE_HISTORY
Definition: SimulatorSettingsDialog.hh:71
SimulatorSettingsDialog::historySave_
bool historySave_
Input history log file enabled/disabled.
Definition: SimulatorSettingsDialog.hh:102
SimulatorSettingsDialog::nextInstructionPrinting_
bool nextInstructionPrinting_
Next instruction printing enabled/disabled.
Definition: SimulatorSettingsDialog.hh:97
SimulatorSettingsDialog::historyFile_
wxString historyFile_
History log file name.
Definition: SimulatorSettingsDialog.hh:106
SimulatorSettingsDialog::ID_SIMULATION_TIME_STATISTICS
@ ID_SIMULATION_TIME_STATISTICS
Definition: SimulatorSettingsDialog.hh:69
SimulatorSettingsDialog::execTrace_
bool execTrace_
Execution trace enabled/disabled.
Definition: SimulatorSettingsDialog.hh:82
SimulatorSettingsDialog::simulator_
SimulatorFrontend & simulator_
Frontend of the simulator to configure.
Definition: SimulatorSettingsDialog.hh:77
SimulatorSettingsDialog::ID_LINE
@ ID_LINE
Definition: SimulatorSettingsDialog.hh:73
SimulatorSettingsDialog::ID_UTILIZATION_DATA_SAVING
@ ID_UTILIZATION_DATA_SAVING
Definition: SimulatorSettingsDialog.hh:67
SimulatorSettingsDialog::ID_NEXT_INSTRUCTION_PRINTING
@ ID_NEXT_INSTRUCTION_PRINTING
Definition: SimulatorSettingsDialog.hh:68
SimulatorSettingsDialog::ID_EXEC_TRACE
@ ID_EXEC_TRACE
Definition: SimulatorSettingsDialog.hh:60
SimulatorSettingsDialog::rfTrace_
bool rfTrace_
Register file access tracing enabled/disabled.
Definition: SimulatorSettingsDialog.hh:88
SimulatorSettingsDialog::ID_PROFILE_DATA_SAVING
@ ID_PROFILE_DATA_SAVING
Definition: SimulatorSettingsDialog.hh:66
SimulatorSettingsDialog
Definition: SimulatorSettingsDialog.hh:44
SimulatorSettingsDialog::profileDataSaving_
bool profileDataSaving_
Profile data saving enabled/disabled.
Definition: SimulatorSettingsDialog.hh:93
SimulatorSettingsDialog::ID_HISTORY_FILE
@ ID_HISTORY_FILE
Definition: SimulatorSettingsDialog.hh:72
ProximLineReader
Definition: ProximLineReader.hh:60
SimulatorSettingsDialog::SimulatorSettingsDialog
SimulatorSettingsDialog(wxWindow *parent, wxWindowID id, SimulatorFrontend &simulator, ProximLineReader &lineReader)
Definition: SimulatorSettingsDialog.cc:54
SimulatorSettingsDialog::ID_LABEL_HISTORY_SIZE
@ ID_LABEL_HISTORY_SIZE
Definition: SimulatorSettingsDialog.hh:65
SimulatorSettingsDialog::fuConflictDetection_
bool fuConflictDetection_
FU conflict detection enabled/disabled.
Definition: SimulatorSettingsDialog.hh:90
SimulatorSettingsDialog::simulationTimeStatistics_
bool simulationTimeStatistics_
Profile data saving enabled/disabled.
Definition: SimulatorSettingsDialog.hh:99
SimulatorSettingsDialog::createContents
wxSizer * createContents(wxWindow *parent, bool set_sizer, bool call_fit)
Definition: SimulatorSettingsDialog.cc:237
SimulatorSettingsDialog::utilizationDataSaving_
bool utilizationDataSaving_
Utilization data saving enabled/disabled.
Definition: SimulatorSettingsDialog.hh:95
SimulatorSettingsDialog::onOK
void onOK(wxCommandEvent &event)
Definition: SimulatorSettingsDialog.cc:127
SimulatorSettingsDialog::lineReader_
ProximLineReader & lineReader_
Line reader to configure.
Definition: SimulatorSettingsDialog.hh:79
SimulatorFrontend
Definition: SimulatorFrontend.hh:89
SimulatorSettingsDialog::ID_PT_TRACKING
@ ID_PT_TRACKING
Definition: SimulatorSettingsDialog.hh:62
SimulatorSettingsDialog::ptTrace_
bool ptTrace_
Procedure transfer tracing enabled/disabled.
Definition: SimulatorSettingsDialog.hh:86
SimulatorSettingsDialog::ID_RF_TRACKING
@ ID_RF_TRACKING
Definition: SimulatorSettingsDialog.hh:63
SimulatorSettingsDialog::ID_HISTORY_SIZE
@ ID_HISTORY_SIZE
Definition: SimulatorSettingsDialog.hh:70