Network.hh (6493:1fa51760a963) | Network.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 9 * notice, this list of conditions and the following disclaimer; --- 35 unchanged lines hidden (view full) --- 45 46#ifndef NETWORK_H 47#define NETWORK_H 48 49#include "mem/ruby/common/Global.hh" 50#include "mem/ruby/system/NodeID.hh" 51#include "mem/protocol/MessageSizeType.hh" 52#include "mem/ruby/system/System.hh" | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 35 unchanged lines hidden (view full) --- 44 45#ifndef NETWORK_H 46#define NETWORK_H 47 48#include "mem/ruby/common/Global.hh" 49#include "mem/ruby/system/NodeID.hh" 50#include "mem/protocol/MessageSizeType.hh" 51#include "mem/ruby/system/System.hh" |
52#include "sim/sim_object.hh" 53#include "params/RubyNetwork.hh" |
|
53 54class NetDest; 55class MessageBuffer; 56class Throttle; 57class Topology; 58 | 54 55class NetDest; 56class MessageBuffer; 57class Throttle; 58class Topology; 59 |
59class Network { | 60class Network : public SimObject { |
60public: 61 // Constructors | 61public: 62 // Constructors |
62 Network(const string & name); 63 virtual void init(const vector<string> & argv); | 63 typedef RubyNetworkParams Params; 64 Network(const Params *p); 65 virtual void init(); |
64 65 // Destructor 66 virtual ~Network() {} 67 68 // Public Methods 69 int getBufferSize() { return m_buffer_size; } 70 int getNumberOfVirtualNetworks() { return m_virtual_networks; } 71 int getEndpointBandwidth() { return m_endpoint_bandwidth; } --- 59 unchanged lines hidden --- | 66 67 // Destructor 68 virtual ~Network() {} 69 70 // Public Methods 71 int getBufferSize() { return m_buffer_size; } 72 int getNumberOfVirtualNetworks() { return m_virtual_networks; } 73 int getEndpointBandwidth() { return m_endpoint_bandwidth; } --- 59 unchanged lines hidden --- |