OpenASIP  2.0
OperationImplementation.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 OperationImplementation.hh
26 *
27 * Declaration of OperationImplementation.
28 *
29 * @author Lasse Lehtonen 2017 (lasse.lehtonen-no.spam-tut.fi)
30 */
31 #pragma once
32 
33 #include <string>
34 #include <vector>
35 
37 
38 namespace HDB {
39 
40  struct Variable {
41  std::string name;
42  std::string width;
43  std::string type;
44  bool rename;
45  };
46 
48  int id;
49  int latency;
50  std::string name;
51  std::string implFileVhdl;
52  std::string implFileVerilog;
53  std::string postOpImplFileVhdl;
54  std::string postOpImplFileVerilog;
56  std::string initialImplFileVhdl;
57  std::string absBusDefFile;
58  std::vector<OperationImplementationResource> resources;
59  std::vector<Variable> vhdlVariables;
60  std::vector<Variable> verilogVariables;
61  std::vector<Variable> vhdlGlobalSignals;
62  std::vector<Variable> verilogGlobalSignals;
63  };
64 }
HDB::OperationImplementation::initialImplFileVerilog
std::string initialImplFileVerilog
Definition: OperationImplementation.hh:55
HDB::OperationImplementation::latency
int latency
Definition: OperationImplementation.hh:49
HDB
Definition: CostDatabase.hh:49
HDB::OperationImplementation::id
int id
Definition: OperationImplementation.hh:48
HDB::OperationImplementation::initialImplFileVhdl
std::string initialImplFileVhdl
Definition: OperationImplementation.hh:56
HDB::OperationImplementation::postOpImplFileVerilog
std::string postOpImplFileVerilog
Definition: OperationImplementation.hh:54
HDB::Variable
Definition: OperationImplementation.hh:40
HDB::Variable::name
std::string name
Definition: OperationImplementation.hh:41
HDB::Variable::rename
bool rename
Definition: OperationImplementation.hh:44
HDB::Variable::width
std::string width
Definition: OperationImplementation.hh:42
HDB::OperationImplementation::postOpImplFileVhdl
std::string postOpImplFileVhdl
Definition: OperationImplementation.hh:53
HDB::OperationImplementation::verilogVariables
std::vector< Variable > verilogVariables
Definition: OperationImplementation.hh:60
HDB::OperationImplementation::verilogGlobalSignals
std::vector< Variable > verilogGlobalSignals
Definition: OperationImplementation.hh:62
HDB::OperationImplementation::implFileVerilog
std::string implFileVerilog
Definition: OperationImplementation.hh:52
HDB::OperationImplementation::name
std::string name
Definition: OperationImplementation.hh:50
HDB::OperationImplementation::resources
std::vector< OperationImplementationResource > resources
Definition: OperationImplementation.hh:58
HDB::OperationImplementation::vhdlVariables
std::vector< Variable > vhdlVariables
Definition: OperationImplementation.hh:59
HDB::OperationImplementation::absBusDefFile
std::string absBusDefFile
Definition: OperationImplementation.hh:57
OperationImplementationResource.hh
HDB::Variable::type
std::string type
Definition: OperationImplementation.hh:43
HDB::OperationImplementation::vhdlGlobalSignals
std::vector< Variable > vhdlGlobalSignals
Definition: OperationImplementation.hh:61
HDB::OperationImplementation
Definition: OperationImplementation.hh:47
HDB::OperationImplementation::implFileVhdl
std::string implFileVhdl
Definition: OperationImplementation.hh:51