OpenASIP  2.0
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:
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,
78  };
79 
81 
82  int size_;
83  int width_;
87  int maxReads_;
89  int latency_;
92  bool paramSize_;
94 
95  DECLARE_EVENT_TABLE()
96 };
97 
98 #endif
RFArchitectureDialog::ID_LABEL_SIZE
@ ID_LABEL_SIZE
Definition: RFArchitectureDialog.hh:59
RFArchitectureDialog::readPorts_
int readPorts_
Definition: RFArchitectureDialog.hh:84
RFArchitectureDialog::ID_PARAM_SIZE
@ ID_PARAM_SIZE
Definition: RFArchitectureDialog.hh:74
RFArchitectureDialog::paramWidth_
bool paramWidth_
Definition: RFArchitectureDialog.hh:91
RFArchitectureDialog::maxReads_
int maxReads_
Definition: RFArchitectureDialog.hh:87
HDB
Definition: CostDatabase.hh:49
RFArchitectureDialog::width_
int width_
Definition: RFArchitectureDialog.hh:83
RFArchitectureDialog::ID_LABEL_MAX_READS
@ ID_LABEL_MAX_READS
Definition: RFArchitectureDialog.hh:69
RFArchitectureDialog::size_
int size_
Definition: RFArchitectureDialog.hh:82
RFArchitectureDialog::ID_SIZE
@ ID_SIZE
Definition: RFArchitectureDialog.hh:60
RFArchitectureDialog::ID_MAX_WRITES
@ ID_MAX_WRITES
Definition: RFArchitectureDialog.hh:72
RFArchitectureDialog::createContents
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
Definition: RFArchitectureDialog.cc:134
RFArchitectureDialog::guardSupport_
bool guardSupport_
Definition: RFArchitectureDialog.hh:90
RFArchitectureDialog::ID_GUARD_SUPPORT
@ ID_GUARD_SUPPORT
Definition: RFArchitectureDialog.hh:75
RFArchitectureDialog::ID_LABEL_BIDIR_PORTS
@ ID_LABEL_BIDIR_PORTS
Definition: RFArchitectureDialog.hh:67
RFArchitectureDialog::update
void update()
RFArchitectureDialog::ID_MAX_READS
@ ID_MAX_READS
Definition: RFArchitectureDialog.hh:70
RFArchitectureDialog::~RFArchitectureDialog
virtual ~RFArchitectureDialog()
Definition: RFArchitectureDialog.cc:99
RFArchitectureDialog::bidirPorts_
int bidirPorts_
Definition: RFArchitectureDialog.hh:86
RFArchitectureDialog::ID_LINE
@ ID_LINE
Definition: RFArchitectureDialog.hh:76
RFArchitectureDialog::ID_LABEL_READ_PORTS
@ ID_LABEL_READ_PORTS
Definition: RFArchitectureDialog.hh:63
RFArchitectureDialog::ID_LABEL_WRITE_PORTS
@ ID_LABEL_WRITE_PORTS
Definition: RFArchitectureDialog.hh:65
RFArchitectureDialog::paramSize_
bool paramSize_
Definition: RFArchitectureDialog.hh:92
RFArchitectureDialog::arch_
HDB::RFArchitecture & arch_
Definition: RFArchitectureDialog.hh:80
RFArchitectureDialog::ID_WIDTH
@ ID_WIDTH
Definition: RFArchitectureDialog.hh:62
RFArchitectureDialog::ID_ZERO_REGISTER
@ ID_ZERO_REGISTER
Definition: RFArchitectureDialog.hh:77
HDB::RFArchitecture
Definition: RFArchitecture.hh:50
RFArchitectureDialog::ID_LABEL_WIDTH
@ ID_LABEL_WIDTH
Definition: RFArchitectureDialog.hh:61
RFArchitectureDialog::ID_BIDIR_PORTS
@ ID_BIDIR_PORTS
Definition: RFArchitectureDialog.hh:68
RFArchitectureDialog::maxWrites_
int maxWrites_
Definition: RFArchitectureDialog.hh:88
RFArchitectureDialog::ID_LABEL_MAX_WRITES
@ ID_LABEL_MAX_WRITES
Definition: RFArchitectureDialog.hh:71
RFArchitectureDialog
Definition: RFArchitectureDialog.hh:46
RFArchitectureDialog::RFArchitectureDialog
RFArchitectureDialog(wxWindow *parent, wxWindowID id, HDB::RFArchitecture &arch)
Definition: RFArchitectureDialog.cc:51
RFArchitectureDialog::ID_PARAM_WIDTH
@ ID_PARAM_WIDTH
Definition: RFArchitectureDialog.hh:73
RFArchitectureDialog::latency_
int latency_
Definition: RFArchitectureDialog.hh:89
RFArchitectureDialog::onOK
void onOK(wxCommandEvent &event)
Definition: RFArchitectureDialog.cc:107
RFArchitectureDialog::ID_READ_PORTS
@ ID_READ_PORTS
Definition: RFArchitectureDialog.hh:64
RFArchitectureDialog::writePorts_
int writePorts_
Definition: RFArchitectureDialog.hh:85
RFArchitectureDialog::zeroRegister_
bool zeroRegister_
Definition: RFArchitectureDialog.hh:93
RFArchitectureDialog::ID_WRITE_PORTS
@ ID_WRITE_PORTS
Definition: RFArchitectureDialog.hh:66