Network.hh (7055:4e24742201d7) | Network.hh (7454:3a3e8e8cce1b) |
---|---|
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; --- 28 unchanged lines hidden (view full) --- 37 * well as the links between chip and network switches. 38 */ 39 40#ifndef __MEM_RUBY_NETWORK_NETWORK_HH__ 41#define __MEM_RUBY_NETWORK_NETWORK_HH__ 42 43#include <iostream> 44#include <string> | 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; --- 28 unchanged lines hidden (view full) --- 37 * well as the links between chip and network switches. 38 */ 39 40#ifndef __MEM_RUBY_NETWORK_NETWORK_HH__ 41#define __MEM_RUBY_NETWORK_NETWORK_HH__ 42 43#include <iostream> 44#include <string> |
45#include <vector> |
|
45 46#include "mem/protocol/MessageSizeType.hh" 47#include "mem/ruby/common/Global.hh" 48#include "mem/ruby/system/NodeID.hh" 49#include "mem/ruby/system/System.hh" 50#include "params/RubyNetwork.hh" 51#include "sim/sim_object.hh" 52 --- 18 unchanged lines hidden (view full) --- 71 int getLinkLatency() { return m_link_latency; } 72 int MessageSizeType_to_int(MessageSizeType size_type); 73 74 // returns the queue requested for the given component 75 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered, 76 int netNumber) = 0; 77 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered, 78 int netNumber) = 0; | 46 47#include "mem/protocol/MessageSizeType.hh" 48#include "mem/ruby/common/Global.hh" 49#include "mem/ruby/system/NodeID.hh" 50#include "mem/ruby/system/System.hh" 51#include "params/RubyNetwork.hh" 52#include "sim/sim_object.hh" 53 --- 18 unchanged lines hidden (view full) --- 72 int getLinkLatency() { return m_link_latency; } 73 int MessageSizeType_to_int(MessageSizeType size_type); 74 75 // returns the queue requested for the given component 76 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered, 77 int netNumber) = 0; 78 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered, 79 int netNumber) = 0; |
79 virtual const Vector<Throttle*>* getThrottles(NodeID id) const; | 80 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const; |
80 virtual int getNumNodes() {return 1;} 81 82 virtual void makeOutLink(SwitchID src, NodeID dest, 83 const NetDest& routing_table_entry, int link_latency, int link_weight, 84 int bw_multiplier, bool isReconfiguration) = 0; 85 virtual void makeInLink(SwitchID src, NodeID dest, 86 const NetDest& routing_table_entry, int link_latency, 87 int bw_multiplier, bool isReconfiguration) = 0; --- 38 unchanged lines hidden --- | 81 virtual int getNumNodes() {return 1;} 82 83 virtual void makeOutLink(SwitchID src, NodeID dest, 84 const NetDest& routing_table_entry, int link_latency, int link_weight, 85 int bw_multiplier, bool isReconfiguration) = 0; 86 virtual void makeInLink(SwitchID src, NodeID dest, 87 const NetDest& routing_table_entry, int link_latency, 88 int bw_multiplier, bool isReconfiguration) = 0; --- 38 unchanged lines hidden --- |