OpenASIP  2.0
PIGCmdLineOptions.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 PIGCmdLineOptions.hh
26  *
27  * Declaration of PIGCmdLineOptions class.
28  *
29  * @author Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_PIG_CMD_LINE_OPTIONS_HH
34 #define TTA_PIG_CMD_LINE_OPTIONS_HH
35 
36 #include "CmdLineOptions.hh"
37 
38 /**
39  * Command line options for the command line interface of PIG (generatebits).
40  */
42 public:
44  virtual ~PIGCmdLineOptions();
45 
46  std::string bemFile() const;
47  int tpefFileCount() const;
48  std::string tpefFile(int index) const;
49  std::string programImageOutputFormat() const;
50  std::string dataImageOutputFormat() const;
51  std::string compressorPlugin() const;
52  int dataMemoryWidthInMAUs() const;
53  bool generateDataImages() const;
54  bool generateDecompressor() const;
55  int compressorParameterCount() const;
56  std::string compressorParameter(int index) const;
57  bool showCompressors() const;
58  std::string progeOutputDirectory() const;
59  std::string entityName() const;
60 
61  virtual void printVersion() const;
62  virtual void printHelp() const;
63  void printUsage() const;
64 
65 private:
66  /// Long name of the BEM file parameter.
67  static const std::string BEM_PARAM_NAME;
68  /// Long name of the TPEF file parameter.
69  static const std::string TPEF_PARAM_NAME;
70  /// Long name of the program image output format parameter.
71  static const std::string PI_FORMAT_PARAM_NAME;
72  /// Long name of the data image output format parameter.
73  static const std::string DI_FORMAT_PARAM_NAME;
74  /// Long name of the plugin file parameter.
75  static const std::string COMPRESSOR_PARAM_NAME;
76  /// Long name of the parameter that defines whether to create data
77  /// images.
78  static const std::string DATA_IMG_PARAM_NAME;
79  /// Long name of the parameter that tells whether to generate
80  /// decompressor or not.
81  static const std::string GEN_DECOMP_PARAM_NAME;
82  /// Long name of the parameter that tells the width of data mem in MAUs.
83  static const std::string DMEM_WIDTH_IN_MAUS_PARAM_NAME;
84  /// Long name of the paramter that tells the width of inst mem in MAUs.
85  static const std::string IMEM_WIDTH_IN_MAUS_PARAM_NAME;
86  /// Long name of parameter passed to code compressor plugin.
87  static const std::string COMPRESSOR_PARAMS_PARAM_NAME;
88  /// Long name of the parameter that tells whether to show compressors.
89  static const std::string SHOW_COMPRESSORS_PARAM_NAME;
90  /// Long name of the parameter which tells the proge-output dir
91  static const std::string HDL_OUTPUT_DIR;
92 };
93 
94 #endif
PIGCmdLineOptions::dataImageOutputFormat
std::string dataImageOutputFormat() const
Definition: PIGCmdLineOptions.cc:198
PIGCmdLineOptions::bemFile
std::string bemFile() const
Definition: PIGCmdLineOptions.cc:150
PIGCmdLineOptions::COMPRESSOR_PARAM_NAME
static const std::string COMPRESSOR_PARAM_NAME
Long name of the plugin file parameter.
Definition: PIGCmdLineOptions.hh:75
PIGCmdLineOptions::programImageOutputFormat
std::string programImageOutputFormat() const
Definition: PIGCmdLineOptions.cc:187
PIGCmdLineOptions::showCompressors
bool showCompressors() const
Definition: PIGCmdLineOptions.cc:280
PIGCmdLineOptions::generateDataImages
bool generateDataImages() const
Definition: PIGCmdLineOptions.cc:235
PIGCmdLineOptions::GEN_DECOMP_PARAM_NAME
static const std::string GEN_DECOMP_PARAM_NAME
Long name of the parameter that tells whether to generate decompressor or not.
Definition: PIGCmdLineOptions.hh:81
PIGCmdLineOptions::dataMemoryWidthInMAUs
int dataMemoryWidthInMAUs() const
Definition: PIGCmdLineOptions.cc:220
PIGCmdLineOptions::printHelp
virtual void printHelp() const
Definition: PIGCmdLineOptions.cc:318
PIGCmdLineOptions::HDL_OUTPUT_DIR
static const std::string HDL_OUTPUT_DIR
Long name of the parameter which tells the proge-output dir.
Definition: PIGCmdLineOptions.hh:91
CmdLineOptions.hh
PIGCmdLineOptions::compressorParameterCount
int compressorParameterCount() const
Definition: PIGCmdLineOptions.cc:255
PIGCmdLineOptions::TPEF_PARAM_NAME
static const std::string TPEF_PARAM_NAME
Long name of the TPEF file parameter.
Definition: PIGCmdLineOptions.hh:69
PIGCmdLineOptions::compressorParameter
std::string compressorParameter(int index) const
Definition: PIGCmdLineOptions.cc:268
PIGCmdLineOptions::SHOW_COMPRESSORS_PARAM_NAME
static const std::string SHOW_COMPRESSORS_PARAM_NAME
Long name of the parameter that tells whether to show compressors.
Definition: PIGCmdLineOptions.hh:89
PIGCmdLineOptions::DI_FORMAT_PARAM_NAME
static const std::string DI_FORMAT_PARAM_NAME
Long name of the data image output format parameter.
Definition: PIGCmdLineOptions.hh:73
PIGCmdLineOptions::entityName
std::string entityName() const
Definition: PIGCmdLineOptions.cc:295
PIGCmdLineOptions::BEM_PARAM_NAME
static const std::string BEM_PARAM_NAME
Long name of the BEM file parameter.
Definition: PIGCmdLineOptions.hh:67
CmdLineOptions
Definition: CmdLineOptions.hh:54
PIGCmdLineOptions::generateDecompressor
bool generateDecompressor() const
Definition: PIGCmdLineOptions.cc:244
PIGCmdLineOptions::PIGCmdLineOptions
PIGCmdLineOptions()
Definition: PIGCmdLineOptions.cc:61
PIGCmdLineOptions::DMEM_WIDTH_IN_MAUS_PARAM_NAME
static const std::string DMEM_WIDTH_IN_MAUS_PARAM_NAME
Long name of the parameter that tells the width of data mem in MAUs.
Definition: PIGCmdLineOptions.hh:83
PIGCmdLineOptions::COMPRESSOR_PARAMS_PARAM_NAME
static const std::string COMPRESSOR_PARAMS_PARAM_NAME
Long name of parameter passed to code compressor plugin.
Definition: PIGCmdLineOptions.hh:87
PIGCmdLineOptions::printVersion
virtual void printVersion() const
Definition: PIGCmdLineOptions.cc:304
PIGCmdLineOptions::progeOutputDirectory
std::string progeOutputDirectory() const
Definition: PIGCmdLineOptions.cc:290
PIGCmdLineOptions::IMEM_WIDTH_IN_MAUS_PARAM_NAME
static const std::string IMEM_WIDTH_IN_MAUS_PARAM_NAME
Long name of the paramter that tells the width of inst mem in MAUs.
Definition: PIGCmdLineOptions.hh:85
PIGCmdLineOptions::tpefFileCount
int tpefFileCount() const
Definition: PIGCmdLineOptions.cc:161
PIGCmdLineOptions::printUsage
void printUsage() const
Definition: PIGCmdLineOptions.cc:329
PIGCmdLineOptions::PI_FORMAT_PARAM_NAME
static const std::string PI_FORMAT_PARAM_NAME
Long name of the program image output format parameter.
Definition: PIGCmdLineOptions.hh:71
PIGCmdLineOptions::DATA_IMG_PARAM_NAME
static const std::string DATA_IMG_PARAM_NAME
Long name of the parameter that defines whether to create data images.
Definition: PIGCmdLineOptions.hh:78
PIGCmdLineOptions::~PIGCmdLineOptions
virtual ~PIGCmdLineOptions()
Definition: PIGCmdLineOptions.cc:140
PIGCmdLineOptions::compressorPlugin
std::string compressorPlugin() const
Definition: PIGCmdLineOptions.cc:209
PIGCmdLineOptions::tpefFile
std::string tpefFile(int index) const
Definition: PIGCmdLineOptions.cc:172
PIGCmdLineOptions
Definition: PIGCmdLineOptions.hh:41