OpenASIP 2.2
Loading...
Searching...
No Matches
ProjectFileGenerator.hh
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2010 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 ProjectFileGenerator.hh
26 *
27 * Declaration of ProjectFileGenerator class.
28 *
29 * @author Otto Esko 2010 (otto.esko-no.spam-tut.fi)
30 * @note rating: red
31 */
32#ifndef TTA_PROJECT_FILE_GENERATOR_HH
33#define TTA_PROJECT_FILE_GENERATOR_HH
34
35#include <vector>
36#include "TCEString.hh"
38
40
42public:
45 virtual ~ProjectFileGenerator();
46
47 virtual void writeProjectFiles() = 0;
48
49 void addHdlFile(const TCEString& file);
50
51 void addHdlFiles(const std::vector<TCEString>& files);
52
53 void addMemInitFile(const TCEString& memInit);
54
55 void addSignalMapping(const PlatInt::SignalMapping& mapping);
56
57protected:
58
59 const std::vector<TCEString>& hdlFileList() const;
60
61 const std::vector<TCEString>& memInitFileList() const;
62
63 const PlatformIntegrator* integrator() const;
64
65 TCEString coreEntity() const { return coreEntity_; }
67 return coreEntity_ + "_toplevel";
68 }
69
70 int signalMappingCount() const;
71
72 const PlatInt::SignalMapping* signalMapping(int index) const;
73
75 const TCEString& port,
76 const TCEString& delimiter) const;
77
78private:
79 /// the HDL entity of the non-integrated TTA core
82
83 std::vector<TCEString> hdlFiles_;
84 std::vector<TCEString> memInitFiles_;
86};
87
88#endif
void addMemInitFile(const TCEString &memInit)
const PlatformIntegrator * integrator_
TCEString coreEntity_
the HDL entity of the non-integrated TTA core
PlatInt::SignalMappingList signalMap_
void addSignalMapping(const PlatInt::SignalMapping &mapping)
const PlatformIntegrator * integrator() const
std::vector< TCEString > hdlFiles_
const std::vector< TCEString > & hdlFileList() const
TCEString extractFUName(const TCEString &port, const TCEString &delimiter) const
const std::vector< TCEString > & memInitFileList() const
TCEString coreEntity() const
void addHdlFiles(const std::vector< TCEString > &files)
std::vector< TCEString > memInitFiles_
virtual void writeProjectFiles()=0
const PlatInt::SignalMapping * signalMapping(int index) const
void addHdlFile(const TCEString &file)
TCEString toplevelEntity() const
std::vector< SignalMapping * > SignalMappingList
std::pair< TCEString, TCEString > SignalMapping