OpenASIP
2.2
Loading...
Searching...
No Matches
src
procgen
HDBEditor
RFArchitectureDialog.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 RFArchitectureDialog.hh
26
*
27
* Declaration of RFArchParamtersDialog 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_ARCHITECTURE_DIALOG_HH
34
#define TTA_RF_ARCHITECTURE_DIALOG_HH
35
36
#include <wx/wx.h>
37
38
namespace
HDB
{
39
class
RFArchitecture;
40
}
41
42
43
/**
44
* Dialog for defining RF architecture paramters to HDB.
45
*/
46
class
RFArchitectureDialog
:
public
wxDialog {
47
public
:
48
RFArchitectureDialog
(
49
wxWindow* parent, wxWindowID
id
,
HDB::RFArchitecture
& arch);
50
virtual
~RFArchitectureDialog
();
51
52
private
:
53
void
onOK
(wxCommandEvent& event);
54
wxSizer*
createContents
(wxWindow* parent,
bool
call_fit,
bool
set_sizer);
55
void
update
();
56
57
/// Widget IDs.
58
enum
{
59
ID_LABEL_SIZE
= 10000,
60
ID_SIZE
,
61
ID_LABEL_WIDTH
,
62
ID_WIDTH
,
63
ID_LABEL_READ_PORTS
,
64
ID_READ_PORTS
,
65
ID_LABEL_WRITE_PORTS
,
66
ID_WRITE_PORTS
,
67
ID_LABEL_BIDIR_PORTS
,
68
ID_BIDIR_PORTS
,
69
ID_LABEL_MAX_READS
,
70
ID_MAX_READS
,
71
ID_LABEL_MAX_WRITES
,
72
ID_MAX_WRITES
,
73
ID_PARAM_WIDTH
,
74
ID_PARAM_SIZE
,
75
ID_GUARD_SUPPORT
,
76
ID_LINE
,
77
ID_ZERO_REGISTER
78
};
79
80
HDB::RFArchitecture
&
arch_
;
81
82
int
size_
;
83
int
width_
;
84
int
readPorts_
;
85
int
writePorts_
;
86
int
bidirPorts_
;
87
int
maxReads_
;
88
int
maxWrites_
;
89
int
latency_
;
90
bool
guardSupport_
;
91
bool
paramWidth_
;
92
bool
paramSize_
;
93
bool
zeroRegister_
;
94
95
DECLARE_EVENT_TABLE()
96
};
97
98
#endif
HDB::RFArchitecture
Definition
RFArchitecture.hh:50
RFArchitectureDialog
Definition
RFArchitectureDialog.hh:46
RFArchitectureDialog::update
void update()
RFArchitectureDialog::zeroRegister_
bool zeroRegister_
Definition
RFArchitectureDialog.hh:93
RFArchitectureDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Definition
RFArchitectureDialog.cc:134
RFArchitectureDialog::paramSize_
bool paramSize_
Definition
RFArchitectureDialog.hh:92
RFArchitectureDialog::bidirPorts_
int bidirPorts_
Definition
RFArchitectureDialog.hh:86
RFArchitectureDialog::maxWrites_
int maxWrites_
Definition
RFArchitectureDialog.hh:88
RFArchitectureDialog::readPorts_
int readPorts_
Definition
RFArchitectureDialog.hh:84
RFArchitectureDialog::onOK
void onOK(wxCommandEvent &event)
Definition
RFArchitectureDialog.cc:107
RFArchitectureDialog::guardSupport_
bool guardSupport_
Definition
RFArchitectureDialog.hh:90
RFArchitectureDialog::latency_
int latency_
Definition
RFArchitectureDialog.hh:89
RFArchitectureDialog::maxReads_
int maxReads_
Definition
RFArchitectureDialog.hh:87
RFArchitectureDialog::arch_
HDB::RFArchitecture & arch_
Definition
RFArchitectureDialog.hh:80
RFArchitectureDialog::~RFArchitectureDialog
virtual ~RFArchitectureDialog()
Definition
RFArchitectureDialog.cc:99
RFArchitectureDialog::paramWidth_
bool paramWidth_
Definition
RFArchitectureDialog.hh:91
RFArchitectureDialog::ID_ZERO_REGISTER
@ ID_ZERO_REGISTER
Definition
RFArchitectureDialog.hh:77
RFArchitectureDialog::ID_WIDTH
@ ID_WIDTH
Definition
RFArchitectureDialog.hh:62
RFArchitectureDialog::ID_GUARD_SUPPORT
@ ID_GUARD_SUPPORT
Definition
RFArchitectureDialog.hh:75
RFArchitectureDialog::ID_SIZE
@ ID_SIZE
Definition
RFArchitectureDialog.hh:60
RFArchitectureDialog::ID_WRITE_PORTS
@ ID_WRITE_PORTS
Definition
RFArchitectureDialog.hh:66
RFArchitectureDialog::ID_LABEL_WRITE_PORTS
@ ID_LABEL_WRITE_PORTS
Definition
RFArchitectureDialog.hh:65
RFArchitectureDialog::ID_LABEL_MAX_READS
@ ID_LABEL_MAX_READS
Definition
RFArchitectureDialog.hh:69
RFArchitectureDialog::ID_LABEL_WIDTH
@ ID_LABEL_WIDTH
Definition
RFArchitectureDialog.hh:61
RFArchitectureDialog::ID_MAX_WRITES
@ ID_MAX_WRITES
Definition
RFArchitectureDialog.hh:72
RFArchitectureDialog::ID_LABEL_BIDIR_PORTS
@ ID_LABEL_BIDIR_PORTS
Definition
RFArchitectureDialog.hh:67
RFArchitectureDialog::ID_LABEL_READ_PORTS
@ ID_LABEL_READ_PORTS
Definition
RFArchitectureDialog.hh:63
RFArchitectureDialog::ID_PARAM_SIZE
@ ID_PARAM_SIZE
Definition
RFArchitectureDialog.hh:74
RFArchitectureDialog::ID_MAX_READS
@ ID_MAX_READS
Definition
RFArchitectureDialog.hh:70
RFArchitectureDialog::ID_PARAM_WIDTH
@ ID_PARAM_WIDTH
Definition
RFArchitectureDialog.hh:73
RFArchitectureDialog::ID_LINE
@ ID_LINE
Definition
RFArchitectureDialog.hh:76
RFArchitectureDialog::ID_READ_PORTS
@ ID_READ_PORTS
Definition
RFArchitectureDialog.hh:64
RFArchitectureDialog::ID_BIDIR_PORTS
@ ID_BIDIR_PORTS
Definition
RFArchitectureDialog.hh:68
RFArchitectureDialog::ID_LABEL_SIZE
@ ID_LABEL_SIZE
Definition
RFArchitectureDialog.hh:59
RFArchitectureDialog::ID_LABEL_MAX_WRITES
@ ID_LABEL_MAX_WRITES
Definition
RFArchitectureDialog.hh:71
RFArchitectureDialog::size_
int size_
Definition
RFArchitectureDialog.hh:82
RFArchitectureDialog::writePorts_
int writePorts_
Definition
RFArchitectureDialog.hh:85
RFArchitectureDialog::width_
int width_
Definition
RFArchitectureDialog.hh:83
HDB
Definition
CostDatabase.hh:49
Generated by
1.9.8