Network.hh (7454:3a3e8e8cce1b) | Network.hh (8257:7226aebb77b4) |
---|---|
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; --- 30 unchanged lines hidden (view full) --- 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> 46 | 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; --- 30 unchanged lines hidden (view full) --- 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> 46 |
47#include "mem/protocol/LinkDirection.hh" |
|
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 54class NetDest; --- 20 unchanged lines hidden (view full) --- 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; 80 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const; 81 virtual int getNumNodes() {return 1;} 82 | 48#include "mem/protocol/MessageSizeType.hh" 49#include "mem/ruby/common/Global.hh" 50#include "mem/ruby/system/NodeID.hh" 51#include "mem/ruby/system/System.hh" 52#include "params/RubyNetwork.hh" 53#include "sim/sim_object.hh" 54 55class NetDest; --- 20 unchanged lines hidden (view full) --- 76 // returns the queue requested for the given component 77 virtual MessageBuffer* getToNetQueue(NodeID id, bool ordered, 78 int netNumber) = 0; 79 virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered, 80 int netNumber) = 0; 81 virtual const std::vector<Throttle*>* getThrottles(NodeID id) const; 82 virtual int getNumNodes() {return 1;} 83 |
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; 89 virtual void makeInternalLink(SwitchID src, NodeID dest, 90 const NetDest& routing_table_entry, int link_latency, int link_weight, 91 int bw_multiplier, bool isReconfiguration) = 0; | 84 virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link, 85 LinkDirection direction, 86 const NetDest& routing_table_entry, 87 bool isReconfiguration) = 0; 88 virtual void makeInLink(NodeID src, SwitchID dest, BasicLink* link, 89 LinkDirection direction, 90 const NetDest& routing_table_entry, 91 bool isReconfiguration) = 0; 92 virtual void makeInternalLink(SwitchID src, SwitchID dest, BasicLink* link, 93 LinkDirection direction, 94 const NetDest& routing_table_entry, 95 bool isReconfiguration) = 0; |
92 93 virtual void reset() = 0; 94 95 virtual void printStats(std::ostream& out) const = 0; 96 virtual void clearStats() = 0; 97 virtual void printConfig(std::ostream& out) const = 0; 98 virtual void print(std::ostream& out) const = 0; 99 --- 27 unchanged lines hidden --- | 96 97 virtual void reset() = 0; 98 99 virtual void printStats(std::ostream& out) const = 0; 100 virtual void clearStats() = 0; 101 virtual void printConfig(std::ostream& out) const = 0; 102 virtual void print(std::ostream& out) const = 0; 103 --- 27 unchanged lines hidden --- |