OpenASIP
2.0
src
applibs
Simulator
BuslessExecutableMove.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 BuslessExecutableMove.hh
26
*
27
* Declaration of BuslessExecutableMove class.
28
*
29
* @author Pekka Jääskeläinen 2005 (pjaaskel-no.spam-cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_BUSLESS_EXECUTABLE_MOVE_HH
34
#define TTA_BUSLESS_EXECUTABLE_MOVE_HH
35
36
#include "
ExecutableMove.hh
"
37
#include "
InlineImmediateValue.hh
"
38
39
class
ReadableState
;
40
class
BusState
;
41
class
WritableState
;
42
class
SimValue
;
43
44
45
/**
46
* Represents an interpreted move which does not utilize a transport bus.
47
*
48
* Moves that utilize this class include control unit internal moves such
49
* as control flow operations (jump, call) with immediate or RA source.
50
* This class can be used also for simulating data transports of sequential
51
* code, as writing to (the universal) bus is not necessary in that case.
52
*/
53
class
BuslessExecutableMove
:
public
ExecutableMove
{
54
public
:
55
BuslessExecutableMove
(
56
const
ReadableState
& src,
57
WritableState
& dst);
58
59
BuslessExecutableMove
(
60
const
ReadableState
& src,
61
WritableState
& dst,
62
const
ReadableState
& guardReg,
63
bool
negated);
64
65
BuslessExecutableMove
(
66
InlineImmediateValue
* immediateSource,
67
WritableState
& dst,
68
const
ReadableState
& guardReg,
69
bool
negated);
70
71
BuslessExecutableMove
(
72
InlineImmediateValue
* immediateSource,
73
WritableState
& dst);
74
75
virtual
~BuslessExecutableMove
();
76
77
virtual
void
executeRead
();
78
virtual
void
executeWrite
();
79
80
private
:
81
/// Copying not allowed.
82
BuslessExecutableMove
(
const
BuslessExecutableMove
&);
83
/// Assignment not allowed.
84
BuslessExecutableMove
&
operator=
(
const
BuslessExecutableMove
&);
85
};
86
87
#endif
BuslessExecutableMove::executeWrite
virtual void executeWrite()
Definition:
BuslessExecutableMove.cc:132
ReadableState
Definition:
ReadableState.hh:41
BuslessExecutableMove::~BuslessExecutableMove
virtual ~BuslessExecutableMove()
Definition:
BuslessExecutableMove.cc:113
WritableState
Definition:
WritableState.hh:41
BusState
Definition:
BusState.hh:48
BuslessExecutableMove::operator=
BuslessExecutableMove & operator=(const BuslessExecutableMove &)
Assignment not allowed.
SimValue
Definition:
SimValue.hh:96
BuslessExecutableMove::BuslessExecutableMove
BuslessExecutableMove(const ReadableState &src, WritableState &dst)
Definition:
BuslessExecutableMove.cc:45
InlineImmediateValue.hh
BuslessExecutableMove
Definition:
BuslessExecutableMove.hh:53
ExecutableMove
Definition:
ExecutableMove.hh:52
BuslessExecutableMove::executeRead
virtual void executeRead()
Definition:
BuslessExecutableMove.cc:122
ExecutableMove.hh
RegisterState
Definition:
RegisterState.hh:50
Generated by
1.8.17