OpenASIP 2.2
Loading...
Searching...
No Matches
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 */
42public:
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;
61 virtual void printVersion() const;
62 virtual void printHelp() const;
63 void printUsage() const;
64
65private:
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 static const std::string DATA_START;
94};
95
96#endif
virtual void printHelp() const
std::string programImageOutputFormat() const
std::string compressorPlugin() const
std::string dataImageOutputFormat() const
int dataMemoryWidthInMAUs() const
static const std::string DI_FORMAT_PARAM_NAME
Long name of the data image output format parameter.
std::string entityName() const
std::string tpefFile(int index) const
bool showCompressors() const
bool generateDataImages() const
bool generateDecompressor() const
static const std::string COMPRESSOR_PARAMS_PARAM_NAME
Long name of parameter passed to code compressor plugin.
static const std::string PI_FORMAT_PARAM_NAME
Long name of the program image output format parameter.
std::string compressorParameter(int index) const
static const std::string GEN_DECOMP_PARAM_NAME
Long name of the parameter that tells whether to generate decompressor or not.
static const std::string TPEF_PARAM_NAME
Long name of the TPEF file parameter.
static const std::string COMPRESSOR_PARAM_NAME
Long name of the plugin file parameter.
int compressorParameterCount() const
static const std::string DMEM_WIDTH_IN_MAUS_PARAM_NAME
Long name of the parameter that tells the width of data mem in MAUs.
static const std::string HDL_OUTPUT_DIR
Long name of the parameter which tells the proge-output dir.
CmdLineOptionParser * dataStart() const
static const std::string DATA_IMG_PARAM_NAME
Long name of the parameter that defines whether to create data images.
static const std::string BEM_PARAM_NAME
Long name of the BEM file parameter.
std::string progeOutputDirectory() const
virtual void printVersion() const
std::string bemFile() const
static const std::string IMEM_WIDTH_IN_MAUS_PARAM_NAME
Long name of the paramter that tells the width of inst mem in MAUs.
static const std::string DATA_START
static const std::string SHOW_COMPRESSORS_PARAM_NAME
Long name of the parameter that tells whether to show compressors.