GarnetLink.hh (11666:10d59d546ea2) | GarnetLink.hh (11715:31b2c4b52047) |
---|---|
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 --- 30 unchanged lines hidden (view full) --- 39#include <vector> 40 41#include "mem/ruby/network/BasicLink.hh" 42#include "mem/ruby/network/garnet2.0/CreditLink.hh" 43#include "mem/ruby/network/garnet2.0/NetworkLink.hh" 44#include "params/GarnetExtLink.hh" 45#include "params/GarnetIntLink.hh" 46 | 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 --- 30 unchanged lines hidden (view full) --- 39#include <vector> 40 41#include "mem/ruby/network/BasicLink.hh" 42#include "mem/ruby/network/garnet2.0/CreditLink.hh" 43#include "mem/ruby/network/garnet2.0/NetworkLink.hh" 44#include "params/GarnetExtLink.hh" 45#include "params/GarnetIntLink.hh" 46 |
47class GarnetIntLink : public BasicLink | 47class GarnetIntLink : public BasicIntLink |
48{ 49 public: 50 typedef GarnetIntLinkParams Params; 51 GarnetIntLink(const Params *p); 52 53 void init(); 54 55 void print(std::ostream& out) const; --- 8 unchanged lines hidden (view full) --- 64inline std::ostream& 65operator<<(std::ostream& out, const GarnetIntLink& obj) 66{ 67 obj.print(out); 68 out << std::flush; 69 return out; 70} 71 | 48{ 49 public: 50 typedef GarnetIntLinkParams Params; 51 GarnetIntLink(const Params *p); 52 53 void init(); 54 55 void print(std::ostream& out) const; --- 8 unchanged lines hidden (view full) --- 64inline std::ostream& 65operator<<(std::ostream& out, const GarnetIntLink& obj) 66{ 67 obj.print(out); 68 out << std::flush; 69 return out; 70} 71 |
72class GarnetExtLink : public BasicLink | 72class GarnetExtLink : public BasicExtLink |
73{ 74 public: 75 typedef GarnetExtLinkParams Params; 76 GarnetExtLink(const Params *p); 77 78 void init(); 79 80 void print(std::ostream& out) const; --- 17 unchanged lines hidden --- | 73{ 74 public: 75 typedef GarnetExtLinkParams Params; 76 GarnetExtLink(const Params *p); 77 78 void init(); 79 80 void print(std::ostream& out) const; --- 17 unchanged lines hidden --- |