OpenASIP
2.0
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Functions
a
b
c
d
f
g
i
l
m
n
o
p
s
Variables
Typedefs
a
b
c
d
e
f
i
n
p
r
s
t
Enumerations
Enumerator
b
c
f
g
h
i
l
m
o
r
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
z
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
x
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
f
i
j
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
applibs
ProGe
SignalGroupDefinitions.cc
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2015 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 SignalGroupDefinitions.cc
26
*
27
* Created on: 3.6.2015
28
* @author Henry Linjam�ki 2015 (henry.linjamaki-no.spam-tut.fi)
29
* @note rating: red
30
*/
31
32
#include "
SignalGroupDefinitions.hh
"
33
#include "
SignalTypes.hh
"
34
#include "
SignalGroupTypes.hh
"
35
36
#include <map>
37
38
namespace
ProGe
{
39
40
// Signal Group Definitions //
41
namespace
{
42
const
std::map<SignalGroupType, std::set<SignalType> > definitions {
43
{
44
SignalGroupType::INSTRUCTION_LINE
, {
45
SignalType::READ_REQUEST
,
46
SignalType::ADDRESS
,
47
SignalType::FETCHBLOCK
,
48
SignalType::READ_REQUEST_READY
49
}
50
}, {
51
SignalGroupType::BURST_INSTRUCTION
, {
52
SignalType::BURST_READ_REQUEST
,
53
SignalType::ADDRESS
,
54
SignalType::FETCHBLOCK
,
55
SignalType::BURST_READ_REQUEST_READY
,
56
}
57
}, {
58
SignalGroupType::BITMASKED_SRAM_PORT
, {
59
SignalType::ADDRESS
,
60
SignalType::WRITE_DATA
,
61
SignalType::READ_DATA
,
62
SignalType::WRITEMODE
,
63
SignalType::WRITE_BITMASK
,
64
SignalType::READ_WRITE_REQUEST
65
}
66
}, {
67
SignalGroupType::BYTEMASKED_SRAM_PORT
, {
68
SignalType::AVALID
,
69
SignalType::AREADY
,
70
SignalType::AADDR
,
71
SignalType::AWREN
,
72
SignalType::ASTRB
,
73
SignalType::RVALID
,
74
SignalType::RREADY
,
75
SignalType::RDATA
,
76
SignalType::ADATA
77
}
78
}
79
};
/* end of definitions */
80
}
/* end of anonymous namespace*/
81
82
/**
83
* Returns set of SignalTypes defined by SignalGroupType.
84
*/
85
std::set<SignalType>
86
signalGroupDefinition
(
SignalGroupType
type) {
87
if
(definitions.count(type)) {
88
return
definitions.at(type);
89
}
else
{
90
return
std::set<SignalType>();
91
}
92
}
93
94
}
/* namespace ProGe */
ProGe::SignalType::AVALID
@ AVALID
Signal types for memory interface with separate valid/ready in address/data.
ProGe::SignalType::BURST_READ_REQUEST_READY
@ BURST_READ_REQUEST_READY
Signal to tell that part of burst-requested data can be read.
ProGe::SignalType::FETCHBLOCK
@ FETCHBLOCK
Signal is TTA instruction block block containing (compressed) instruction.
ProGe::SignalGroupType::BYTEMASKED_SRAM_PORT
@ BYTEMASKED_SRAM_PORT
Signal group type for one port SRAM having read and write capability and bitmask for writing with sep...
ProGe::SignalType::WRITE_BITMASK
@ WRITE_BITMASK
ProGe::SignalType::RVALID
@ RVALID
ProGe::SignalType::WRITE_DATA
@ WRITE_DATA
ProGe::SignalType::ASTRB
@ ASTRB
ProGe::SignalType::AREADY
@ AREADY
ProGe::SignalGroupType::INSTRUCTION_LINE
@ INSTRUCTION_LINE
Signal group type for serial TTA instruction bus.
ProGe::SignalType::WRITEMODE
@ WRITEMODE
Signal to choose mode for READ_WRITE_REQUEST or similar.
SignalTypes.hh
ProGe::SignalType::BURST_READ_REQUEST
@ BURST_READ_REQUEST
Signal to make burst read request.
ProGe::SignalType::AADDR
@ AADDR
SignalGroupDefinitions.hh
ProGe::SignalType::ADDRESS
@ ADDRESS
Signal holds address.
ProGe::SignalType::RDATA
@ RDATA
ProGe::SignalGroupType::BITMASKED_SRAM_PORT
@ BITMASKED_SRAM_PORT
Signal group type for one port SRAM having read and write capability and bitmask for writing.
ProGe::SignalType::READ_WRITE_REQUEST
@ READ_WRITE_REQUEST
Signal to make either read or write request.
ProGe::SignalType::READ_REQUEST_READY
@ READ_REQUEST_READY
Signal to tell that requested data can be read.
ProGe::SignalType::ADATA
@ ADATA
ProGe::SignalType::READ_REQUEST
@ READ_REQUEST
Signal to make read request.
ProGe::SignalType::READ_DATA
@ READ_DATA
ProGe::signalGroupDefinition
std::set< SignalType > signalGroupDefinition(SignalGroupType type)
Definition:
SignalGroupDefinitions.cc:86
ProGe
Definition:
FUGen.hh:54
ProGe::SignalType::AWREN
@ AWREN
SignalGroupTypes.hh
ProGe::SignalGroupType
SignalGroupType
Definition:
SignalGroupTypes.hh:43
ProGe::SignalGroupType::BURST_INSTRUCTION
@ BURST_INSTRUCTION
Signal group type for burst TTA instruction bus.
ProGe::SignalType::RREADY
@ RREADY
Generated by
1.8.17