BasicLink.hh (8258:7c377f5162f8) BasicLink.hh (9499:b03b556a8fbb)
1/*
2 * Copyright (c) 2011 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

47 typedef BasicLinkParams Params;
48 BasicLink(const Params *p);
49 const Params *params() const { return (const Params *)_params; }
50
51 void init();
52
53 void print(std::ostream& out) const;
54
1/*
2 * Copyright (c) 2011 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

47 typedef BasicLinkParams Params;
48 BasicLink(const Params *p);
49 const Params *params() const { return (const Params *)_params; }
50
51 void init();
52
53 void print(std::ostream& out) const;
54
55 int m_latency;
55 Cycles m_latency;
56 int m_bandwidth_factor;
57 int m_weight;
58};
59
60inline std::ostream&
61operator<<(std::ostream& out, const BasicLink& obj)
62{
63 obj.print(out);

--- 33 unchanged lines hidden ---
56 int m_bandwidth_factor;
57 int m_weight;
58};
59
60inline std::ostream&
61operator<<(std::ostream& out, const BasicLink& obj)
62{
63 obj.print(out);

--- 33 unchanged lines hidden ---