OpenASIP  2.0
AddressSpaceCheck.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 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 AddressSpaceCheck.hh
26  *
27  * Declaration of AddressSpaceCheck class that checks two things:
28  * 1) if the function units' operations access memory
29  * 2) if there is a memory address space available for them
30  *
31  * @author Viljami Korhonen 2007 (viljami.korhonen-no.spam-tut.fi)
32  * @note rating: red
33  */
34 
35 #ifndef ADDRESS_SPACE_CHECK_HH
36 #define ADDRESS_SPACE_CHECK_HH
37 
38 #include "MachineCheck.hh"
39 
40 namespace TTAMachine {
41  class Machine;
42 }
43 
44 class OperationPool;
45 
46 /**
47  * MachineCheck to check if the FUs' operations access memory and
48  * there is a memory address space available for them.
49  */
51 public:
52  AddressSpaceCheck(OperationPool& operationPool);
53  virtual ~AddressSpaceCheck();
54 
55  virtual bool check(const TTAMachine::Machine& mach,
56  MachineCheckResults& results) const;
57 
58 private:
60 
61 };
62 
63 #endif
AddressSpaceCheck::operationPool_
OperationPool & operationPool_
Definition: AddressSpaceCheck.hh:59
AddressSpaceCheck::AddressSpaceCheck
AddressSpaceCheck(OperationPool &operationPool)
Definition: AddressSpaceCheck.cc:51
MachineCheck.hh
AddressSpaceCheck::check
virtual bool check(const TTAMachine::Machine &mach, MachineCheckResults &results) const
Definition: AddressSpaceCheck.cc:71
MachineCheckResults
Definition: MachineCheckResults.hh:46
AddressSpaceCheck::~AddressSpaceCheck
virtual ~AddressSpaceCheck()
Definition: AddressSpaceCheck.cc:59
MachineCheck
Definition: MachineCheck.hh:50
OperationPool
Definition: OperationPool.hh:52
TTAMachine
Definition: Assembler.hh:48
AddressSpaceCheck
Definition: AddressSpaceCheck.hh:50
TTAMachine::Machine
Definition: Machine.hh:73