AbstractController.hh (9595:470016acf37d) | AbstractController.hh (9596:aa73a81cf92c) |
---|---|
1/* 2 * Copyright (c) 2009 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; --- 19 unchanged lines hidden (view full) --- 28 29#ifndef __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 30#define __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 31 32#include <iostream> 33#include <string> 34 35#include "mem/protocol/AccessPermission.hh" | 1/* 2 * Copyright (c) 2009 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; --- 19 unchanged lines hidden (view full) --- 28 29#ifndef __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 30#define __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCONTROLLER_HH__ 31 32#include <iostream> 33#include <string> 34 35#include "mem/protocol/AccessPermission.hh" |
36#include "mem/ruby/buffers/MessageBuffer.hh" |
|
36#include "mem/ruby/common/Address.hh" 37#include "mem/ruby/common/Consumer.hh" 38#include "mem/ruby/common/DataBlock.hh" 39#include "mem/ruby/common/Histogram.hh" 40#include "mem/ruby/network/Network.hh" 41#include "mem/ruby/recorder/CacheRecorder.hh" 42#include "mem/ruby/system/MachineID.hh" 43#include "mem/packet.hh" 44#include "params/RubyController.hh" 45#include "sim/clocked_object.hh" 46 | 37#include "mem/ruby/common/Address.hh" 38#include "mem/ruby/common/Consumer.hh" 39#include "mem/ruby/common/DataBlock.hh" 40#include "mem/ruby/common/Histogram.hh" 41#include "mem/ruby/network/Network.hh" 42#include "mem/ruby/recorder/CacheRecorder.hh" 43#include "mem/ruby/system/MachineID.hh" 44#include "mem/packet.hh" 45#include "params/RubyController.hh" 46#include "sim/clocked_object.hh" 47 |
47class MessageBuffer; | |
48class Network; 49 50class AbstractController : public ClockedObject, public Consumer 51{ 52 public: 53 typedef RubyControllerParams Params; 54 AbstractController(const Params *p); 55 void init(); --- 55 unchanged lines hidden (view full) --- 111 //! Profiles the delay associated with messages. 112 void profileMsgDelay(uint32_t virtualNetwork, Cycles delay); 113 114 //! Function for connecting peer controllers 115 void connectWithPeer(AbstractController *); 116 virtual void getQueuesFromPeer(AbstractController *) 117 { fatal("getQueuesFromPeer() should be called only if implemented!"); } 118 | 48class Network; 49 50class AbstractController : public ClockedObject, public Consumer 51{ 52 public: 53 typedef RubyControllerParams Params; 54 AbstractController(const Params *p); 55 void init(); --- 55 unchanged lines hidden (view full) --- 111 //! Profiles the delay associated with messages. 112 void profileMsgDelay(uint32_t virtualNetwork, Cycles delay); 113 114 //! Function for connecting peer controllers 115 void connectWithPeer(AbstractController *); 116 virtual void getQueuesFromPeer(AbstractController *) 117 { fatal("getQueuesFromPeer() should be called only if implemented!"); } 118 |
119 void stallBuffer(MessageBuffer* buf, Address addr); 120 void wakeUpBuffers(Address addr); 121 void wakeUpAllBuffers(Address addr); 122 void wakeUpAllBuffers(); 123 |
|
119 protected: 120 int m_transitions_per_cycle; 121 int m_buffer_size; 122 Cycles m_recycle_latency; 123 std::string m_name; 124 NodeID m_version; 125 Network* m_net_ptr; 126 MachineID m_machineID; --- 28 unchanged lines hidden --- | 124 protected: 125 int m_transitions_per_cycle; 126 int m_buffer_size; 127 Cycles m_recycle_latency; 128 std::string m_name; 129 NodeID m_version; 130 Network* m_net_ptr; 131 MachineID m_machineID; --- 28 unchanged lines hidden --- |