OpenASIP
2.0
src
procgen
HDBEditor
RFPortImplementationDialog.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 RFPortImplementationDialog.hh
26
*
27
* Declaration of RFPortImplementationDialog class.
28
*
29
* @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_RF_PORT_IMPLEMENTATION_DIALOG_HH
34
#define TTA_RF_PORT_IMPLEMENTATION_DIALOG_HH
35
36
#include <wx/wx.h>
37
38
namespace
HDB
{
39
class
RFPortImplementation;
40
}
41
42
/**
43
* Dialog for editing register file port implementations.
44
*/
45
class
RFPortImplementationDialog
:
public
wxDialog {
46
public
:
47
RFPortImplementationDialog
(
48
wxWindow* parent, wxWindowID
id
,
49
HDB::RFPortImplementation
&
implementation
);
50
51
virtual
~RFPortImplementationDialog
();
52
private
:
53
54
void
onOK
(wxCommandEvent& event);
55
56
/// Enumerated IDs for dialog widgets.
57
enum
{
58
ID_LABEL_NAME
= 10000,
59
ID_NAME
,
60
ID_LABEL_LOAD_PORT
,
61
ID_LOAD_PORT
,
62
ID_LABEL_OPCODE_PORT
,
63
ID_OPCODE_PORT
,
64
ID_LABEL_OPCODE_PORT_WIDTH
,
65
ID_OPCODE_PORT_WIDTH
,
66
ID_DIRECTION
,
67
ID_LINE
68
};
69
70
/// Creates the dialog contents.
71
wxSizer*
createContents
(wxWindow* parent,
bool
call_fit,
bool
set_sizer);
72
73
/// FU port implementation to modify.
74
HDB::RFPortImplementation
&
port_
;
75
76
wxString
name_
;
77
wxString
loadPort_
;
78
wxString
opcodePort_
;
79
wxString
opcodePortWidth_
;
80
int
direction_
;
81
82
DECLARE_EVENT_TABLE()
83
};
84
85
#endif
RFPortImplementationDialog::ID_NAME
@ ID_NAME
Definition:
RFPortImplementationDialog.hh:59
RFPortImplementationDialog::ID_LABEL_LOAD_PORT
@ ID_LABEL_LOAD_PORT
Definition:
RFPortImplementationDialog.hh:60
HDB
Definition:
CostDatabase.hh:49
RFPortImplementationDialog::ID_LABEL_OPCODE_PORT
@ ID_LABEL_OPCODE_PORT
Definition:
RFPortImplementationDialog.hh:62
implementation
IDF::MachineImplementation * implementation
the implementation definition of the estimated processor
Definition:
EstimatorCmdLineUI.cc:61
RFPortImplementationDialog::RFPortImplementationDialog
RFPortImplementationDialog(wxWindow *parent, wxWindowID id, HDB::RFPortImplementation &implementation)
Definition:
RFPortImplementationDialog.cc:53
RFPortImplementationDialog::ID_LINE
@ ID_LINE
Definition:
RFPortImplementationDialog.hh:67
RFPortImplementationDialog::direction_
int direction_
Definition:
RFPortImplementationDialog.hh:80
RFPortImplementationDialog::onOK
void onOK(wxCommandEvent &event)
Definition:
RFPortImplementationDialog.cc:90
RFPortImplementationDialog::ID_OPCODE_PORT
@ ID_OPCODE_PORT
Definition:
RFPortImplementationDialog.hh:63
RFPortImplementationDialog::~RFPortImplementationDialog
virtual ~RFPortImplementationDialog()
Definition:
RFPortImplementationDialog.cc:83
RFPortImplementationDialog::ID_OPCODE_PORT_WIDTH
@ ID_OPCODE_PORT_WIDTH
Definition:
RFPortImplementationDialog.hh:65
RFPortImplementationDialog::opcodePort_
wxString opcodePort_
Definition:
RFPortImplementationDialog.hh:78
RFPortImplementationDialog
Definition:
RFPortImplementationDialog.hh:45
RFPortImplementationDialog::ID_DIRECTION
@ ID_DIRECTION
Definition:
RFPortImplementationDialog.hh:66
HDB::RFPortImplementation
Definition:
RFPortImplementation.hh:43
RFPortImplementationDialog::loadPort_
wxString loadPort_
Definition:
RFPortImplementationDialog.hh:77
RFPortImplementationDialog::ID_LABEL_OPCODE_PORT_WIDTH
@ ID_LABEL_OPCODE_PORT_WIDTH
Definition:
RFPortImplementationDialog.hh:64
RFPortImplementationDialog::opcodePortWidth_
wxString opcodePortWidth_
Definition:
RFPortImplementationDialog.hh:79
RFPortImplementationDialog::port_
HDB::RFPortImplementation & port_
FU port implementation to modify.
Definition:
RFPortImplementationDialog.hh:74
RFPortImplementationDialog::ID_LABEL_NAME
@ ID_LABEL_NAME
Definition:
RFPortImplementationDialog.hh:58
RFPortImplementationDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Creates the dialog contents.
Definition:
RFPortImplementationDialog.cc:128
RFPortImplementationDialog::ID_LOAD_PORT
@ ID_LOAD_PORT
Definition:
RFPortImplementationDialog.hh:61
RFPortImplementationDialog::name_
wxString name_
Definition:
RFPortImplementationDialog.hh:76
Generated by
1.8.17