OpenASIP  2.0
Stratix3DevKitIntegrator.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2011 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 Stratix3DevKitIntegrator.hh
26  *
27  * Declaration of Stratix3DevKitIntegrator class.
28  *
29  * @author Otto Esko 2011 (otto.esko-no.spam-tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_STRATIX3_DEV_KIT_INTEGRATOR_HH
34 #define TTA_STRATIX3_DEV_KIT_INTEGRATOR_HH
35 
36 #include <iostream>
37 #include <vector>
38 #include <map>
39 #include "TCEString.hh"
40 #include "AlteraIntegrator.hh"
43 
45 public:
46 
48 
52  ProGe::HDL hdl,
53  TCEString progeOutputDir,
55  TCEString outputDir,
57  int targetClockFreq,
58  std::ostream& warningStream,
59  std::ostream& errorStream,
60  const MemInfo& imem,
61  MemType dmemType);
62 
63  virtual ~Stratix3DevKitIntegrator();
64 
65  virtual void integrateProcessor(const ProGe::NetlistBlock* ttaCore);
66 
67  virtual TCEString deviceFamily() const;
68 
69  virtual void setDeviceFamily(TCEString devFamily);
70 
71  virtual TCEString devicePackage() const;
72 
73  virtual TCEString deviceSpeedClass() const;
74 
75  virtual int targetClockFrequency() const;
76 
77  virtual void printInfo(std::ostream& stream) const;
78 
79 protected:
80 
81  virtual TCEString pinTag() const;
82 
83  virtual bool chopTaggedSignals() const;
84 
86 
87 private:
88 
89  void generatePinMap();
90 
91  void mapToplevelPorts();
92 
93  void addSignalMapping(const TCEString& signal);
94 
96 
98 
99  static const TCEString DEVICE_FAMILY_;
100 
101  static const TCEString DEVICE_NAME_;
102 
104 
106 
107  static const TCEString PIN_TAG_;
108 
109  static const int DEFAULT_FREQ_;
110 
111 };
112 
113 #endif
Stratix3DevKitIntegrator::deviceSpeedClass
virtual TCEString deviceSpeedClass() const
Definition: Stratix3DevKitIntegrator.cc:153
Stratix3DevKitIntegrator::DEVICE_SPEED_CLASS_
static const TCEString DEVICE_SPEED_CLASS_
Definition: Stratix3DevKitIntegrator.hh:105
Stratix3DevKitIntegrator::DEVICE_NAME_
static const TCEString DEVICE_NAME_
Definition: Stratix3DevKitIntegrator.hh:101
PlatformIntegrator::coreEntityName
TCEString coreEntityName() const
Definition: PlatformIntegrator.cc:126
AlteraIntegrator.hh
ProGe::NetlistBlock
Definition: NetlistBlock.hh:61
QuartusProjectGenerator.hh
Stratix3DevKitIntegrator::setDeviceFamily
virtual void setDeviceFamily(TCEString devFamily)
Definition: Stratix3DevKitIntegrator.cc:134
Stratix3DevKitIntegrator::PIN_TAG_
static const TCEString PIN_TAG_
Definition: Stratix3DevKitIntegrator.hh:107
MemInfo
Definition: MemoryGenerator.hh:67
PlatformIntegratorTypes.hh
Stratix3DevKitIntegrator::projectFileGenerator
virtual ProjectFileGenerator * projectFileGenerator() const
Definition: Stratix3DevKitIntegrator.cc:205
Stratix3DevKitIntegrator
Definition: Stratix3DevKitIntegrator.hh:44
Stratix3DevKitIntegrator::mapToplevelPorts
void mapToplevelPorts()
Definition: Stratix3DevKitIntegrator.cc:212
Stratix3DevKitIntegrator::stratix3Pins_
PlatInt::PinMap stratix3Pins_
Definition: Stratix3DevKitIntegrator.hh:97
Stratix3DevKitIntegrator::DEVICE_PACKAGE_
static const TCEString DEVICE_PACKAGE_
Definition: Stratix3DevKitIntegrator.hh:103
TCEString.hh
Stratix3DevKitIntegrator::addSignalMapping
void addSignalMapping(const TCEString &signal)
Definition: Stratix3DevKitIntegrator.cc:221
Stratix3DevKitIntegrator::DEVICE_FAMILY_
static const TCEString DEVICE_FAMILY_
Definition: Stratix3DevKitIntegrator.hh:99
Stratix3DevKitIntegrator::quartusGen_
QuartusProjectGenerator * quartusGen_
Definition: Stratix3DevKitIntegrator.hh:95
ProjectFileGenerator
Definition: ProjectFileGenerator.hh:41
Stratix3DevKitIntegrator::devicePackage
virtual TCEString devicePackage() const
Definition: Stratix3DevKitIntegrator.cc:146
PlatformIntegrator::idf
const IDF::MachineImplementation * idf() const
Definition: PlatformIntegrator.cc:304
Stratix3DevKitIntegrator::generatePinMap
void generatePinMap()
Definition: Stratix3DevKitIntegrator.cc:237
PlatformIntegrator::machine
const TTAMachine::Machine * machine() const
Definition: PlatformIntegrator.cc:297
Stratix3DevKitIntegrator::deviceFamily
virtual TCEString deviceFamily() const
Definition: Stratix3DevKitIntegrator.cc:127
PlatformIntegrator::programName
TCEString programName() const
Definition: PlatformIntegrator.cc:133
MemType
MemType
Definition: MemoryGenerator.hh:57
QuartusProjectGenerator
Definition: QuartusProjectGenerator.hh:41
TCEString
Definition: TCEString.hh:53
PlatformIntegrator::warningStream
std::ostream & warningStream() const
Definition: PlatformIntegrator.cc:271
AlteraIntegrator
Definition: AlteraIntegrator.hh:39
Stratix3DevKitIntegrator::DEFAULT_FREQ_
static const int DEFAULT_FREQ_
Definition: Stratix3DevKitIntegrator.hh:109
PlatInt::PinMap
std::map< TCEString, SignalMappingList * > PinMap
Definition: PlatformIntegratorTypes.hh:46
ProGe::HDL
HDL
HDLs supported by ProGe.
Definition: ProGeTypes.hh:40
Stratix3DevKitIntegrator::integrateProcessor
virtual void integrateProcessor(const ProGe::NetlistBlock *ttaCore)
Definition: Stratix3DevKitIntegrator.cc:103
Stratix3DevKitIntegrator::Stratix3DevKitIntegrator
Stratix3DevKitIntegrator()
Definition: Stratix3DevKitIntegrator.cc:59
PlatformIntegrator::errorStream
std::ostream & errorStream() const
Definition: PlatformIntegrator.cc:278
Stratix3DevKitIntegrator::targetClockFrequency
virtual int targetClockFrequency() const
Definition: Stratix3DevKitIntegrator.cc:160
IDF::MachineImplementation
Definition: MachineImplementation.hh:54
Stratix3DevKitIntegrator::~Stratix3DevKitIntegrator
virtual ~Stratix3DevKitIntegrator()
Definition: Stratix3DevKitIntegrator.cc:85
TTAMachine::Machine
Definition: Machine.hh:73
Stratix3DevKitIntegrator::chopTaggedSignals
virtual bool chopTaggedSignals() const
Definition: Stratix3DevKitIntegrator.cc:198
Stratix3DevKitIntegrator::pinTag
virtual TCEString pinTag() const
Definition: Stratix3DevKitIntegrator.cc:191
Stratix3DevKitIntegrator::printInfo
virtual void printInfo(std::ostream &stream) const
Definition: Stratix3DevKitIntegrator.cc:172