GarnetLink.cc (11666:10d59d546ea2) GarnetLink.cc (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

--- 23 unchanged lines hidden (view full) ---

32
33
34#include "mem/ruby/network/garnet2.0/GarnetLink.hh"
35
36#include "mem/ruby/network/garnet2.0/CreditLink.hh"
37#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
38
39GarnetIntLink::GarnetIntLink(const Params *p)
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

--- 23 unchanged lines hidden (view full) ---

32
33
34#include "mem/ruby/network/garnet2.0/GarnetLink.hh"
35
36#include "mem/ruby/network/garnet2.0/CreditLink.hh"
37#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
38
39GarnetIntLink::GarnetIntLink(const Params *p)
40 : BasicLink(p)
40 : BasicIntLink(p)
41{
42 // Uni-directional
43
44 m_network_link = p->network_link;
45 m_credit_link = p->credit_link;
46}
47
48void

--- 9 unchanged lines hidden (view full) ---

58
59GarnetIntLink *
60GarnetIntLinkParams::create()
61{
62 return new GarnetIntLink(this);
63}
64
65GarnetExtLink::GarnetExtLink(const Params *p)
41{
42 // Uni-directional
43
44 m_network_link = p->network_link;
45 m_credit_link = p->credit_link;
46}
47
48void

--- 9 unchanged lines hidden (view full) ---

58
59GarnetIntLink *
60GarnetIntLinkParams::create()
61{
62 return new GarnetIntLink(this);
63}
64
65GarnetExtLink::GarnetExtLink(const Params *p)
66 : BasicLink(p)
66 : BasicExtLink(p)
67{
68 // Bi-directional
69
70 // In
71 m_network_links[0] = p->network_links[0];
72 m_credit_links[0] = p->credit_links[0];
73
74 // Out

--- 20 unchanged lines hidden ---
67{
68 // Bi-directional
69
70 // In
71 m_network_links[0] = p->network_links[0];
72 m_credit_links[0] = p->credit_links[0];
73
74 // Out

--- 20 unchanged lines hidden ---