gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GarnetNetwork.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Advanced Micro Devices, Inc.
3  * Copyright (c) 2008 Princeton University
4  * Copyright (c) 2016 Georgia Institute of Technology
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are
9  * met: redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer;
11  * redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution;
14  * neither the name of the copyright holders nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30 
31 
33 
34 #include <cassert>
35 
36 #include "base/cast.hh"
37 #include "debug/RubyNetwork.hh"
47 
48 /*
49  * GarnetNetwork sets up the routers and links and collects stats.
50  * Default parameters (GarnetNetwork.py) can be overwritten from command line
51  * (see configs/network/Network.py)
52  */
53 
55  : Network(p)
56 {
57  m_num_rows = p.num_rows;
58  m_ni_flit_size = p.ni_flit_size;
60  m_buffers_per_data_vc = p.buffers_per_data_vc;
61  m_buffers_per_ctrl_vc = p.buffers_per_ctrl_vc;
62  m_routing_algorithm = p.routing_algorithm;
63 
64  m_enable_fault_model = p.enable_fault_model;
66  fault_model = p.fault_model;
67 
69 
70  for (int i = 0 ; i < m_virtual_networks ; i++) {
71  if (m_vnet_type_names[i] == "response")
72  m_vnet_type[i] = DATA_VNET_; // carries data (and ctrl) packets
73  else
74  m_vnet_type[i] = CTRL_VNET_; // carries only ctrl packets
75  }
76 
77  // record the routers
78  for (std::vector<BasicRouter*>::const_iterator i = p.routers.begin();
79  i != p.routers.end(); ++i) {
80  Router* router = safe_cast<Router*>(*i);
81  m_routers.push_back(router);
82 
83  // initialize the router's network pointers
84  router->init_net_ptr(this);
85  }
86 
87  // record the network interfaces
88  for (std::vector<ClockedObject*>::const_iterator i = p.netifs.begin();
89  i != p.netifs.end(); ++i) {
90  NetworkInterface *ni = safe_cast<NetworkInterface *>(*i);
91  m_nis.push_back(ni);
92  ni->init_net_ptr(this);
93  }
94 
95  // Print Garnet version
96  inform("Garnet version %s\n", garnetVersion);
97 }
98 
99 void
101 {
102  Network::init();
103 
104  for (int i=0; i < m_nodes; i++) {
105  m_nis[i]->addNode(m_toNetQueues[i], m_fromNetQueues[i]);
106  }
107 
108  // The topology pointer should have already been initialized in the
109  // parent network constructor
110  assert(m_topology_ptr != NULL);
112 
113  // Initialize topology specific parameters
114  if (getNumRows() > 0) {
115  // Only for Mesh topology
116  // m_num_rows and m_num_cols are only used for
117  // implementing XY or custom routing in RoutingUnit.cc
119  m_num_cols = m_routers.size() / m_num_rows;
120  assert(m_num_rows * m_num_cols == m_routers.size());
121  } else {
122  m_num_rows = -1;
123  m_num_cols = -1;
124  }
125 
126  // FaultModel: declare each router to the fault model
127  if (isFaultModelEnabled()) {
129  i != m_routers.end(); ++i) {
130  Router* router = safe_cast<Router*>(*i);
131  M5_VAR_USED int router_id =
133  router->get_num_outports(),
134  router->get_vc_per_vnet(),
137  assert(router_id == router->get_id());
138  router->printAggregateFaultProbability(std::cout);
139  router->printFaultVector(std::cout);
140  }
141  }
142 }
143 
144 /*
145  * This function creates a link from the Network Interface (NI)
146  * into the Network.
147  * It creates a Network Link from the NI to a Router and a Credit Link from
148  * the Router to the NI
149 */
150 
151 void
153  std::vector<NetDest>& routing_table_entry)
154 {
155  NodeID local_src = getLocalNodeID(global_src);
156  assert(local_src < m_nodes);
157 
158  GarnetExtLink* garnet_link = safe_cast<GarnetExtLink*>(link);
159 
160  // GarnetExtLink is bi-directional
161  NetworkLink* net_link = garnet_link->m_network_links[LinkDirection_In];
162  net_link->setType(EXT_IN_);
163  CreditLink* credit_link = garnet_link->m_credit_links[LinkDirection_In];
164 
165  m_networklinks.push_back(net_link);
166  m_creditlinks.push_back(credit_link);
167 
168  PortDirection dst_inport_dirn = "Local";
169 
171  m_routers[dest]->get_vc_per_vnet());
172 
173  /*
174  * We check if a bridge was enabled at any end of the link.
175  * The bridge is enabled if either of clock domain
176  * crossing (CDC) or Serializer-Deserializer(SerDes) unit is
177  * enabled for the link at each end. The bridge encapsulates
178  * the functionality for both CDC and SerDes and is a Consumer
179  * object similiar to a NetworkLink.
180  *
181  * If a bridge was enabled we connect the NI and Routers to
182  * bridge before connecting the link. Example, if an external
183  * bridge is enabled, we would connect:
184  * NI--->NetworkBridge--->GarnetExtLink---->Router
185  */
186  if (garnet_link->extBridgeEn) {
187  DPRINTF(RubyNetwork, "Enable external bridge for %s\n",
188  garnet_link->name());
189  m_nis[local_src]->
190  addOutPort(garnet_link->extNetBridge[LinkDirection_In],
191  garnet_link->extCredBridge[LinkDirection_In],
192  dest, m_routers[dest]->get_vc_per_vnet());
193  } else {
194  m_nis[local_src]->addOutPort(net_link, credit_link, dest,
195  m_routers[dest]->get_vc_per_vnet());
196  }
197 
198  if (garnet_link->intBridgeEn) {
199  DPRINTF(RubyNetwork, "Enable internal bridge for %s\n",
200  garnet_link->name());
201  m_routers[dest]->
202  addInPort(dst_inport_dirn,
203  garnet_link->intNetBridge[LinkDirection_In],
204  garnet_link->intCredBridge[LinkDirection_In]);
205  } else {
206  m_routers[dest]->addInPort(dst_inport_dirn, net_link, credit_link);
207  }
208 
209 }
210 
211 /*
212  * This function creates a link from the Network to a NI.
213  * It creates a Network Link from a Router to the NI and
214  * a Credit Link from NI to the Router
215 */
216 
217 void
219  BasicLink* link,
220  std::vector<NetDest>& routing_table_entry)
221 {
222  NodeID local_dest = getLocalNodeID(global_dest);
223  assert(local_dest < m_nodes);
224  assert(src < m_routers.size());
225  assert(m_routers[src] != NULL);
226 
227  GarnetExtLink* garnet_link = safe_cast<GarnetExtLink*>(link);
228 
229  // GarnetExtLink is bi-directional
230  NetworkLink* net_link = garnet_link->m_network_links[LinkDirection_Out];
231  net_link->setType(EXT_OUT_);
232  CreditLink* credit_link = garnet_link->m_credit_links[LinkDirection_Out];
233 
234  m_networklinks.push_back(net_link);
235  m_creditlinks.push_back(credit_link);
236 
237  PortDirection src_outport_dirn = "Local";
238 
240  m_routers[src]->get_vc_per_vnet());
241 
242  /*
243  * We check if a bridge was enabled at any end of the link.
244  * The bridge is enabled if either of clock domain
245  * crossing (CDC) or Serializer-Deserializer(SerDes) unit is
246  * enabled for the link at each end. The bridge encapsulates
247  * the functionality for both CDC and SerDes and is a Consumer
248  * object similiar to a NetworkLink.
249  *
250  * If a bridge was enabled we connect the NI and Routers to
251  * bridge before connecting the link. Example, if an external
252  * bridge is enabled, we would connect:
253  * NI<---NetworkBridge<---GarnetExtLink<----Router
254  */
255  if (garnet_link->extBridgeEn) {
256  DPRINTF(RubyNetwork, "Enable external bridge for %s\n",
257  garnet_link->name());
258  m_nis[local_dest]->
259  addInPort(garnet_link->extNetBridge[LinkDirection_Out],
260  garnet_link->extCredBridge[LinkDirection_Out]);
261  } else {
262  m_nis[local_dest]->addInPort(net_link, credit_link);
263  }
264 
265  if (garnet_link->intBridgeEn) {
266  DPRINTF(RubyNetwork, "Enable internal bridge for %s\n",
267  garnet_link->name());
268  m_routers[src]->
269  addOutPort(src_outport_dirn,
270  garnet_link->intNetBridge[LinkDirection_Out],
271  routing_table_entry, link->m_weight,
272  garnet_link->intCredBridge[LinkDirection_Out],
273  m_routers[src]->get_vc_per_vnet());
274  } else {
275  m_routers[src]->
276  addOutPort(src_outport_dirn, net_link,
277  routing_table_entry,
278  link->m_weight, credit_link,
279  m_routers[src]->get_vc_per_vnet());
280  }
281 }
282 
283 /*
284  * This function creates an internal network link between two routers.
285  * It adds both the network link and an opposite credit link.
286 */
287 
288 void
290  std::vector<NetDest>& routing_table_entry,
291  PortDirection src_outport_dirn,
292  PortDirection dst_inport_dirn)
293 {
294  GarnetIntLink* garnet_link = safe_cast<GarnetIntLink*>(link);
295 
296  // GarnetIntLink is unidirectional
297  NetworkLink* net_link = garnet_link->m_network_link;
298  net_link->setType(INT_);
299  CreditLink* credit_link = garnet_link->m_credit_link;
300 
301  m_networklinks.push_back(net_link);
302  m_creditlinks.push_back(credit_link);
303 
305  std::max(m_routers[dest]->get_vc_per_vnet(),
306  m_routers[src]->get_vc_per_vnet()));
307 
308  /*
309  * We check if a bridge was enabled at any end of the link.
310  * The bridge is enabled if either of clock domain
311  * crossing (CDC) or Serializer-Deserializer(SerDes) unit is
312  * enabled for the link at each end. The bridge encapsulates
313  * the functionality for both CDC and SerDes and is a Consumer
314  * object similiar to a NetworkLink.
315  *
316  * If a bridge was enabled we connect the NI and Routers to
317  * bridge before connecting the link. Example, if a source
318  * bridge is enabled, we would connect:
319  * Router--->NetworkBridge--->GarnetIntLink---->Router
320  */
321  if (garnet_link->dstBridgeEn) {
322  DPRINTF(RubyNetwork, "Enable destination bridge for %s\n",
323  garnet_link->name());
324  m_routers[dest]->addInPort(dst_inport_dirn,
325  garnet_link->dstNetBridge, garnet_link->dstCredBridge);
326  } else {
327  m_routers[dest]->addInPort(dst_inport_dirn, net_link, credit_link);
328  }
329 
330  if (garnet_link->srcBridgeEn) {
331  DPRINTF(RubyNetwork, "Enable source bridge for %s\n",
332  garnet_link->name());
333  m_routers[src]->
334  addOutPort(src_outport_dirn, garnet_link->srcNetBridge,
335  routing_table_entry,
336  link->m_weight, garnet_link->srcCredBridge,
337  m_routers[dest]->get_vc_per_vnet());
338  } else {
339  m_routers[src]->addOutPort(src_outport_dirn, net_link,
340  routing_table_entry,
341  link->m_weight, credit_link,
342  m_routers[dest]->get_vc_per_vnet());
343  }
344 }
345 
346 // Total routers in the network
347 int
349 {
350  return m_routers.size();
351 }
352 
353 // Get ID of router connected to a NI.
354 int
355 GarnetNetwork::get_router_id(int global_ni, int vnet)
356 {
357  NodeID local_ni = getLocalNodeID(global_ni);
358 
359  return m_nis[local_ni]->get_router_id(vnet);
360 }
361 
362 void
364 {
366 
367  // Packets
370  .name(name() + ".packets_received")
372  ;
373 
376  .name(name() + ".packets_injected")
378  ;
379 
382  .name(name() + ".packet_network_latency")
384  ;
385 
388  .name(name() + ".packet_queueing_latency")
390  ;
391 
392  for (int i = 0; i < m_virtual_networks; i++) {
393  m_packets_received.subname(i, csprintf("vnet-%i", i));
394  m_packets_injected.subname(i, csprintf("vnet-%i", i));
397  }
398 
400  .name(name() + ".average_packet_vnet_latency")
404 
406  .name(name() + ".average_packet_vqueue_latency")
410 
412  .name(name() + ".average_packet_network_latency");
415 
417  .name(name() + ".average_packet_queueing_latency");
420 
422  .name(name() + ".average_packet_latency");
425 
426  // Flits
429  .name(name() + ".flits_received")
431  ;
432 
435  .name(name() + ".flits_injected")
437  ;
438 
441  .name(name() + ".flit_network_latency")
443  ;
444 
447  .name(name() + ".flit_queueing_latency")
449  ;
450 
451  for (int i = 0; i < m_virtual_networks; i++) {
452  m_flits_received.subname(i, csprintf("vnet-%i", i));
453  m_flits_injected.subname(i, csprintf("vnet-%i", i));
454  m_flit_network_latency.subname(i, csprintf("vnet-%i", i));
456  }
457 
459  .name(name() + ".average_flit_vnet_latency")
462 
464  .name(name() + ".average_flit_vqueue_latency")
468 
470  .name(name() + ".average_flit_network_latency");
473 
475  .name(name() + ".average_flit_queueing_latency");
478 
480  .name(name() + ".average_flit_latency");
483 
484 
485  // Hops
486  m_avg_hops.name(name() + ".average_hops");
488 
489  // Links
491  .name(name() + ".ext_in_link_utilization");
493  .name(name() + ".ext_out_link_utilization");
495  .name(name() + ".int_link_utilization");
497  .name(name() + ".avg_link_utilization");
500  .name(name() + ".avg_vc_load")
502  ;
503 }
504 
505 void
507 {
508  RubySystem *rs = params().ruby_system;
509  double time_delta = double(curCycle() - rs->getStartCycle());
510 
511  for (int i = 0; i < m_networklinks.size(); i++) {
512  link_type type = m_networklinks[i]->getType();
513  int activity = m_networklinks[i]->getLinkUtilization();
514 
515  if (type == EXT_IN_)
517  else if (type == EXT_OUT_)
519  else if (type == INT_)
520  m_total_int_link_utilization += activity;
521 
523  (double(activity) / time_delta);
524 
525  std::vector<unsigned int> vc_load = m_networklinks[i]->getVcLoad();
526  for (int j = 0; j < vc_load.size(); j++) {
527  m_average_vc_load[j] += ((double)vc_load[j] / time_delta);
528  }
529  }
530 
531  // Ask the routers to collate their statistics
532  for (int i = 0; i < m_routers.size(); i++) {
533  m_routers[i]->collateStats();
534  }
535 }
536 
537 void
539 {
540  for (int i = 0; i < m_routers.size(); i++) {
541  m_routers[i]->resetStats();
542  }
543  for (int i = 0; i < m_networklinks.size(); i++) {
544  m_networklinks[i]->resetStats();
545  }
546  for (int i = 0; i < m_creditlinks.size(); i++) {
547  m_creditlinks[i]->resetStats();
548  }
549 }
550 
551 void
552 GarnetNetwork::print(std::ostream& out) const
553 {
554  out << "[GarnetNetwork]";
555 }
556 
557 uint32_t
559 {
560  uint32_t num_functional_writes = 0;
561 
562  for (unsigned int i = 0; i < m_routers.size(); i++) {
563  num_functional_writes += m_routers[i]->functionalWrite(pkt);
564  }
565 
566  for (unsigned int i = 0; i < m_nis.size(); ++i) {
567  num_functional_writes += m_nis[i]->functionalWrite(pkt);
568  }
569 
570  for (unsigned int i = 0; i < m_networklinks.size(); ++i) {
571  num_functional_writes += m_networklinks[i]->functionalWrite(pkt);
572  }
573 
574  return num_functional_writes;
575 }
Network::m_vnet_type_names
std::vector< std::string > m_vnet_type_names
Definition: Network.hh:151
GarnetNetwork::m_average_link_utilization
Stats::Scalar m_average_link_utilization
Definition: GarnetNetwork.hh:182
GarnetNetwork::m_avg_packet_vnet_latency
Stats::Formula m_avg_packet_vnet_latency
Definition: GarnetNetwork.hh:162
Stats::Group::regStats
virtual void regStats()
Callback to set stat parameters.
Definition: group.cc:63
GarnetNetwork::resetStats
void resetStats()
Callback to reset stats.
Definition: GarnetNetwork.cc:538
Router::get_id
int get_id()
Definition: Router.hh:81
GarnetNetwork::m_vnet_type
std::vector< VNET_type > m_vnet_type
Definition: GarnetNetwork.hh:192
GarnetNetwork::m_nis
std::vector< NetworkInterface * > m_nis
Definition: GarnetNetwork.hh:196
GarnetNetwork::m_num_cols
int m_num_cols
Definition: GarnetNetwork.hh:148
GarnetNetwork::m_packet_network_latency
Stats::Vector m_packet_network_latency
Definition: GarnetNetwork.hh:159
GarnetNetwork::m_flits_injected
Stats::Vector m_flits_injected
Definition: GarnetNetwork.hh:169
GarnetNetwork::get_router_id
int get_router_id(int ni, int vnet)
Definition: GarnetNetwork.cc:355
RiscvISA::sum
Bitfield< 18 > sum
Definition: registers.hh:634
DATA_VNET_
@ DATA_VNET_
Definition: CommonTypes.hh:41
GarnetNetwork::m_ni_flit_size
uint32_t m_ni_flit_size
Definition: GarnetNetwork.hh:149
ArmISA::i
Bitfield< 7 > i
Definition: miscregs_types.hh:63
GarnetNetwork::init
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
Definition: GarnetNetwork.cc:100
Router::printAggregateFaultProbability
void printAggregateFaultProbability(std::ostream &out)
Definition: Router.cc:258
GarnetNetwork::m_total_ext_out_link_utilization
Stats::Scalar m_total_ext_out_link_utilization
Definition: GarnetNetwork.hh:180
Network::m_toNetQueues
std::vector< std::vector< MessageBuffer * > > m_toNetQueues
Definition: Network.hh:157
GarnetNetwork::makeExtInLink
void makeExtInLink(NodeID src, SwitchID dest, BasicLink *link, std::vector< NetDest > &routing_table_entry)
Definition: GarnetNetwork.cc:152
GarnetNetwork::m_routers
std::vector< Router * > m_routers
Definition: GarnetNetwork.hh:193
cast.hh
GarnetNetwork::garnetVersion
const char * garnetVersion
Definition: GarnetNetwork.hh:59
GarnetNetwork::Params
GarnetNetworkParams Params
Definition: GarnetNetwork.hh:53
std::vector
STL vector class.
Definition: stl.hh:37
Network::m_virtual_networks
static uint32_t m_virtual_networks
Definition: Network.hh:150
Router::get_vc_per_vnet
uint32_t get_vc_per_vnet()
Definition: Router.hh:78
GarnetNetwork.hh
GarnetNetwork::getBuffersPerCtrlVC
uint32_t getBuffersPerCtrlVC()
Definition: GarnetNetwork.hh:70
GarnetNetwork::m_total_hops
Stats::Scalar m_total_hops
Definition: GarnetNetwork.hh:185
CommonTypes.hh
GarnetNetwork::m_flit_network_latency
Stats::Vector m_flit_network_latency
Definition: GarnetNetwork.hh:170
Router::printFaultVector
void printFaultVector(std::ostream &out)
Definition: Router.cc:240
Stats::DataWrap::flags
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
Definition: statistics.hh:339
INT_
@ INT_
Definition: CommonTypes.hh:43
EXT_IN_
@ EXT_IN_
Definition: CommonTypes.hh:43
CTRL_VNET_
@ CTRL_VNET_
Definition: CommonTypes.hh:41
GarnetNetwork::m_avg_hops
Stats::Formula m_avg_hops
Definition: GarnetNetwork.hh:186
ArmISA::j
Bitfield< 24 > j
Definition: miscregs_types.hh:54
GarnetNetwork::m_avg_flit_network_latency
Stats::Formula m_avg_flit_network_latency
Definition: GarnetNetwork.hh:175
GarnetNetwork::makeInternalLink
void makeInternalLink(SwitchID src, SwitchID dest, BasicLink *link, std::vector< NetDest > &routing_table_entry, PortDirection src_outport_dirn, PortDirection dest_inport_dirn)
Definition: GarnetNetwork.cc:289
Network::getLocalNodeID
NodeID getLocalNodeID(NodeID global_id) const
Definition: Network.cc:247
GarnetNetwork::getNumRouters
int getNumRouters()
Definition: GarnetNetwork.cc:348
Stats::oneline
const FlagsType oneline
Print all values on a single line.
Definition: info.hh:62
Router
Definition: Router.hh:56
GarnetNetwork::m_avg_packet_latency
Stats::Formula m_avg_packet_latency
Definition: GarnetNetwork.hh:166
GarnetNetwork::m_packets_received
Stats::Vector m_packets_received
Definition: GarnetNetwork.hh:157
DPRINTF
#define DPRINTF(x,...)
Definition: trace.hh:237
RubySystem
Definition: RubySystem.hh:52
GarnetNetwork::m_avg_packet_vqueue_latency
Stats::Formula m_avg_packet_vqueue_latency
Definition: GarnetNetwork.hh:163
Clocked::curCycle
Cycles curCycle() const
Determine the current cycle, corresponding to a tick aligned to a clock edge.
Definition: clocked_object.hh:192
GarnetNetwork::isFaultModelEnabled
bool isFaultModelEnabled() const
Definition: GarnetNetwork.hh:73
GarnetNetwork::print
void print(std::ostream &out) const
Definition: GarnetNetwork.cc:552
GarnetNetwork::GarnetNetwork
GarnetNetwork(const Params &p)
Definition: GarnetNetwork.cc:54
GarnetNetwork::m_total_int_link_utilization
Stats::Scalar m_total_int_link_utilization
Definition: GarnetNetwork.hh:181
GarnetNetwork::m_enable_fault_model
bool m_enable_fault_model
Definition: GarnetNetwork.hh:154
GarnetNetwork::m_buffers_per_data_vc
uint32_t m_buffers_per_data_vc
Definition: GarnetNetwork.hh:152
Router::get_num_outports
int get_num_outports()
Definition: Router.hh:80
NetworkInterface
Definition: NetworkInterface.hh:52
RubySystem.hh
GarnetNetwork::makeExtOutLink
void makeExtOutLink(SwitchID src, NodeID dest, BasicLink *link, std::vector< NetDest > &routing_table_entry)
Definition: GarnetNetwork.cc:218
Network
Definition: Network.hh:76
Stats::DataWrap::name
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
Definition: statistics.hh:270
Stats::VectorBase::init
Derived & init(size_type size)
Set this vector to have the given size.
Definition: statistics.hh:1028
GarnetNetwork::m_avg_flit_vqueue_latency
Stats::Formula m_avg_flit_vqueue_latency
Definition: GarnetNetwork.hh:174
Stats::nozero
const FlagsType nozero
Don't print if this is zero.
Definition: info.hh:58
Network::m_fromNetQueues
std::vector< std::vector< MessageBuffer * > > m_fromNetQueues
Definition: Network.hh:158
GarnetNetwork::m_routing_algorithm
int m_routing_algorithm
Definition: GarnetNetwork.hh:153
EXT_OUT_
@ EXT_OUT_
Definition: CommonTypes.hh:43
SimObject::name
virtual const std::string name() const
Definition: sim_object.hh:182
FaultModel::declare_router
int declare_router(int number_of_inputs, int number_of_outputs, int number_of_vcs_per_vnet, int number_of_buff_per_data_vc, int number_of_buff_per_ctrl_vc)
Definition: FaultModel.cc:131
MessageBuffer.hh
GarnetNetwork::getBuffersPerDataVC
uint32_t getBuffersPerDataVC()
Definition: GarnetNetwork.hh:69
GarnetNetwork::m_flit_queueing_latency
Stats::Vector m_flit_queueing_latency
Definition: GarnetNetwork.hh:171
Router::get_num_inports
int get_num_inports()
Definition: Router.hh:79
GarnetNetwork::m_average_vc_load
Stats::Vector m_average_vc_load
Definition: GarnetNetwork.hh:183
inform
#define inform(...)
Definition: logging.hh:240
GarnetNetwork::m_avg_packet_network_latency
Stats::Formula m_avg_packet_network_latency
Definition: GarnetNetwork.hh:164
GarnetNetwork::m_avg_flit_queueing_latency
Stats::Formula m_avg_flit_queueing_latency
Definition: GarnetNetwork.hh:176
GarnetNetwork::m_max_vcs_per_vnet
uint32_t m_max_vcs_per_vnet
Definition: GarnetNetwork.hh:150
GarnetNetwork::m_num_rows
int m_num_rows
Definition: GarnetNetwork.hh:147
link_type
link_type
Definition: CommonTypes.hh:43
Stats::pdf
const FlagsType pdf
Print the percent of the total that this entry represents.
Definition: info.hh:52
Packet
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Definition: packet.hh:258
Topology::createLinks
void createLinks(Network *net)
Definition: Topology.cc:109
SimObject::init
virtual void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
Definition: sim_object.cc:70
ArmISA::rs
Bitfield< 9, 8 > rs
Definition: miscregs_types.hh:372
GarnetNetwork::m_buffers_per_ctrl_vc
uint32_t m_buffers_per_ctrl_vc
Definition: GarnetNetwork.hh:151
PowerISA::ni
Bitfield< 3 > ni
Definition: miscregs.hh:92
GarnetNetwork::m_avg_flit_latency
Stats::Formula m_avg_flit_latency
Definition: GarnetNetwork.hh:177
PortDirection
std::string PortDirection
Definition: Topology.hh:62
GarnetNetwork::m_avg_flit_vnet_latency
Stats::Formula m_avg_flit_vnet_latency
Definition: GarnetNetwork.hh:173
GarnetNetwork::m_creditlinks
std::vector< CreditLink * > m_creditlinks
Definition: GarnetNetwork.hh:195
Stats::DataWrapVec::subname
Derived & subname(off_type index, const std::string &name)
Set the subfield name for the given index, and marks this stat to print at the end of simulation.
Definition: statistics.hh:383
GarnetNetwork::collateStats
void collateStats()
Definition: GarnetNetwork.cc:506
NodeID
unsigned int NodeID
Definition: TypeDefines.hh:34
X86ISA::type
type
Definition: misc.hh:727
GarnetNetwork::regStats
void regStats()
Callback to set stat parameters.
Definition: GarnetNetwork.cc:363
Router::init_net_ptr
void init_net_ptr(GarnetNetwork *net_ptr)
Definition: Router.hh:83
SimObject::params
const Params & params() const
Definition: sim_object.hh:168
GarnetNetwork::m_packets_injected
Stats::Vector m_packets_injected
Definition: GarnetNetwork.hh:158
GarnetNetwork::m_flits_received
Stats::Vector m_flits_received
Definition: GarnetNetwork.hh:168
MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:323
GarnetNetwork::m_avg_packet_queueing_latency
Stats::Formula m_avg_packet_queueing_latency
Definition: GarnetNetwork.hh:165
GarnetNetwork::m_packet_queueing_latency
Stats::Vector m_packet_queueing_latency
Definition: GarnetNetwork.hh:160
Stats::total
const FlagsType total
Print the total.
Definition: info.hh:50
Network::m_nodes
uint32_t m_nodes
Definition: Network.hh:149
GarnetNetwork::functionalWrite
uint32_t functionalWrite(Packet *pkt)
Function for performing a functional write.
Definition: GarnetNetwork.cc:558
GarnetNetwork::m_total_ext_in_link_utilization
Stats::Scalar m_total_ext_in_link_utilization
Definition: GarnetNetwork.hh:179
GarnetNetwork::m_networklinks
std::vector< NetworkLink * > m_networklinks
Definition: GarnetNetwork.hh:194
NetworkInterface.hh
csprintf
std::string csprintf(const char *format, const Args &...args)
Definition: cprintf.hh:158
NetDest.hh
GarnetNetwork::fault_model
FaultModel * fault_model
Definition: GarnetNetwork.hh:74
SwitchID
unsigned int SwitchID
Definition: TypeDefines.hh:35
Network::m_topology_ptr
Topology * m_topology_ptr
Definition: Network.hh:152
GarnetNetwork::getNumRows
int getNumRows() const
Definition: GarnetNetwork.hh:64
Router.hh

Generated on Tue Mar 23 2021 19:41:28 for gem5 by doxygen 1.8.17