OpenASIP 2.2
Loading...
Searching...
No Matches
InputFUBroker.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 InputFUBroker.hh
26 *
27 * Declaration of InputFUBroker class.
28 *
29 * @author Ari Mets�halme 2006 (ari.metsahalme-no.spam-tut.fi)
30 * @note rating: red
31 */
32
33#ifndef TTA_INPUT_FU_BROKER_HH
34#define TTA_INPUT_FU_BROKER_HH
35
36#include "FUBroker.hh"
37#include "SchedulingResource.hh"
38
39namespace TTAMachine {
40 class Machine;
41 class MachinePart;
42}
43
44namespace TTAProgram {
45 class Move;
46 class TerminalFUPort;
47}
48
49class MoveNode;
50class ResourceMapper;
51
52/**
53 * Input function unit broker.
54 */
55class InputFUBroker : public FUBroker {
56public:
57 InputFUBroker(std::string, unsigned int initiationInterval = 0);
58 virtual ~InputFUBroker();
59
61 int cycle, const MoveNode& node,
62 const TTAMachine::Bus* bus,
63 const TTAMachine::FunctionUnit* srcFU,
64 const TTAMachine::FunctionUnit* dstFU,
65 int immWriteCycle,
66 const TTAMachine::ImmediateUnit* immu,
67 int immRegIndex) const override;
68
69 virtual int earliestCycle(int cycle, const MoveNode& node,
70 const TTAMachine::Bus* bus,
71 const TTAMachine::FunctionUnit* srcFU,
72 const TTAMachine::FunctionUnit* dstFU,
73 int immWriteCycle,
74 const TTAMachine::ImmediateUnit* immu,
75 int immRegIndex) const override;
76 virtual int latestCycle(int cycle, const MoveNode& node,
77 const TTAMachine::Bus* bus,
78 const TTAMachine::FunctionUnit* srcFU,
79 const TTAMachine::FunctionUnit* dstFU,
80 int immWriteCycle,
81 const TTAMachine::ImmediateUnit* immu,
82 int immRegIndex) const override;
83 virtual bool isAlreadyAssigned(
84 int cycle, const MoveNode& node,
85 const TTAMachine::Bus* preassignedBus) const override;
86 virtual bool isApplicable(
87 const MoveNode& node, const TTAMachine::Bus* preAssigndBus = 0)
88 const override;
89 virtual void assign(int cycle, MoveNode& node, SchedulingResource& res,
90 int immWriteCycle, int immRegIndex) override;
91
92 virtual void unassign(MoveNode& node) override;
93
94 virtual void buildResources(const TTAMachine::Machine& target) override;
95 virtual void setupResourceLinks(const ResourceMapper& mapper) override;
96};
97
98#endif
virtual void setupResourceLinks(const ResourceMapper &mapper) override
virtual int latestCycle(int cycle, const MoveNode &node, const TTAMachine::Bus *bus, const TTAMachine::FunctionUnit *srcFU, const TTAMachine::FunctionUnit *dstFU, int immWriteCycle, const TTAMachine::ImmediateUnit *immu, int immRegIndex) const override
virtual void buildResources(const TTAMachine::Machine &target) override
virtual bool isApplicable(const MoveNode &node, const TTAMachine::Bus *preAssigndBus=0) const override
virtual void assign(int cycle, MoveNode &node, SchedulingResource &res, int immWriteCycle, int immRegIndex) override
virtual bool isAlreadyAssigned(int cycle, const MoveNode &node, const TTAMachine::Bus *preassignedBus) const override
virtual void unassign(MoveNode &node) override
virtual int earliestCycle(int cycle, const MoveNode &node, const TTAMachine::Bus *bus, const TTAMachine::FunctionUnit *srcFU, const TTAMachine::FunctionUnit *dstFU, int immWriteCycle, const TTAMachine::ImmediateUnit *immu, int immRegIndex) const override
virtual SchedulingResourceSet allAvailableResources(int cycle, const MoveNode &node, const TTAMachine::Bus *bus, const TTAMachine::FunctionUnit *srcFU, const TTAMachine::FunctionUnit *dstFU, int immWriteCycle, const TTAMachine::ImmediateUnit *immu, int immRegIndex) const override
virtual ~InputFUBroker()