OpenASIP  2.0
BlocksTranslator.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2021 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 BlocksTranslator.hh
26  *
27  * Declaration of the Blocks translator (Blocks to TTA) functions.
28  *
29  * @author Maarten Molendijk 2020 (m.j.molendijk@tue.nl)
30  * @author Kanishkan Vadivel 2021 (k.vadivel@tue.nl)
31  */
32 
33 #ifndef BLOCKS_TRANSLATOR_HH
34 #define BLOCKS_TRANSLATOR_HH
35 
36 #include "BlocksALU.hh"
37 #include "BlocksGCU.hh"
38 #include "BlocksIMM.hh"
39 #include "BlocksLSU.hh"
40 #include "BlocksMUL.hh"
41 #include "BlocksModel.hh"
42 #include "BlocksRF.hh"
43 #include "ControlUnit.hh"
44 #include "FUPort.hh"
45 #include "FunctionUnit.hh"
46 #include "HWOperation.hh"
47 #include "ImmediateUnit.hh"
48 #include "Socket.hh"
49 #include "SpecialRegisterPort.hh"
50 
51 namespace BlocksTranslator {
52 void BuildTTAModel(BlocksModel& blocksModel, const std::string& outputName);
54  TTAMachine::Machine& mach, TTAMachine::Socket* inputSocket,
55  TTAMachine::Socket* outputSocket, BlocksGCU& gcu);
56 
57 void Deinitialize(
58  TTAMachine::Machine& mach, std::list<BlocksALUPair*> aluList,
59  std::list<BlocksLSUPair*> lsuList, std::list<BlocksRF*> rfList,
60  std::list<BlocksIMM*> iuList, std::list<BlocksMULPair*> mulList);
61 
62 void ConnectInputs(
63  TTAMachine::Machine& mach, BlocksGCU& gcu,
64  std::list<BlocksALUPair*> aluList, std::list<BlocksLSUPair*> lsuList,
65  std::list<BlocksRF*> rfList, std::list<BlocksMULPair*> mulList);
67  TTAMachine::Machine::SocketNavigator nav, std::string source);
68 } // namespace BlocksTranslator
69 #endif
BlocksLSU.hh
BlocksTranslator::CreateConnection
TTAMachine::Bus * CreateConnection(TTAMachine::Machine &mach, TTAMachine::Socket *inputSocket, TTAMachine::Socket *outputSocket, BlocksGCU &gcu)
Definition: BlocksTranslator.cc:160
BlocksTranslator
Definition: BlocksModel.hh:43
TTAMachine::Bus
Definition: Bus.hh:53
ImmediateUnit.hh
BlocksTranslator::FindOutputSocket
TTAMachine::Socket * FindOutputSocket(TTAMachine::Machine::SocketNavigator nav, std::string source)
Definition: BlocksTranslator.cc:284
BlocksTranslator::Deinitialize
void Deinitialize(TTAMachine::Machine &mach, std::list< BlocksALUPair * > aluList, std::list< BlocksLSUPair * > lsuList, std::list< BlocksRF * > rfList, std::list< BlocksIMM * > iuList, std::list< BlocksMULPair * > mulList)
Definition: BlocksTranslator.cc:304
BlocksGCU.hh
Socket.hh
HWOperation.hh
BlocksMUL.hh
TTAMachine::Socket
Definition: Socket.hh:53
BlocksTranslator::BuildTTAModel
void BuildTTAModel(BlocksModel &blocksModel, const std::string &outputName)
Definition: BlocksTranslator.cc:54
BlocksRF.hh
BlocksModel.hh
BlocksGCU
Definition: BlocksGCU.hh:46
BlocksModel
Definition: BlocksModel.hh:55
BlocksTranslator::ConnectInputs
void ConnectInputs(TTAMachine::Machine &mach, BlocksGCU &gcu, std::list< BlocksALUPair * > aluList, std::list< BlocksLSUPair * > lsuList, std::list< BlocksRF * > rfList, std::list< BlocksMULPair * > mulList)
Definition: BlocksTranslator.cc:225
FUPort.hh
ControlUnit.hh
SpecialRegisterPort.hh
BlocksIMM.hh
BlocksALU.hh
TTAMachine::Machine::Navigator
Definition: Machine.hh:186
TTAMachine::Machine
Definition: Machine.hh:73
FunctionUnit.hh