OpenASIP 2.2
Loading...
Searching...
No Matches
ProGeOptions.hh
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2017 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 ProGeOptions.hh
26 *
27 * Declaration of ProGeOptions class.
28 *
29 * @author Lasse Lehtonen 2017.
30 */
31
32#pragma once
33
34#include "FileSystem.hh"
36#include "ProGeTypes.hh"
37#include <string>
38#include <utility>
39#include <vector>
40
42
50
77
79 std::string bemFile;
80 std::string idfFile;
81 std::string languageStr;
83 std::string outputDirectory;
87
88 std::string integratorName;
89 std::string imemType;
90 std::string dmemType;
92 std::string tpefName;
93 std::string entityName;
96 std::string deviceFamilyName;
97 std::string deviceName;
98 std::string simulationRuntime;
100
103 std::vector<std::string> hdbList;
104 std::vector<std::string> rfIcGateList;
105 std::vector<std::string> fuIcGateList;
106 std::vector<std::pair<std::string, std::string>> icdArgList;
109 std::vector<std::string> fuBackRegistered;
110 std::vector<std::string> fuFrontRegistered;
111 std::vector<std::string> fuMiddleRegistered;
112
113
114 void validate() {
115 if (outputDirectory.empty()) {
116 outputDirectory = "proge-output";
117 }
118 if (sharedOutputDirectory.empty()) {
120 }
124 if (entityName.empty()) {
125 entityName = "tta0";
126 }
127 if (languageStr == "verilog") {
129 } else {
131 }
132 if (hdbList.empty()) {
133 hdbList.emplace_back("generate_base32.hdb");
134 hdbList.emplace_back("generate_lsu_32.hdb");
135 hdbList.emplace_back("generate_rf_iu.hdb");
136 hdbList.emplace_back("asic_130nm_1.5V.hdb");
137
138 }
139 }
140};
find Finds info of the inner loops in the false
static std::string absolutePathOf(const std::string &pathName)
static std::string expandTilde(const std::string &stringWithTilde)
HDL
HDLs supported by ProGe.
Definition ProGeTypes.hh:40
@ Verilog
Verilog.
Definition ProGeTypes.hh:42
@ VHDL
VHDL.
Definition ProGeTypes.hh:41
std::string sharedOutputDirectory
std::string deviceName
bool listAvailableIntegrators
std::vector< std::string > fuMiddleRegistered
bool preferHDLGeneration
std::vector< std::string > fuBackRegistered
std::vector< std::string > fuIcGateList
std::string dmemType
bool forceOutputDirectory
std::string integratorName
std::string imemType
std::string deviceFamilyName
std::string processorToGenerate
ProGe::HDL language
std::string simulationRuntime
std::vector< std::pair< std::string, std::string > > icdArgList
bool generateTestbench
ProGeOptions(const ProGeCmdLineOptions &cmd)
std::string idfFile
std::string tpefName
std::string outputDirectory
std::string bemFile
std::string languageStr
std::string entityName
bool useAbsolutePaths
std::vector< std::string > hdbList
std::string pluginParametersQuery
std::vector< std::string > rfIcGateList
std::vector< std::string > fuFrontRegistered