OpenASIP  2.0
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 
37 namespace ProGe {
38 /**
39  * List of different types of signal. The types are also used as numerical IDs
40  * for connecting similiar NetlistPorts together.
41  */
42 enum 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.
48  INTERNAL,
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.
61  FETCHBLOCK,
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.
75  WRITEMODE,
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.
88  READ_DATA,
89  WRITE_DATA,
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 
118 enum class ActiveState {
119  HIGH = 0,
120  LOW
121 };
122 }
123 
124 #endif /* SIGNALTYPES_HH */
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::SignalType::CORE_HALT_STATUS
@ CORE_HALT_STATUS
Signal that tell if core is halted.
ProGe::SignalType::WRITE_BITMASK
@ WRITE_BITMASK
ProGe::SignalType::RVALID
@ RVALID
ProGe::SignalType::RESET
@ RESET
Reset signal.
ProGe::SignalType::WRITE_DATA
@ WRITE_DATA
ProGe::SignalType::ASTRB
@ ASTRB
ProGe::SignalType::WRITE_REQUEST
@ WRITE_REQUEST
Signal to make write request.
ProGe::ActiveState::HIGH
@ HIGH
ProGe::SignalType::UNDEFINED
@ UNDEFINED
Signal does not have specified usage.
ProGe::SignalType::AREADY
@ AREADY
ProGe::SignalType::WRITEMODE
@ WRITEMODE
Signal to choose mode for READ_WRITE_REQUEST or similar.
ProGe::ActiveState::LOW
@ LOW
ProGe::SignalType::INTERNAL
@ INTERNAL
Signal is internally defined custom signal.
ProGe::SignalType::GLOCK_REQUEST
@ GLOCK_REQUEST
TTA Global lock request signal.
ProGe::SignalType::STALL
@ STALL
Signal to stopping destination device.
ProGe::SignalType::GLOCK
@ GLOCK
TTA Global lock signal.
ProGe::SignalType::BURST_READ_REQUEST
@ BURST_READ_REQUEST
Signal to make burst read request.
ProGe::SignalType::AADDR
@ AADDR
ProGe::SignalType::ADDRESS
@ ADDRESS
Signal holds address.
ProGe::SignalType::RDATA
@ RDATA
ProGe::SignalType::OPEN
@ OPEN
Signal is left to unconnected.
ProGe::SignalType::CLOCK
@ CLOCK
Clock signal.
ProGe::SignalType::READ_WRITE_REQUEST
@ READ_WRITE_REQUEST
Signal to make either read or write request.
ProGe::SignalType::INSTRUCTIONWORD
@ INSTRUCTIONWORD
Signal contains TTA (decompressed) instruction.
ProGe::SignalType::READ_REQUEST_READY
@ READ_REQUEST_READY
Signal to tell that requested data can be read.
ProGe::SignalType
SignalType
Definition: SignalTypes.hh:42
ProGe::SignalType::ADATA
@ ADATA
ProGe::SignalType::USERDEFINED
@ USERDEFINED
Signal is externally defined custom signal.
ProGe::SignalType::INVALIDATE_CACHE
@ INVALIDATE_CACHE
Cache Invalidation signal.
ProGe::SignalType::READ_REQUEST
@ READ_REQUEST
Signal to make read request.
ProGe::SignalType::READ_DATA
@ READ_DATA
ProGe
Definition: FUGen.hh:54
ProGe::SignalType::AWREN
@ AWREN
ProGe::SignalType::BUSY
@ BUSY
Signal telling that source device is not ready to handle a request.
ProGe::SignalType::RREADY
@ RREADY
ProGe::ActiveState
ActiveState
Definition: SignalTypes.hh:118
ProGe::SignalType::ENABLE
@ ENABLE
Signal to enable or activate a device.