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" |
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 |
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; |
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 --- |