gem5  v20.1.0.0
CommonTypes.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 Princeton University
3  * Copyright (c) 2016 Georgia Institute of Technology
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are
8  * met: redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer;
10  * redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution;
13  * neither the name of the copyright holders nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 
31 #ifndef __MEM_RUBY_NETWORK_GARNET_0_COMMONTYPES_HH__
32 #define __MEM_RUBY_NETWORK_GARNET_0_COMMONTYPES_HH__
33 
35 
36 // All common enums and typedefs go here
37 
44 enum RoutingAlgorithm { TABLE_ = 0, XY_ = 1, CUSTOM_ = 2,
46 
47 struct RouteInfo
48 {
50  : vnet(0), src_ni(0), src_router(0), dest_ni(0), dest_router(0),
52  {}
53 
54  // destination format for table-based routing
55  int vnet;
57 
58  // src and dest format for topology-specific routing
59  int src_ni;
61  int dest_ni;
64 };
65 
66 #define INFINITE_ 10000
67 
68 #endif //__MEM_RUBY_NETWORK_GARNET_0_COMMONTYPES_HH__
NUM_LINK_TYPES_
@ NUM_LINK_TYPES_
Definition: CommonTypes.hh:43
VA_
@ VA_
Definition: CommonTypes.hh:42
RouteInfo::dest_ni
int dest_ni
Definition: CommonTypes.hh:61
DATA_VNET_
@ DATA_VNET_
Definition: CommonTypes.hh:41
RouteInfo
Definition: CommonTypes.hh:47
flit_stage
flit_stage
Definition: CommonTypes.hh:42
TABLE_
@ TABLE_
Definition: CommonTypes.hh:44
NUM_VC_STATE_TYPE_
@ NUM_VC_STATE_TYPE_
Definition: CommonTypes.hh:40
XY_
@ XY_
Definition: CommonTypes.hh:44
I_
@ I_
Definition: CommonTypes.hh:42
NUM_FLIT_TYPE_
@ NUM_FLIT_TYPE_
Definition: CommonTypes.hh:39
IDLE_
@ IDLE_
Definition: CommonTypes.hh:40
INT_
@ INT_
Definition: CommonTypes.hh:43
EXT_IN_
@ EXT_IN_
Definition: CommonTypes.hh:43
CTRL_VNET_
@ CTRL_VNET_
Definition: CommonTypes.hh:41
CREDIT_
@ CREDIT_
Definition: CommonTypes.hh:39
VC_state_type
VC_state_type
Definition: CommonTypes.hh:40
RouteInfo::src_router
int src_router
Definition: CommonTypes.hh:60
CUSTOM_
@ CUSTOM_
Definition: CommonTypes.hh:44
RouteInfo::src_ni
int src_ni
Definition: CommonTypes.hh:59
RoutingAlgorithm
RoutingAlgorithm
Definition: CommonTypes.hh:44
HEAD_
@ HEAD_
Definition: CommonTypes.hh:38
ACTIVE_
@ ACTIVE_
Definition: CommonTypes.hh:40
RouteInfo::RouteInfo
RouteInfo()
Definition: CommonTypes.hh:49
BODY_
@ BODY_
Definition: CommonTypes.hh:38
LT_
@ LT_
Definition: CommonTypes.hh:42
ST_
@ ST_
Definition: CommonTypes.hh:42
RouteInfo::net_dest
NetDest net_dest
Definition: CommonTypes.hh:56
NULL_VNET_
@ NULL_VNET_
Definition: CommonTypes.hh:41
EXT_OUT_
@ EXT_OUT_
Definition: CommonTypes.hh:43
TAIL_
@ TAIL_
Definition: CommonTypes.hh:38
link_type
link_type
Definition: CommonTypes.hh:43
RouteInfo::dest_router
int dest_router
Definition: CommonTypes.hh:62
HEAD_TAIL_
@ HEAD_TAIL_
Definition: CommonTypes.hh:38
flit_type
flit_type
Definition: CommonTypes.hh:38
RouteInfo::hops_traversed
int hops_traversed
Definition: CommonTypes.hh:63
NUM_VNET_TYPE_
@ NUM_VNET_TYPE_
Definition: CommonTypes.hh:41
VNET_type
VNET_type
Definition: CommonTypes.hh:41
RouteInfo::vnet
int vnet
Definition: CommonTypes.hh:55
SA_
@ SA_
Definition: CommonTypes.hh:42
NUM_FLIT_STAGE_
@ NUM_FLIT_STAGE_
Definition: CommonTypes.hh:42
NetDest
Definition: NetDest.hh:39
NetDest.hh
VC_AB_
@ VC_AB_
Definition: CommonTypes.hh:40
NUM_ROUTING_ALGORITHM_
@ NUM_ROUTING_ALGORITHM_
Definition: CommonTypes.hh:45

Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17