OpenASIP 2.2
Loading...
Searching...
No Matches
MicroCodeGenerator.hh
Go to the documentation of this file.
1/*
2 Copyright (C) 2021-2022 Tampere University.
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18/**
19 * @file MicroCodeGenerator.hh
20 *
21 * Declaration of MicroCodeGenerator class.
22 *
23 * @author Kari Hepola 2021-2022 (kari.hepola@tuni.fi)
24 * @note rating: red
25 */
26
27#ifndef TTA_INSTRUCTION_TRANSLATOR_HH
28#define TTA_INSTRUCTION_TRANSLATOR_HH
29
30
31#include <string>
32
33namespace TTAMachine {
34 class Machine;
35 class Bus;
36 class Port;
37}
38
39class BinaryEncoding;
42
43using namespace TTAMachine;
44
45namespace ProGe {
46
48
49public:
51 const std::string& entityName)
52 : machine_(&machine), bem_(&bem), entityName_(entityName) {};
54
55 virtual void generateRTL(HDLTemplateInstantiator& instantiator,
56 const std::string& fileDst) = 0;
57
58 struct Connection {
61 };
62protected:
65 const std::string entityName_;
66};
67}
68#endif
TTAMachine::Machine * machine
the architecture definition of the estimated processor
const BinaryEncoding * bem_
MicroCodeGenerator(const Machine &machine, const BinaryEncoding &bem, const std::string &entityName)
virtual void generateRTL(HDLTemplateInstantiator &instantiator, const std::string &fileDst)=0
Definition FUGen.hh:54