SimpleNetwork.hh (6285:ce086eca1ede) SimpleNetwork.hh (6876:a658c315512c)
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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

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

68
69#ifndef SIMPLENETWORK_H
70#define SIMPLENETWORK_H
71
72#include "mem/ruby/common/Global.hh"
73#include "mem/gems_common/Vector.hh"
74#include "mem/ruby/network/Network.hh"
75#include "mem/ruby/system/NodeID.hh"
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
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

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

68
69#ifndef SIMPLENETWORK_H
70#define SIMPLENETWORK_H
71
72#include "mem/ruby/common/Global.hh"
73#include "mem/gems_common/Vector.hh"
74#include "mem/ruby/network/Network.hh"
75#include "mem/ruby/system/NodeID.hh"
76#include "sim/sim_object.hh"
77#include "params/SimpleNetwork.hh"
76
77class NetDest;
78class MessageBuffer;
79class Throttle;
80class Switch;
81class Topology;
82
83class SimpleNetwork : public Network {
84public:
85 // Constructors
78
79class NetDest;
80class MessageBuffer;
81class Throttle;
82class Switch;
83class Topology;
84
85class SimpleNetwork : public Network {
86public:
87 // Constructors
86 // SimpleNetwork(int nodes);
87 SimpleNetwork(const string & name);
88 typedef SimpleNetworkParams Params;
89 SimpleNetwork(const Params *p);
88
89 // Destructor
90 ~SimpleNetwork();
91
90
91 // Destructor
92 ~SimpleNetwork();
93
92 void init(const vector<string> & argv);
94 void init();
93
94 // Public Methods
95 void printStats(ostream& out) const;
96 void clearStats();
97 void printConfig(ostream& out) const;
98
99 void reset();
100

--- 57 unchanged lines hidden ---
95
96 // Public Methods
97 void printStats(ostream& out) const;
98 void clearStats();
99 void printConfig(ostream& out) const;
100
101 void reset();
102

--- 57 unchanged lines hidden ---