OpenASIP  2.0
ProximRegisterWindow.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2010 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 ProximRegisterWindow.hh
26  *
27  * Declaration of ProximRegisterWindow class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30  * @author Pekka Jääskeläinen 2010
31  * @note rating: red
32  */
33 
34 
35 #ifndef TTA_PROXIM_REGISTER_WINDOW_HH
36 #define TTA_PROXIM_REGISTER_WINDOW_HH
37 
38 #include "SimulatorEvent.hh"
39 #include "ProximUnitWindow.hh"
40 
41 namespace TTAMachine {
42  class RegisterFile;
43  class ImmediateUnit;
44 }
45 
46 class ProximMainFrame;
47 
48 /**
49  * Proxim subwindow which displays register values.
50  *
51  * This window listens to SimulatorEvents and updates the window
52  * contents automatically.
53  */
55 public:
56  ProximRegisterWindow(ProximMainFrame* parent, int id);
57  virtual ~ProximRegisterWindow();
58  void showRegisterFile(const std::string& name);
59  void showImmediateUnit(const std::string& name);
60 
61 private:
64  virtual void reinitialize();
65  virtual void update();
66 
67  /// Prefix for register files in the unit choicer.
68  static const std::string RF_PREFIX;
69  /// Prefix for immediate units in the unit choicer.
70  static const std::string IMM_PREFIX;
71 };
72 
73 #endif
ProximMainFrame
Definition: ProximMainFrame.hh:58
ProximRegisterWindow::loadImmediateUnit
void loadImmediateUnit(const TTAMachine::ImmediateUnit &iu)
Definition: ProximRegisterWindow.cc:205
SimulatorEvent.hh
ProximRegisterWindow::~ProximRegisterWindow
virtual ~ProximRegisterWindow()
Definition: ProximRegisterWindow.cc:93
ProximRegisterWindow::ProximRegisterWindow
ProximRegisterWindow(ProximMainFrame *parent, int id)
Definition: ProximRegisterWindow.cc:73
ProximUnitWindow.hh
ProximRegisterWindow::showImmediateUnit
void showImmediateUnit(const std::string &name)
Definition: ProximRegisterWindow.cc:265
ProximRegisterWindow
Definition: ProximRegisterWindow.hh:54
ProximRegisterWindow::reinitialize
virtual void reinitialize()
Definition: ProximRegisterWindow.cc:101
ProximUnitWindow
Definition: ProximUnitWindow.hh:51
ProximRegisterWindow::RF_PREFIX
static const std::string RF_PREFIX
Prefix for register files in the unit choicer.
Definition: ProximRegisterWindow.hh:68
ProximRegisterWindow::update
virtual void update()
Definition: ProximRegisterWindow.cc:133
ProximRegisterWindow::showRegisterFile
void showRegisterFile(const std::string &name)
Definition: ProximRegisterWindow.cc:252
ProximRegisterWindow::loadRegisterFile
void loadRegisterFile(const TTAMachine::RegisterFile &rf)
Definition: ProximRegisterWindow.cc:161
ProximRegisterWindow::IMM_PREFIX
static const std::string IMM_PREFIX
Prefix for immediate units in the unit choicer.
Definition: ProximRegisterWindow.hh:70
TTAMachine::RegisterFile
Definition: RegisterFile.hh:47
TTAMachine
Definition: Assembler.hh:48
TTAMachine::ImmediateUnit
Definition: ImmediateUnit.hh:50