OpenASIP 2.2
Loading...
Searching...
No Matches
SOPCBuilderFileGenerator.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 SOPCBuilderFileGenerator.hh
26 *
27 * Declaration of SOPCBuilderFileGenerator class.
28 *
29 * @author Otto Esko 2010 (otto.esko-no.spam-tut.fi)
30 * @note rating: red
31 */
32
33#ifndef TTA_SOPC_BUILDER_FILE_GENERATOR_HH
34#define TTA_SOPC_BUILDER_FILE_GENERATOR_HH
35
36#include <iostream>
37#include <map>
39#include "ProGeTypes.hh"
40#include "SOPCInterface.hh"
41#include "NetlistPort.hh"
42
44
46public:
47
50
52
53 virtual void writeProjectFiles();
54
55private:
56
57 int countAvalonMMMasters() const;
58
59 void createInterfaces();
60
61 bool handleAvalonSignal(const ProGe::NetlistPort& port);
62
63 void exportSignal(const ProGe::NetlistPort& port);
64
65 void writeModuleProperties(std::ostream& stream);
66
67 void writeGenerics(std::ostream& stream);
68
69 void writeFileList(std::ostream& stream);
70
71 void writeInterfaces(std::ostream& stream) const;
72
74
77 std::map<TCEString, AvalonMMMasterInterface*> masters_;
78
79
82
87
92
94
95};
96
97#endif
const PlatformIntegrator * integrator() const
TCEString toplevelEntity() const
bool handleAvalonSignal(const ProGe::NetlistPort &port)
AvalonMMMasterInterface * getMaster(const TCEString &fuName)
static const TCEString SOPC_ADD_FILE
std::map< TCEString, AvalonMMMasterInterface * > masters_
static const TCEString TTA_RESET_NAME
void writeFileList(std::ostream &stream)
static const TCEString SOPC_COMPONENT_FILE_TYPE
static const TCEString SOPC_CLOCK_NAME
static const TCEString HDB_AVALON_PREFIX
static const TCEString SOPC_DEFAULT_VHDL_LIBS
void writeGenerics(std::ostream &stream)
void writeInterfaces(std::ostream &stream) const
static const TCEString SOPC_DEFAULT_GROUP
static const TCEString PI_DEVICE_FAMILY_GENERIC
void writeModuleProperties(std::ostream &stream)
static const TCEString TTA_CLOCK_NAME
static const TCEString SOPC_SET_MODULE_PROPERTY
static const TCEString SOPC_RESET_NAME
void exportSignal(const ProGe::NetlistPort &port)