OpenASIP  2.0
BlocksFU.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 BlocksFU.hh
26  *
27  * Declaration of the virtual BlocksFU Class.
28  * This class is the parent class of ALU, LSU & MUL units.
29  *
30  * @author Maarten Molendijk 2020 (m.j.molendijk@tue.nl)
31  * @author Kanishkan Vadivel 2021 (k.vadivel@tue.nl)
32  */
33 
34 #ifndef BLOCKS_FU_HH
35 #define BLOCKS_FU_HH
36 
37 #include <memory>
38 
39 #include "BlocksGCU.hh"
40 #include "Machine.hh"
41 #include "Socket.hh"
42 
43 class BlocksFU {
44 protected:
45  BlocksFU(
46  TTAMachine::Machine& mach, const std::string& name,
47  std::list<std::string> sources,
48  std::shared_ptr<TTAMachine::Socket> in1sock,
49  std::shared_ptr<TTAMachine::Socket> in2sock);
51  delete in1;
52  delete in2;
53  delete out;
54  delete outsock;
55  delete fu;
56  }
57 
58 public:
59  std::vector<TTAMachine::HWOperation*> ops;
64  std::shared_ptr<TTAMachine::Socket> in1sock;
65  std::shared_ptr<TTAMachine::Socket> in2sock;
67  std::list<std::string> sources;
68  std::string name;
69 };
70 #endif
BlocksFU::ops
std::vector< TTAMachine::HWOperation * > ops
Definition: BlocksFU.hh:59
BlocksFU::in1
TTAMachine::FUPort * in1
Definition: BlocksFU.hh:61
BlocksFU::fu
TTAMachine::FunctionUnit * fu
Definition: BlocksFU.hh:60
BlocksGCU.hh
Socket.hh
TTAMachine::FunctionUnit
Definition: FunctionUnit.hh:55
TTAMachine::FUPort
Definition: FUPort.hh:46
BlocksFU::in2sock
std::shared_ptr< TTAMachine::Socket > in2sock
Definition: BlocksFU.hh:65
BlocksFU::out
TTAMachine::FUPort * out
Definition: BlocksFU.hh:63
TTAMachine::Socket
Definition: Socket.hh:53
Machine.hh
BlocksFU::sources
std::list< std::string > sources
Definition: BlocksFU.hh:67
BlocksFU::BlocksFU
BlocksFU(TTAMachine::Machine &mach, const std::string &name, std::list< std::string > sources, std::shared_ptr< TTAMachine::Socket > in1sock, std::shared_ptr< TTAMachine::Socket > in2sock)
Definition: BlocksFU.cc:43
BlocksFU
Definition: BlocksFU.hh:43
BlocksFU::name
std::string name
Definition: BlocksFU.hh:68
BlocksFU::in2
TTAMachine::FUPort * in2
Definition: BlocksFU.hh:62
BlocksFU::outsock
TTAMachine::Socket * outsock
Definition: BlocksFU.hh:66
BlocksFU::~BlocksFU
~BlocksFU()
Definition: BlocksFU.hh:50
TTAMachine::Machine
Definition: Machine.hh:73
BlocksFU::in1sock
std::shared_ptr< TTAMachine::Socket > in1sock
Definition: BlocksFU.hh:64