OpenASIP 2.2
Loading...
Searching...
No Matches
SignalTypes.hh
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 SignalTypes.hh
26 *
27 * Declaration of SignalTypes class.
28 *
29 * Created on: 25.5.2015
30 * @author Henry Linjam�ki 2015 (henry.linjamaki-no.spam-tut.fi)
31 * @note rating: red
32 */
33
34#ifndef SIGNALTYPES_HH
35#define SIGNALTYPES_HH
36
37namespace ProGe {
38/**
39 * List of different types of signal. The types are also used as numerical IDs
40 * for connecting similiar NetlistPorts together.
41 */
42enum class SignalType {
43 /// Signal does not have specified usage.
44 UNDEFINED = 0,
45 /// Signal is left to unconnected.
46 OPEN,
47 /// Signal is internally defined custom signal.
49 /// Signal is externally defined custom signal.
51 /// Clock signal.
52 CLOCK,
53 /// Reset signal.
54 RESET,
55 /// Signal holds address.
56 ADDRESS,
57 /// Signal contains TTA (decompressed) instruction.
59 /// Signal is TTA instruction block block containing (compressed)
60 /// instruction.
62 /// Signal to make read request.
64 /// Signal to make burst read request.
66 /// Signal to tell that requested data can be read.
68 /// Signal to tell that part of burst-requested data can be read.
70 /// Signal to make write request.
72 /// Signal to make either read or write request.
74 /// Signal to choose mode for READ_WRITE_REQUEST or similar.
76 /// Signal to enable or activate a device.
77 ENABLE,
78 /// Signal telling that source device is not ready to handle a request.
79 BUSY,
80 /// Signal to stopping destination device.
81 STALL = BUSY,
82 /// TTA Global lock request signal.
84 /// TTA Global lock signal.
85 GLOCK,
86 /// Cache Invalidation signal.
91 /// Signal that tell if core is halted.
93
94 /// Signal types for memory interface with separate
95 /// valid/ready in address/data
96 AVALID,
97 AREADY,
98 AADDR,
99 AWREN,
100 ASTRB,
101 RVALID,
102 RREADY,
103 RDATA,
104 ADATA
105
106 //todo consider these:
107 //DATA
108 //DATA0..DATAn < for vectors, 0..n to point vector element
109 //VECTORDATA < alternative for vector, SignalID to point vector element
110 //INSTRUCTION_ADDRESS
111 //DATA_ADDRESS
112 //FU_OPCODE
113 //FU_TRIGGER or FU_TRIGGER_LOAD = WRITE_REQUEST = LOAD
114 //FU_DATA < Either for trigger, operand or result data. Determined by
115 // associated SignalGroupType
116};
117
118enum class ActiveState {
119 HIGH = 0,
120 LOW
121};
122}
123
124#endif /* SIGNALTYPES_HH */
Definition FUGen.hh:54
@ INTERNAL
Signal group is internally defined custom signal.
@ USERDEFINED
Signal group is externally defined custom signal.
@ READ_REQUEST
Signal to make read request.
@ ADDRESS
Signal holds address.
@ BURST_READ_REQUEST
Signal to make burst read request.
@ READ_REQUEST_READY
Signal to tell that requested data can be read.
@ READ_WRITE_REQUEST
Signal to make either read or write request.
@ WRITEMODE
Signal to choose mode for READ_WRITE_REQUEST or similar.
@ BUSY
Signal telling that source device is not ready to handle a request.
@ FETCHBLOCK
Signal is TTA instruction block block containing (compressed) instruction.
@ OPEN
Signal is left to unconnected.
@ INSTRUCTIONWORD
Signal contains TTA (decompressed) instruction.
@ GLOCK_REQUEST
TTA Global lock request signal.
@ INVALIDATE_CACHE
Cache Invalidation signal.
@ BURST_READ_REQUEST_READY
Signal to tell that part of burst-requested data can be read.
@ ENABLE
Signal to enable or activate a device.
@ RESET
Reset signal.
@ AVALID
Signal types for memory interface with separate valid/ready in address/data.
@ GLOCK
TTA Global lock signal.
@ STALL
Signal to stopping destination device.
@ CLOCK
Clock signal.
@ CORE_HALT_STATUS
Signal that tell if core is halted.
@ WRITE_REQUEST
Signal to make write request.