OpenASIP  2.0
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 
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  {
49  }
50  }, {
56  }
57  }, {
65  }
66  }, {
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>
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