OpenASIP
2.0
src
base
mach
ImmediateSlot.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 ImmediateSlot.hh
26
*
27
* Declaration of ImmediateSlot class.
28
*
29
* @author Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_IMMEDIATE_SLOT_HH
34
#define TTA_IMMEDIATE_SLOT_HH
35
36
#include "
MachinePart.hh
"
37
38
namespace
TTAMachine
{
39
40
/**
41
* Immediate slot is a machine component and represents a dedicated long
42
* immediate field in the TTA instruction.
43
*/
44
class
ImmediateSlot
:
public
Component
{
45
public
:
46
ImmediateSlot
(
const
std::string&
name
,
Machine
& parent);
47
ImmediateSlot
(
const
ObjectState
* state,
Machine
& parent);
48
virtual
~ImmediateSlot
();
49
50
int
width
()
const
;
51
52
virtual
void
setMachine
(
Machine
&
machine
);
53
virtual
void
unsetMachine
();
54
virtual
void
setName
(
const
std::string&
name
);
55
56
virtual
ObjectState
*
saveState
()
const
;
57
virtual
void
loadState
(
const
ObjectState
* state);
58
59
/// ObjectState name for ImmediateSlot.
60
static
const
std::string
OSNAME_IMMEDIATE_SLOT
;
61
};
62
}
63
64
#endif
TTAMachine::Component::name
virtual TCEString name() const
Definition:
MachinePart.cc:125
TTAMachine::ImmediateSlot::setMachine
virtual void setMachine(Machine &machine)
Definition:
ImmediateSlot.cc:142
ObjectState
Definition:
ObjectState.hh:59
TTAMachine::ImmediateSlot::setName
virtual void setName(const std::string &name)
Definition:
ImmediateSlot.cc:178
MachinePart.hh
TTAMachine::ImmediateSlot::ImmediateSlot
ImmediateSlot(const std::string &name, Machine &parent)
Definition:
ImmediateSlot.cc:57
TTAMachine::ImmediateSlot::OSNAME_IMMEDIATE_SLOT
static const std::string OSNAME_IMMEDIATE_SLOT
ObjectState name for ImmediateSlot.
Definition:
ImmediateSlot.hh:60
TTAMachine::Component
Definition:
MachinePart.hh:90
TTAMachine::ImmediateSlot::unsetMachine
virtual void unsetMachine()
Definition:
ImmediateSlot.cc:151
TTAMachine::ImmediateSlot::saveState
virtual ObjectState * saveState() const
Definition:
ImmediateSlot.cc:199
TTAMachine::ImmediateSlot::width
int width() const
Definition:
ImmediateSlot.cc:117
TTAMachine::ImmediateSlot::loadState
virtual void loadState(const ObjectState *state)
Definition:
ImmediateSlot.cc:214
TTAMachine::ImmediateSlot::~ImmediateSlot
virtual ~ImmediateSlot()
Definition:
ImmediateSlot.cc:103
TTAMachine::Component::machine
virtual Machine * machine() const
TTAMachine
Definition:
Assembler.hh:48
TTAMachine::ImmediateSlot
Definition:
ImmediateSlot.hh:44
TTAMachine::Machine
Definition:
Machine.hh:73
Generated by
1.8.17