#ifndef ALLOCATOR_H
#define ALLOCATOR_H
-#include "Vector.hh"
+#include "mem/gems_common/Vector.hh"
template <class TYPE>
class Allocator {
#ifndef MAP_H
#define MAP_H
-#include "Vector.hh"
+#include "mem/gems_common/Vector.hh"
namespace __gnu_cxx {
template <> struct hash <std::string>
#ifndef PRIOHEAP_H
#define PRIOHEAP_H
-#include "Vector.hh"
+#include "mem/gems_common/Vector.hh"
typedef unsigned int HeapIndex;
* Code used to test the RefCnt class
*/
-#include "RefCnt.hh"
-#include "RefCountable.hh"
+#include "mem/gems_common/RefCnt.hh"
+#include "mem/gems_common/RefCountable.hh"
class Foo : public RefCountable {
public:
#ifndef REFCOUNTABLE_H
#define REFCOUNTABLE_H
-#include "RefCnt.hh"
+#include "mem/gems_common/RefCnt.hh"
class RefCountable {
public:
#ifndef VECTOR_H
#define VECTOR_H
-#include "std-includes.hh"
+#include "mem/gems_common/std-includes.hh"
template <class TYPE>
class Vector
%{
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
using namespace std;
#include <string>
// #include "simics/api.h"
// };
-#include "FakeSimicsDataTypes.hh"
+#include "mem/gems_common/ioutil/FakeSimicsDataTypes.hh"
// CM: simics 1.6.5 API redefines fwrite, much to my chagrin
#undef fwrite
#undef printf
-#include "attrparse.h"
+#include "mem/gems_common/ioutil/attrparse.hh"
#define MAX_INCLUDE_DEPTH 10
/* Includes */
/*------------------------------------------------------------------------*/
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
using namespace std;
#include <string>
// #include "simics/api.h"
// };
-#include "FakeSimicsDataTypes.hh"
+#include "mem/gems_common/ioutil/FakeSimicsDataTypes.hh"
-#include "confio.hh"
+#include "mem/gems_common/ioutil/confio.hh"
// CM FIX: if I wasn't working on a paper: I'd re-write the grammer to
// be left (or right) recursive, which ever is more efficient
/* Includes */
/*------------------------------------------------------------------------*/
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
#define SIM_HALT ASSERT(0)
using namespace std;
// #endif
// };
-#include "confio.hh"
+#include "mem/gems_common/ioutil/confio.hh"
/*------------------------------------------------------------------------*/
/* Macro declarations */
/* Includes */
/*------------------------------------------------------------------------*/
-#include "FakeSimicsDataTypes.hh"
+#include "mem/gems_common/ioutil/FakeSimicsDataTypes.hh"
/*------------------------------------------------------------------------*/
/* Macro declarations */
// #endif
// };
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
-#include "confio.hh"
-#include "initvar.hh"
+#include "mem/gems_common/ioutil/confio.hh"
+#include "mem/gems_common/ioutil/initvar.hh"
/*------------------------------------------------------------------------*/
/* Variable declarations */
char *NAME;
#define PARAM_ARRAY( PTYPE, NAME, ARRAY_SIZE ) \
PTYPE NAME[ARRAY_SIZE];
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
NAME = NULL; \
}
#define PARAM_ARRAY( PTYPE, NAME, ARRAY_SIZE )
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
initvar_get_attr, (void *) name, \
initvar_set_attr, (void *) name );
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
return (ret); \
}
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
return Sim_Set_Ok; \
}
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
} \
fprintf( fp, ")\n" );
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
extern char *NAME;
#define PARAM_ARRAY( PTYPE, NAME, ARRAY_SIZE ) \
extern PTYPE NAME[ARRAY_SIZE];
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
*/
#include "assert.h"
-#include "util.hh"
+#include "mem/gems_common/util.hh"
// Split a string into a head and tail strings on the specified
// character. Return the head and the string passed in is modified by
#ifndef UTIL_H
#define UTIL_H
-#include "std-includes.hh"
+#include "mem/gems_common/std-includes.hh"
string string_split(string& str, char split_character);
string bool_to_string(bool value);
* $Id$
*/
-#include "MessageBuffer.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/config/RubyConfig.hh"
MessageBuffer::MessageBuffer()
{
#ifndef MESSAGEBUFFER_H
#define MESSAGEBUFFER_H
-#include "Global.hh"
-#include "MessageBufferNode.hh"
-#include "Consumer.hh"
-#include "RubyEventQueue.hh"
-#include "Message.hh"
-#include "PrioHeap.hh"
-#include "util.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/buffers/MessageBufferNode.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/gems_common/util.hh"
class Chip;
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "MessageBufferNode.hh"
+#include "mem/ruby/buffers/MessageBufferNode.hh"
void MessageBufferNode::print(ostream& out) const
{
#ifndef MESSAGEBUFFERNODE_H
#define MESSAGEBUFFERNODE_H
-#include "Global.hh"
-#include "Message.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
class MessageBufferNode {
public:
* $Id$
*/
-#include "Address.hh"
+#include "mem/ruby/common/Address.hh"
void Address::output(ostream& out) const
{
#define ADDRESS_H
#include <iomanip>
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "NodeID.hh"
-#include "MachineID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/system/MachineID.hh"
const int ADDRESS_WIDTH = 64; // address width in bytes
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "Set.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/ruby/config/RubyConfig.hh"
Set::Set()
{
#ifndef SET_H
#define SET_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "NodeID.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
enum PresenceBit {NotPresent, Present};
#ifndef CONSUMER_H
#define CONSUMER_H
-#include "Global.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
class MessageBuffer;
* $Id$
*/
-#include "DataBlock.hh"
+#include "mem/ruby/common/DataBlock.hh"
DataBlock::DataBlock()
{
#ifndef DATABLOCK_H
#define DATABLOCK_H
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/gems_common/Vector.hh"
class DataBlock {
public:
#include <fstream>
#include <stdarg.h>
-#include "Global.hh"
-#include "Debug.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Debug.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
class Debug;
extern Debug* g_debug_ptr;
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "Driver.hh"
+#include "mem/ruby/common/Driver.hh"
Driver::Driver()
{
#ifndef DRIVER_H
#define DRIVER_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/CacheRequestType.hh"
class RubySystem;
class SubBlock;
virtual void notifyTrapStart( int procID, const Address & handlerPC, int threadID, int smtThread ) { assert(0); } //called by Sequencer
virtual void notifyTrapComplete( int procID, const Address & newPC, int smtThread ) {assert(0); } // called by Sequencer
virtual int getOpalTransactionLevel(int procID, int thread) const {
- cout << "Driver.hh getOpalTransactionLevel() " << endl;
+ cout << "mem/ruby/common/Driver.hh getOpalTransactionLevel() " << endl;
return 0; } //called by Sequencer
virtual void addThreadDependency(int procID, int requestor_thread, int conflict_thread) const { assert(0);}
virtual uint64 getOpalTime(int procID) const{ return 0; } //called by Sequencer
virtual uint64 getOpalTimestamp(int procID, int thread) const{
- cout << "Driver.hh getOpalTimestamp " << endl;
+ cout << "mem/ruby/common/Driver.hh getOpalTimestamp " << endl;
return 0; } // called by Sequencer
virtual int inTransaction(int procID, int thread ) const{
- cout << "Driver.hh inTransaction " << endl;
+ cout << "mem/ruby/common/Driver.hh inTransaction " << endl;
return false; } //called by Sequencer
virtual void printDebug(){} //called by Sequencer
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
RubyEventQueue* g_eventQueue_ptr = NULL;
RubySystem* g_system_ptr = NULL;
typedef integer_t simtime_t;
// external includes for all classes
-#include "std-includes.hh"
-#include "Debug.hh"
+#include "mem/gems_common/std-includes.hh"
+#include "mem/ruby/common/Debug.hh"
// simple type declarations
typedef Time LogicalTime;
*
*/
-#include "Histogram.hh"
+#include "mem/ruby/common/Histogram.hh"
Histogram::Histogram(int binsize, int bins)
{
#ifndef HISTOGRAM_H
#define HISTOGRAM_H
-#include "Global.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
class Histogram {
public:
* $Id$
*/
-#include "Message.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
*
*/
-#include "NetDest.hh"
-#include "RubyConfig.hh"
-#include "Protocol.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/protocol/Protocol.hh"
NetDest::NetDest()
{
#ifndef NETDEST_H
#define NETDEST_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "NodeID.hh"
-#include "MachineID.hh"
-#include "RubyConfig.hh"
-#include "Set.hh"
-#include "MachineType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/system/MachineID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/protocol/MachineType.hh"
class Set;
// modified (rewritten) 05/20/05 by Dan Gibson to accomimdate FASTER >32 bit
// set sizes
-#include "Set.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/ruby/config/RubyConfig.hh"
#if __amd64__ || __LP64__
#define __64BITS__
#ifndef SET_H
#define SET_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "NodeID.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
// gibson 05/20/05
// enum PresenceBit {NotPresent, Present};
*
*/
-#include "Set.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/ruby/config/RubyConfig.hh"
#ifdef OPTBIGSET
#include "OptBigSet.cc"
#define OPTBIGSET
#ifdef OPTBIGSET
-#include "OptBigSet.hh"
+#include "mem/ruby/common/OptBigSet.hh"
#else
#ifdef BIGSET
-#include "BigSet.hh" // code to supports sets larger than 32
+#include "mem/ruby/common/BigSet.hh" // code to supports sets larger than 32
#else
#ifndef SET_H
#define SET_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "NodeID.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
class Set {
public:
* $Id$
*/
-#include "SubBlock.hh"
+#include "mem/ruby/common/SubBlock.hh"
SubBlock::SubBlock(const Address& addr, int size)
{
#ifndef SubBlock_H
#define SubBlock_H
-#include "Global.hh"
-#include "Address.hh"
-#include "RubyConfig.hh"
-#include "DataBlock.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/DataBlock.hh"
+#include "mem/gems_common/Vector.hh"
class SubBlock {
public:
*
*/
-#include "RubyConfig.hh"
-#include "protocol_name.hh"
-#include "util.hh"
-#include "Protocol.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/protocol/protocol_name.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/protocol/Protocol.hh"
#define CHECK_POWER_OF_2(N) { if (!is_power_of_2(N)) { ERROR_MSG(#N " must be a power of 2."); }}
#define CHECK_ZERO(N) { if (N != 0) { ERROR_MSG(#N " must be zero at initialization."); }}
} \
-#include "config.hh"
+#include "mem/ruby/config/config.hh"
#undef PARAM
#undef PARAM_UINT
#undef PARAM_ULONG
#ifndef RUBYCONFIG_H
#define RUBYCONFIG_H
-#include "Global.hh"
-#include "vardecl.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/ioutil/vardecl.hh"
+#include "mem/ruby/system/NodeID.hh"
#define MEMORY_LATENCY RubyConfig::memoryResponseLatency()
#define ABORT_DELAY m_chip_ptr->getTransactionManager(m_version)->getAbortDelay()
* $Id$
*/
-#include "RubyEventQueue.hh"
-#include "RubyConfig.hh"
-#include "Consumer.hh"
-#include "Profiler.hh"
-#include "System.hh"
-#include "PrioHeap.hh"
-#include "RubyEventQueueNode.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/eventqueue/RubyEventQueueNode.hh"
// Class public method definitions
#ifndef RUBYEVENTQUEUE_H
#define RUBYEVENTQUEUE_H
-#include "Global.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
class Consumer;
template <class TYPE> class PrioHeap;
*
*/
-#include "RubyEventQueueNode.hh"
+#include "mem/ruby/eventqueue/RubyEventQueueNode.hh"
void RubyEventQueueNode::print(ostream& out) const
{
#ifndef RUBYEVENTQUEUENODE_H
#define RUBYEVENTQUEUENODE_H
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
class Consumer;
class RubyEventQueueNode {
*
*/
-#include "Global.hh"
-#include "RubyEventQueue.hh"
-#include "System.hh"
-#include "Debug.hh"
-#include "Profiler.hh"
-#include "Tester.hh"
-#include "init.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/Debug.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/tester/Tester.hh"
+#include "mem/ruby/init.hh"
using namespace std;
#include <string>
#include <map>
#include <stdlib.h>
-#include "confio.hh"
-#include "initvar.hh"
+#include "mem/gems_common/ioutil/confio.hh"
+#include "mem/gems_common/ioutil/initvar.hh"
// A generated file containing the default parameters in string form
// The defaults are stored in the variable global_default_param
-#include "default_param.hh"
+#include "mem/protocol/default_param.hh"
static initvar_t *ruby_initvar_obj = NULL;
#ifndef NETWORK_H
#define NETWORK_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "MessageSizeType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/MessageSizeType.hh"
class NetDest;
class MessageBuffer;
#ifndef CREDIT_LINK_D_H
#define CREDIT_LINK_D_H
-#include "NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
class CreditLink_d : public NetworkLink_d {
public:
*
* */
-#include "GarnetNetwork_d.hh"
-#include "MachineType.hh"
-#include "NetworkInterface_d.hh"
-#include "MessageBuffer.hh"
-#include "Router_d.hh"
-#include "Topology.hh"
-#include "NetworkLink_d.hh"
-#include "CreditLink_d.hh"
-#include "NetDest.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkInterface_d.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/simple/Topology.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/CreditLink_d.hh"
+#include "mem/ruby/common/NetDest.hh"
GarnetNetwork_d::GarnetNetwork_d(int nodes)
{
#ifndef GARNETNETWORK_D_H
#define GARNETNETWORK_D_H
-#include "NetworkHeader.hh"
-#include "Vector.hh"
-#include "NetworkConfig.hh"
-#include "Network.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
+#include "mem/ruby/network/Network.hh"
class NetworkInterface_d;
class MessageBuffer;
*
* */
-#include "InputUnit_d.hh"
-#include "Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/InputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
InputUnit_d::InputUnit_d(int id, Router_d *router)
{
#ifndef INPUT_UNIT_D_H
#define INPUT_UNIT_D_H
-#include "NetworkHeader.hh"
-#include "flitBuffer_d.hh"
-#include "Consumer.hh"
-#include "Vector.hh"
-#include "VirtualChannel_d.hh"
-#include "NetworkLink_d.hh"
-#include "CreditLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/VirtualChannel_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/CreditLink_d.hh"
class Router_d;
#ifndef NETWORK_HEADER_H
#define NETWORK_HEADER_H
-#include "Global.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
using namespace std;
using namespace __gnu_cxx;
*
* */
-#include "NetworkInterface_d.hh"
-#include "MessageBuffer.hh"
-#include "flitBuffer_d.hh"
-#include "NetworkMessage.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkInterface_d.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
NetworkInterface_d::NetworkInterface_d(int id, int virtual_networks, GarnetNetwork_d *network_ptr)
{
#ifndef NET_INTERFACE_D_H
#define NET_INTERFACE_D_H
-#include "NetworkHeader.hh"
-#include "GarnetNetwork_d.hh"
-#include "Vector.hh"
-#include "Consumer.hh"
-#include "Message.hh"
-#include "NetworkLink_d.hh"
-#include "CreditLink_d.hh"
-#include "OutVcState_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/CreditLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutVcState_d.hh"
class NetworkMessage;
class MessageBuffer;
*
* */
-#include "NetworkLink_d.hh"
-#include "NetworkConfig.hh"
-#include "GarnetNetwork_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
NetworkLink_d::NetworkLink_d(int id)
{
#ifndef NETWORK_LINK_D_H
#define NETWORK_LINK_D_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
-#include "flitBuffer_d.hh"
-#include "PrioHeap.hh"
-#include "power_bus.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/network/orion/power_bus.hh"
class GarnetNetwork_d;
*
* */
-#include "OutVcState_d.hh"
-#include "NetworkConfig.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutVcState_d.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
OutVcState_d::OutVcState_d(int id)
{
#ifndef OUT_VC_STATE_D_H
#define OUT_VC_STATE_D_H
-#include "NetworkHeader.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
class OutVcState_d {
public:
*
* */
-#include "OutputUnit_d.hh"
-#include "Router_d.hh"
-#include "NetworkConfig.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
OutputUnit_d::OutputUnit_d(int id, Router_d *router)
{
#ifndef OUTPUT_UNIT_D_H
#define OUTPUT_UNIT_D_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
-#include "flitBuffer_d.hh"
-#include "OutVcState_d.hh"
-#include "NetworkLink_d.hh"
-#include "CreditLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutVcState_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/CreditLink_d.hh"
class Router_d;
*
* */
-#include "Router_d.hh"
-#include "GarnetNetwork_d.hh"
-#include "NetworkLink_d.hh"
-#include "CreditLink_d.hh"
-#include "InputUnit_d.hh"
-#include "OutputUnit_d.hh"
-#include "RoutingUnit_d.hh"
-#include "VCallocator_d.hh"
-#include "SWallocator_d.hh"
-#include "Switch_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/CreditLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/InputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/RoutingUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/VCallocator_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/SWallocator_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Switch_d.hh"
Router_d::Router_d(int id, GarnetNetwork_d *network_ptr)
{
#ifndef ROUTER_D_H
#define ROUTER_D_H
-#include "NetworkHeader.hh"
-#include "Vector.hh"
-#include "flit_d.hh"
-#include "NetDest.hh"
-#include "power_router_init.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flit_d.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/network/orion/power_router_init.hh"
class GarnetNetwork_d;
class NetworkLink_d;
*
* */
-#include "RoutingUnit_d.hh"
-#include "Router_d.hh"
-#include "InputUnit_d.hh"
-#include "NetworkMessage.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/RoutingUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/InputUnit_d.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
RoutingUnit_d::RoutingUnit_d(Router_d *router)
{
#ifndef ROUTING_UNIT_D_H
#define ROUTING_UNIT_D_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
-#include "flit_d.hh"
-#include "NetDest.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flit_d.hh"
+#include "mem/ruby/common/NetDest.hh"
class InputUnit_d;
class Router_d;
*
* */
-#include "SWallocator_d.hh"
-#include "Router_d.hh"
-#include "InputUnit_d.hh"
-#include "OutputUnit_d.hh"
-#include "GarnetNetwork_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/SWallocator_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/InputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
SWallocator_d::SWallocator_d(Router_d *router)
{
#ifndef SW_ALLOCATOR_D_H
#define SW_ALLOCATOR_D_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
class Router_d;
class InputUnit_d;
*
* */
-#include "Switch_d.hh"
-#include "Router_d.hh"
-#include "OutputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Switch_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutputUnit_d.hh"
Switch_d::Switch_d(Router_d *router)
{
#ifndef SWITCH_D_H
#define SWITCH_D_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
-#include "flitBuffer_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
class Router_d;
class OutputUnit_d;
*
* */
-#include "NetworkConfig.hh"
-#include "VCallocator_d.hh"
-#include "Router_d.hh"
-#include "InputUnit_d.hh"
-#include "OutputUnit_d.hh"
-#include "GarnetNetwork_d.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/VCallocator_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/InputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/OutputUnit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
VCallocator_d::VCallocator_d(Router_d *router)
{
#ifndef VC_ALLOCATOR_D_H
#define VC_ALLOCATOR_D_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
class Router_d;
class InputUnit_d;
*
* */
-#include "VirtualChannel_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/VirtualChannel_d.hh"
VirtualChannel_d::VirtualChannel_d(int id)
{
#ifndef VIRTUAL_CHANNEL_D_H
#define VIRTUAL_CHANNEL_D_H
-#include "NetworkHeader.hh"
-#include "flitBuffer_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
class VirtualChannel_d {
public:
*
* */
-#include "flitBuffer_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flitBuffer_d.hh"
flitBuffer_d::flitBuffer_d()
{
#ifndef FLIT_BUFFER_D_H
#define FLIT_BUFFER_D_H
-#include "NetworkHeader.hh"
-#include "PrioHeap.hh"
-#include "flit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flit_d.hh"
class flitBuffer_d {
public:
*
* */
-#include "flit_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/flit_d.hh"
flit_d::flit_d(int id, int vc, int vnet, int size, MsgPtr msg_ptr)
{
#ifndef FLIT_D_H
#define FLIT_D_H
-#include "NetworkHeader.hh"
-#include "Message.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
class flit_d {
public:
#ifndef FLEXIBLE_CONSUMER_H
#define FLEXIBLE_CONSUMER_H
-#include "Consumer.hh"
-#include "NetworkHeader.hh"
-#include "NetDest.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/NetDest.hh"
class FlexibleConsumer : public Consumer {
public:
*
* */
-#include "GarnetNetwork.hh"
-#include "MachineType.hh"
-#include "NetworkInterface.hh"
-#include "MessageBuffer.hh"
-#include "Router.hh"
-#include "Topology.hh"
-#include "SimpleNetwork.hh"
-#include "GarnetNetwork_d.hh"
-#include "NetworkLink.hh"
-#include "NetDest.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/GarnetNetwork.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkInterface.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/Router.hh"
+#include "mem/ruby/network/simple/Topology.hh"
+#include "mem/ruby/network/simple/SimpleNetwork.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkLink.hh"
+#include "mem/ruby/common/NetDest.hh"
// calls new to abstract away from the network
Network* Network::createNetwork(int nodes)
#ifndef GARNET_NETWORK_H
#define GARNET_NETWORK_H
-#include "NetworkHeader.hh"
-#include "Vector.hh"
-#include "NetworkConfig.hh"
-#include "Network.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
+#include "mem/ruby/network/Network.hh"
class NetworkInterface;
class MessageBuffer;
*
* */
-#include "InVcState.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/InVcState.hh"
InVcState::InVcState(int id)
{
#ifndef IN_VC_STATE_H
#define IN_VC_STATE_H
-#include "NetworkHeader.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
class InVcState {
public:
#ifndef NETWORKCONFIG_H
#define NETWORKCONFIG_H
-#include "NetworkHeader.hh"
-#include "util.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/ruby/config/RubyConfig.hh"
class NetworkConfig {
public:
*
* */
-#include "NetworkInterface.hh"
-#include "MessageBuffer.hh"
-#include "flitBuffer.hh"
-#include "NetworkMessage.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkInterface.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/flitBuffer.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
NetworkInterface::NetworkInterface(int id, int virtual_networks, GarnetNetwork *network_ptr)
{
#ifndef NET_INTERFACE_H
#define NET_INTERFACE_H
-#include "NetworkHeader.hh"
-#include "GarnetNetwork.hh"
-#include "Vector.hh"
-#include "FlexibleConsumer.hh"
-#include "Message.hh"
-#include "NetworkLink.hh"
-#include "OutVcState.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/GarnetNetwork.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/FlexibleConsumer.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkLink.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/OutVcState.hh"
class NetworkMessage;
class MessageBuffer;
*
* */
-#include "NetworkLink.hh"
-#include "NetworkConfig.hh"
-#include "GarnetNetwork.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkLink.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkConfig.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/GarnetNetwork.hh"
NetworkLink::NetworkLink(int id, int latency, GarnetNetwork *net_ptr)
{
#ifndef NETWORK_LINK_H
#define NETWORK_LINK_H
-#include "NetworkHeader.hh"
-#include "FlexibleConsumer.hh"
-#include "flitBuffer.hh"
-#include "PrioHeap.hh"
-#include "NetDest.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/FlexibleConsumer.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/flitBuffer.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/common/NetDest.hh"
class GarnetNetwork;
*
* */
-#include "OutVcState.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/OutVcState.hh"
OutVcState::OutVcState(int id)
{
#ifndef OUT_VC_STATE_H
#define OUT_VC_STATE_H
-#include "NetworkHeader.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
class OutVcState {
public:
*
* */
-#include "Router.hh"
-#include "NetworkMessage.hh"
-#include "InVcState.hh"
-#include "OutVcState.hh"
-#include "VCarbiter.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/Router.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/InVcState.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/OutVcState.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/VCarbiter.hh"
Router::Router(int id, GarnetNetwork *network_ptr)
{
#ifndef ROUTER_H
#define ROUTER_H
-#include "NetworkHeader.hh"
-#include "GarnetNetwork.hh"
-#include "FlexibleConsumer.hh"
-#include "PrioHeap.hh"
-#include "NetworkLink.hh"
-#include "NetDest.hh"
-#include "flitBuffer.hh"
-#include "InVcState.hh"
-#include "OutVcState.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/GarnetNetwork.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/FlexibleConsumer.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/NetworkLink.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/flitBuffer.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/InVcState.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/OutVcState.hh"
class VCarbiter;
*
* */
-#include "VCarbiter.hh"
-#include "Router.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/VCarbiter.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/Router.hh"
VCarbiter::VCarbiter(Router *router)
{
#ifndef VC_ARBITER_H
#define VC_ARBITER_H
-#include "NetworkHeader.hh"
-#include "Consumer.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/common/Consumer.hh"
class Router;
*
* */
-#include "flit.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/flit.hh"
flit::flit(int id, int vc, int vnet, int size, MsgPtr msg_ptr)
{
*
* */
-#include "NetworkHeader.hh"
-#include "Message.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
#ifndef FLIT_H
#define FLIT_H
*
* */
-#include "flitBuffer.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/flitBuffer.hh"
flitBuffer::flitBuffer()
{
#ifndef FLIT_BUFFER_H
#define FLIT_BUFFER_H
-#include "NetworkHeader.hh"
-#include "PrioHeap.hh"
-#include "flit.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkHeader.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/network/garnet-flexible-pipeline/flit.hh"
class flitBuffer {
public:
#include <stdio.h>
#include <math.h>
-#include "power_router_init.hh"
-#include "power_array.hh"
-#include "power_crossbar.hh"
-#include "power_arbiter.hh"
-#include "power_bus.hh"
-#include "NetworkPower.hh"
-#include "Router_d.hh"
-#include "NetworkLink_d.hh"
-#include "GarnetNetwork_d.hh"
-#include "SIM_port.hh"
-#include "parm_technology.hh"
+#include "mem/ruby/network/orion/power_router_init.hh"
+#include "mem/ruby/network/orion/power_array.hh"
+#include "mem/ruby/network/orion/power_crossbar.hh"
+#include "mem/ruby/network/orion/power_arbiter.hh"
+#include "mem/ruby/network/orion/power_bus.hh"
+#include "mem/ruby/network/orion/NetworkPower.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/Router_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/NetworkLink_d.hh"
+#include "mem/ruby/network/garnet-fixed-pipeline/GarnetNetwork_d.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
/* --------- Static energy calculation functions ------------ */
#define _SIM_POWER_H
#include <sys/types.h>
-#include "SIM_power_test.hh"
+#include "mem/ruby/network/orion/SIM_power_test.hh"
#define SIM_NO_MODEL 0
#include <stdio.h>
-#include "power_arbiter.hh"
-#include "power_array.hh"
-#include "power_ll.hh"
-#include "parm_technology.hh"
-#include "SIM_port.hh"
-#include "power_static.hh"
-#include "power_utils.hh"
+#include "mem/ruby/network/orion/power_arbiter.hh"
+#include "mem/ruby/network/orion/power_array.hh"
+#include "mem/ruby/network/orion/power_ll.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/power_static.hh"
+#include "mem/ruby/network/orion/power_utils.hh"
#ifndef _POWER_ARBITER_H
#define _POWER_ARBITER_H
-#include "power_array.hh"
+#include "mem/ruby/network/orion/power_array.hh"
typedef enum {
RR_ARBITER =1,
#include <stdio.h>
#include <math.h>
-#include "power_array.hh"
-#include "power_ll.hh"
-#include "parm_technology.hh"
-#include "SIM_port.hh"
-#include "power_static.hh"
-#include "power_utils.hh"
+#include "mem/ruby/network/orion/power_array.hh"
+#include "mem/ruby/network/orion/power_ll.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/power_static.hh"
+#include "mem/ruby/network/orion/power_utils.hh"
/* local macros */
#include <stdio.h>
-#include "power_bus.hh"
-#include "power_ll.hh"
-#include "parm_technology.hh"
-#include "SIM_port.hh"
-#include "power_static.hh"
-#include "power_utils.hh"
+#include "mem/ruby/network/orion/power_bus.hh"
+#include "mem/ruby/network/orion/power_ll.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/power_static.hh"
+#include "mem/ruby/network/orion/power_utils.hh"
/* ------- bus(link) model ---------- */
#include <stdio.h>
#include <math.h>
-#include "power_ll.hh"
-#include "power_crossbar.hh"
-#include "parm_technology.hh"
-#include "SIM_port.hh"
-#include "power_static.hh"
-#include "power_utils.hh"
+#include "mem/ruby/network/orion/power_ll.hh"
+#include "mem/ruby/network/orion/power_crossbar.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/power_static.hh"
+#include "mem/ruby/network/orion/power_utils.hh"
/*-------------------- CROSSBAR power model -------------------*/
#include <math.h>
#include <assert.h>
-#include "parm_technology.hh"
-#include "SIM_port.hh"
-#include "power_static.hh"
-#include "power_ll.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/power_static.hh"
+#include "mem/ruby/network/orion/power_ll.hh"
/*----------------------------------------------------------------------*/
#include <stdio.h>
-#include "power_router_init.hh"
-#include "power_array.hh"
-#include "power_arbiter.hh"
-#include "power_crossbar.hh"
-#include "power_ll.hh"
-#include "parm_technology.hh"
-#include "SIM_port.hh"
-#include "power_static.hh"
-#include "power_utils.hh"
+#include "mem/ruby/network/orion/power_router_init.hh"
+#include "mem/ruby/network/orion/power_array.hh"
+#include "mem/ruby/network/orion/power_arbiter.hh"
+#include "mem/ruby/network/orion/power_crossbar.hh"
+#include "mem/ruby/network/orion/power_ll.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/SIM_port.hh"
+#include "mem/ruby/network/orion/power_static.hh"
+#include "mem/ruby/network/orion/power_utils.hh"
/* -------------------------------------------------------------------------------------------- */
// Set buffer parameters
#ifndef _POWER_ROUTER_INIT_H
#define _POWER_ROUTER_INIT_H
-#include "power_array.hh"
-#include "power_arbiter.hh"
-#include "power_crossbar.hh"
+#include "mem/ruby/network/orion/power_array.hh"
+#include "mem/ruby/network/orion/power_arbiter.hh"
+#include "mem/ruby/network/orion/power_crossbar.hh"
/* ------------ Models ------------------------ */
/*typedef enum {
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "power_static.hh"
+#include "mem/ruby/network/orion/power_static.hh"
#if (PARM_TECH_POINT == 18)
double NMOS_TAB[1] = {20.5e-9};
#ifndef _POWER_STATIC_H
#define _POWER_STATIC_H
-#include "parm_technology.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
extern double NMOS_TAB[1];
extern double PMOS_TAB[1];
*/
#include <stdio.h>
-#include "parm_technology.hh"
-#include "power_utils.hh"
+#include "mem/ruby/network/orion/parm_technology.hh"
+#include "mem/ruby/network/orion/power_utils.hh"
#include <assert.h>
#include <math.h>
*/
-#include "PerfectSwitch.hh"
-#include "NetworkMessage.hh"
-#include "Profiler.hh"
-#include "System.hh"
-#include "SimpleNetwork.hh"
-#include "util.hh"
-#include "MessageBuffer.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/PerfectSwitch.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/network/simple/SimpleNetwork.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/protocol/Protocol.hh"
const int PRIORITY_SWITCH_LIMIT = 128;
#ifndef PerfectSwitch_H
#define PerfectSwitch_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
class MessageBuffer;
class NetDest;
*
*/
-#include "SimpleNetwork.hh"
-#include "Profiler.hh"
-#include "System.hh"
-#include "Switch.hh"
-#include "NetDest.hh"
-#include "Topology.hh"
-#include "TopologyType.hh"
-#include "MachineType.hh"
-#include "MessageBuffer.hh"
-#include "Protocol.hh"
-#include "Map.hh"
+#include "mem/ruby/network/simple/SimpleNetwork.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/network/simple/Switch.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/network/simple/Topology.hh"
+#include "mem/protocol/TopologyType.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/protocol/Protocol.hh"
+#include "mem/gems_common/Map.hh"
// ***BIG HACK*** - This is actually code that _should_ be in Network.C
#ifndef SIMPLENETWORK_H
#define SIMPLENETWORK_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Network.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/ruby/system/NodeID.hh"
class NetDest;
class MessageBuffer;
*/
-#include "Switch.hh"
-#include "PerfectSwitch.hh"
-#include "MessageBuffer.hh"
-#include "Throttle.hh"
-#include "MessageSizeType.hh"
-#include "Network.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/Switch.hh"
+#include "mem/ruby/network/simple/PerfectSwitch.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/simple/Throttle.hh"
+#include "mem/protocol/MessageSizeType.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/protocol/Protocol.hh"
Switch::Switch(SwitchID sid, SimpleNetwork* network_ptr)
{
#ifndef Switch_H
#define Switch_H
-#include "Global.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
class MessageBuffer;
class PerfectSwitch;
*
*/
-#include "Throttle.hh"
-#include "MessageBuffer.hh"
-#include "Network.hh"
-#include "System.hh"
-#include "NetworkMessage.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/Throttle.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
+#include "mem/protocol/Protocol.hh"
const int HIGH_RANGE = 256;
const int ADJUST_INTERVAL = 50000;
#ifndef THROTTLE_H
#define THROTTLE_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
class MessageBuffer;
*
* */
-#include "Topology.hh"
-#include "NetDest.hh"
-#include "Network.hh"
-#include "TopologyType.hh"
-#include "RubyConfig.hh"
-#include "util.hh"
-#include "MachineType.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/Topology.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/protocol/TopologyType.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/protocol/Protocol.hh"
#include <string>
static const int INFINITE_LATENCY = 10000; // Yes, this is a big hack
#ifndef TOPOLOGY_H
#define TOPOLOGY_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/system/NodeID.hh"
class Network;
class NetDest;
*
*/
-#include "AccessTraceForAddress.hh"
-#include "Histogram.hh"
+#include "mem/ruby/profiler/AccessTraceForAddress.hh"
+#include "mem/ruby/common/Histogram.hh"
AccessTraceForAddress::AccessTraceForAddress()
{
#ifndef ACCESSTRACEFORADDRESS_H
#define ACCESSTRACEFORADDRESS_H
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "CacheRequestType.hh"
-#include "AccessModeType.hh"
-#include "NodeID.hh"
-#include "Set.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/protocol/AccessModeType.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Set.hh"
class Histogram;
class AccessTraceForAddress {
*
*/
-#include "AddressProfiler.hh"
-#include "CacheMsg.hh"
-#include "AccessTraceForAddress.hh"
-#include "PrioHeap.hh"
-#include "Map.hh"
-#include "System.hh"
-#include "Profiler.hh"
+#include "mem/ruby/profiler/AddressProfiler.hh"
+#include "mem/protocol/CacheMsg.hh"
+#include "mem/ruby/profiler/AccessTraceForAddress.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/profiler/Profiler.hh"
// Helper functions
static AccessTraceForAddress& lookupTraceForAddress(const Address& addr, Map<Address, AccessTraceForAddress>* record_map);
#ifndef ADDRESSPROFILER_H
#define ADDRESSPROFILER_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "Histogram.hh"
-#include "Address.hh"
-#include "CacheMsg.hh"
-#include "AccessType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Histogram.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/protocol/CacheMsg.hh"
+#include "mem/protocol/AccessType.hh"
class AccessTraceForAddress;
class Set;
*
*/
-#include "CacheProfiler.hh"
-#include "AccessTraceForAddress.hh"
-#include "PrioHeap.hh"
-#include "System.hh"
-#include "Profiler.hh"
-#include "Vector.hh"
+#include "mem/ruby/profiler/CacheProfiler.hh"
+#include "mem/ruby/profiler/AccessTraceForAddress.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/gems_common/Vector.hh"
CacheProfiler::CacheProfiler(string description)
: m_requestSize(-1)
#ifndef CACHEPROFILER_H
#define CACHEPROFILER_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "Histogram.hh"
-#include "AccessModeType.hh"
-#include "PrefetchBit.hh"
-#include "GenericRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Histogram.hh"
+#include "mem/protocol/AccessModeType.hh"
+#include "mem/protocol/PrefetchBit.hh"
+#include "mem/protocol/GenericRequestType.hh"
template <class TYPE> class Vector;
*
*/
-#include "Profiler.hh"
-#include "CacheProfiler.hh"
-#include "AddressProfiler.hh"
-#include "System.hh"
-#include "Network.hh"
-#include "PrioHeap.hh"
-#include "CacheMsg.hh"
-#include "Driver.hh"
-#include "Protocol.hh"
-#include "util.hh"
-#include "Map.hh"
-#include "Debug.hh"
-#include "MachineType.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/profiler/CacheProfiler.hh"
+#include "mem/ruby/profiler/AddressProfiler.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/protocol/CacheMsg.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/protocol/Protocol.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Debug.hh"
+#include "mem/protocol/MachineType.hh"
// Allows use of times() library call, which determines virtual runtime
#include <sys/times.h>
#ifndef PROFILER_H
#define PROFILER_H
-#include "Global.hh"
-#include "GenericMachineType.hh"
-#include "RubyConfig.hh"
-#include "Histogram.hh"
-#include "Consumer.hh"
-#include "AccessModeType.hh"
-#include "AccessType.hh"
-#include "NodeID.hh"
-#include "MachineID.hh"
-#include "PrefetchBit.hh"
-#include "Address.hh"
-#include "Set.hh"
-#include "CacheRequestType.hh"
-#include "GenericRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/protocol/GenericMachineType.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Histogram.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/AccessModeType.hh"
+#include "mem/protocol/AccessType.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/system/MachineID.hh"
+#include "mem/protocol/PrefetchBit.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/protocol/GenericRequestType.hh"
class CacheMsg;
class CacheProfiler;
*
*/
-#include "StoreTrace.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/profiler/StoreTrace.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
bool StoreTrace::s_init = false; // Total number of store lifetimes of all lines
int64 StoreTrace::s_total_samples = 0; // Total number of store lifetimes of all lines
#ifndef StoreTrace_H
#define StoreTrace_H
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "Histogram.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/common/Histogram.hh"
class StoreTrace {
public:
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "XactProfiler.hh"
-#include "CacheMsg.hh"
-#include "Map.hh"
-#include "Debug.hh"
-#include "MachineType.hh"
+#include "mem/ruby/profiler/XactProfiler.hh"
+#include "mem/protocol/CacheMsg.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Debug.hh"
+#include "mem/protocol/MachineType.hh"
#include "TransactionInterfaceManager.hh"
-#include "Driver.hh"
+#include "mem/ruby/common/Driver.hh"
#include "interface.hh"
extern std::ostream * debug_cout_ptr;
#ifndef XACTPROFILER_H
#define XACTPROFILER_H
-#include "Global.hh"
-#include "GenericMachineType.hh"
-#include "RubyConfig.hh"
-#include "Histogram.hh"
-#include "Consumer.hh"
-#include "AccessModeType.hh"
-#include "AccessType.hh"
-#include "NodeID.hh"
-#include "MachineID.hh"
-#include "PrefetchBit.hh"
-#include "Address.hh"
-#include "Set.hh"
-#include "CacheRequestType.hh"
-#include "GenericRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/protocol/GenericMachineType.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Histogram.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/AccessModeType.hh"
+#include "mem/protocol/AccessType.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/system/MachineID.hh"
+#include "mem/protocol/PrefetchBit.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/protocol/GenericRequestType.hh"
template <class KEY_TYPE, class VALUE_TYPE> class Map;
*
*/
-#include "CacheRecorder.hh"
-#include "TraceRecord.hh"
-#include "RubyEventQueue.hh"
-#include "PrioHeap.hh"
+#include "mem/ruby/recorder/CacheRecorder.hh"
+#include "mem/ruby/recorder/TraceRecord.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/gems_common/PrioHeap.hh"
CacheRecorder::CacheRecorder()
{
#ifndef CACHERECORDER_H
#define CACHERECORDER_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/CacheRequestType.hh"
template <class TYPE> class PrioHeap;
class Address;
*
*/
-#include "TraceRecord.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "AbstractChip.hh"
-#include "CacheMsg.hh"
+#include "mem/ruby/recorder/TraceRecord.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/protocol/CacheMsg.hh"
TraceRecord::TraceRecord(NodeID id, const Address& data_addr, const Address& pc_addr, CacheRequestType type, Time time)
{
#ifndef TRACERECORD_H
#define TRACERECORD_H
-#include "Global.hh"
-#include "Address.hh"
-#include "NodeID.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/CacheRequestType.hh"
class CacheMsg;
class TraceRecord {
*
*/
-#include "Tracer.hh"
-#include "TraceRecord.hh"
-#include "RubyEventQueue.hh"
-#include "PrioHeap.hh"
-#include "System.hh"
+#include "mem/ruby/recorder/Tracer.hh"
+#include "mem/ruby/recorder/TraceRecord.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/gems_common/PrioHeap.hh"
+#include "mem/ruby/system/System.hh"
Tracer::Tracer()
{
#ifndef TRACER_H
#define TRACER_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/CacheRequestType.hh"
#include "gzstream.hh"
template <class TYPE> class PrioHeap;
*
*/
-#include "AbstractCacheEntry.hh"
+#include "mem/ruby/slicc_interface/AbstractCacheEntry.hh"
AbstractCacheEntry::AbstractCacheEntry() {
}
#ifndef AbstractCacheEntry_H
#define AbstractCacheEntry_H
-#include "Global.hh"
-#include "Address.hh"
-#include "AccessPermission.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/protocol/AccessPermission.hh"
class AbstractCacheEntry {
public:
*
*/
-#include "AbstractChip.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
AbstractChip::AbstractChip(NodeID id, Network* net_ptr) {
m_id = id;
#ifndef ABSTRACT_CHIP_H
#define ABSTRACT_CHIP_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "RubyConfig.hh"
-#include "L1Cache_Entry.hh"
-#include "Address.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/protocol/L1Cache_Entry.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/gems_common/Vector.hh"
class Network;
class Sequencer;
#ifndef MESSAGE_H
#define MESSAGE_H
-#include "Global.hh"
-#include "RefCnt.hh"
-#include "RefCountable.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/RefCnt.hh"
+#include "mem/gems_common/RefCountable.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
class Message;
typedef RefCnt<Message> MsgPtr;
#ifndef NetworkMessage_H
#define NetworkMessage_H
-#include "Global.hh"
-#include "RefCnt.hh"
-#include "RefCountable.hh"
-#include "Message.hh"
-#include "MessageSizeType.hh"
-#include "NetDest.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/RefCnt.hh"
+#include "mem/gems_common/RefCountable.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
+#include "mem/protocol/MessageSizeType.hh"
+#include "mem/ruby/common/NetDest.hh"
class Address;
#ifndef COMPONENTMAPPINGFNS_H
#define COMPONENTMAPPINGFNS_H
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "NodeID.hh"
-#include "MachineID.hh"
-#include "Address.hh"
-#include "Set.hh"
-#include "NetDest.hh"
-#include "GenericMachineType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/system/MachineID.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/protocol/GenericMachineType.hh"
#ifdef MACHINETYPE_L1Cache
#define MACHINETYPE_L1CACHE_ENUM MachineType_L1Cache
*
*/
-#include "Global.hh"
-#include "System.hh"
-#include "Profiler.hh"
-#include "AddressProfiler.hh"
-#include "Protocol.hh"
-#include "RubySlicc_Profiler_interface.hh"
-#include "RubySlicc_ComponentMapping.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/profiler/AddressProfiler.hh"
+#include "mem/protocol/Protocol.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_Profiler_interface.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
// #include "TransactionInterfaceManager.hh"
void profile_request(int cache_state, Directory_State directory_state, GenericRequestType request_type)
#ifndef RUBYSLICC_PROFILER_INTERFACE_H
#define RUBYSLICC_PROFILER_INTERFACE_H
-#include "Global.hh"
-#include "Profiler.hh"
-#include "Address.hh"
-#include "L1Cache_State.hh"
-#include "AccessType.hh"
-#include "GenericRequestType.hh"
-#include "Directory_State.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/protocol/L1Cache_State.hh"
+#include "mem/protocol/AccessType.hh"
+#include "mem/protocol/GenericRequestType.hh"
+#include "mem/protocol/Directory_State.hh"
+#include "mem/ruby/system/NodeID.hh"
class Set;
#ifndef SLICC_UTIL_H
#define SLICC_UTIL_H
-#include "Global.hh"
-#include "Address.hh"
-#include "NodeID.hh"
-#include "MachineID.hh"
-#include "RubyConfig.hh"
-#include "CacheMsg.hh"
-#include "GenericRequestType.hh"
-#include "CacheRequestType.hh"
-#include "AccessType.hh"
-#include "MachineType.hh"
-#include "Directory_State.hh"
-#include "L1Cache_State.hh"
-#include "MessageSizeType.hh"
-#include "Network.hh"
-#include "PrefetchBit.hh"
-
-#include "RubySlicc_ComponentMapping.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/system/MachineID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/protocol/CacheMsg.hh"
+#include "mem/protocol/GenericRequestType.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/protocol/AccessType.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/protocol/Directory_State.hh"
+#include "mem/protocol/L1Cache_State.hh"
+#include "mem/protocol/MessageSizeType.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/protocol/PrefetchBit.hh"
+
+#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
class Set;
class NetDest;
#ifndef RUBYSLICC_INCLUDES_H
#define RUBYSLICC_INCLUDES_H
-#include "RubySlicc_ComponentMapping.hh"
-#include "RubySlicc_Util.hh"
-#include "RubySlicc_Profiler_interface.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_Util.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_Profiler_interface.hh"
#endif
#ifndef ABSTRACT_BLOOM_FILTER_H
#define ABSTRACT_BLOOM_FILTER_H
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
class AbstractBloomFilter {
public:
#ifndef ABSTRACT_MEM_OR_CACHE_H
#define ABSTRACT_MEM_OR_CACHE_H
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
class AbstractMemOrCache {
public:
#ifndef ABSTRACTREPLACEMENTPOLICY_H
#define ABSTRACTREPLACEMENTPOLICY_H
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
class AbstractReplacementPolicy {
*
*/
-#include "BlockBloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/BlockBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
BlockBloomFilter::BlockBloomFilter(string str)
{
#ifndef BLOCK_BLOOM_FILTER_H
#define BLOCK_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class BlockBloomFilter : public AbstractBloomFilter {
public:
*
*/
-#include "BulkBloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/BulkBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
BulkBloomFilter::BulkBloomFilter(string str)
{
#ifndef BULK_BLOOM_FILTER_H
#define BULK_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class BulkBloomFilter : public AbstractBloomFilter {
public:
#ifndef CACHEMEMORY_H
#define CACHEMEMORY_H
-#include "AbstractChip.hh"
-#include "Global.hh"
-#include "AccessPermission.hh"
-#include "Address.hh"
-#include "CacheRecorder.hh"
-#include "CacheRequestType.hh"
-#include "Vector.hh"
-#include "DataBlock.hh"
-#include "MachineType.hh"
-#include "RubySlicc_ComponentMapping.hh"
-#include "PseudoLRUPolicy.hh"
-#include "LRUPolicy.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/protocol/AccessPermission.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/recorder/CacheRecorder.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/DataBlock.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
+#include "mem/ruby/system/PseudoLRUPolicy.hh"
+#include "mem/ruby/system/LRUPolicy.hh"
#include <vector>
template<class ENTRY>
*
*/
-#include "System.hh"
-#include "Driver.hh"
-#include "DirectoryMemory.hh"
-#include "RubySlicc_Util.hh"
-#include "RubyConfig.hh"
-#include "Chip.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/ruby/system/DirectoryMemory.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_Util.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/protocol/Chip.hh"
DirectoryMemory::DirectoryMemory(Chip* chip_ptr, int version)
{
#ifndef DIRECTORYMEMORY_H
#define DIRECTORYMEMORY_H
-#include "Global.hh"
-#include "Address.hh"
-#include "Directory_Entry.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/protocol/Directory_Entry.hh"
class Chip;
*
*/
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-
-#include "GenericBloomFilter.hh"
-#include "LSB_CountingBloomFilter.hh"
-#include "NonCountingBloomFilter.hh"
-#include "BulkBloomFilter.hh"
-#include "BlockBloomFilter.hh"
-#include "MultiGrainBloomFilter.hh"
-#include "MultiBitSelBloomFilter.hh"
-#include "H3BloomFilter.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+
+#include "mem/ruby/system/GenericBloomFilter.hh"
+#include "mem/ruby/system/LSB_CountingBloomFilter.hh"
+#include "mem/ruby/system/NonCountingBloomFilter.hh"
+#include "mem/ruby/system/BulkBloomFilter.hh"
+#include "mem/ruby/system/BlockBloomFilter.hh"
+#include "mem/ruby/system/MultiGrainBloomFilter.hh"
+#include "mem/ruby/system/MultiBitSelBloomFilter.hh"
+#include "mem/ruby/system/H3BloomFilter.hh"
GenericBloomFilter::GenericBloomFilter(AbstractChip* chip_ptr, string config)
{
#ifndef GENERIC_BLOOM_FILTER_H
#define GENERIC_BLOOM_FILTER_H
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class GenericBloomFilter {
public:
*
*/
-#include "H3BloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/H3BloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
H3BloomFilter::H3BloomFilter(string str)
{
#ifndef H3_BLOOM_FILTER_H
#define H3_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "System.hh"
-#include "Profiler.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
static int H3[64][16] = {
{
#ifndef LRUPOLICY_H
#define LRUPOLICY_H
-#include "AbstractReplacementPolicy.hh"
+#include "mem/ruby/system/AbstractReplacementPolicy.hh"
/* Simple true LRU replacement policy */
*
*/
-#include "LSB_CountingBloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/LSB_CountingBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
LSB_CountingBloomFilter::LSB_CountingBloomFilter(string str)
{
#ifndef LSB_COUNTING_BLOOM_FILTER_H
#define LSB_COUNTING_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class LSB_CountingBloomFilter : public AbstractBloomFilter {
public:
#ifndef MACHINEID_H
#define MACHINEID_H
-#include "Global.hh"
-#include "util.hh"
-#include "MachineType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/protocol/MachineType.hh"
struct MachineID {
MachineType type;
*
*/
-#include "Global.hh"
-#include "Map.hh"
-#include "Address.hh"
-#include "Profiler.hh"
-#include "AbstractChip.hh"
-#include "System.hh"
-#include "RubySlicc_ComponentMapping.hh"
-#include "NetworkMessage.hh"
-#include "Network.hh"
-
-#include "Consumer.hh"
-
-#include "MemoryControl.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
+#include "mem/ruby/network/Network.hh"
+
+#include "mem/ruby/common/Consumer.hh"
+
+#include "mem/ruby/system/MemoryControl.hh"
#include <list>
#ifndef MEMORY_CONTROL_H
#define MEMORY_CONTROL_H
-#include "Global.hh"
-#include "Map.hh"
-#include "Address.hh"
-#include "Profiler.hh"
-#include "AbstractChip.hh"
-#include "System.hh"
-#include "Message.hh"
-#include "util.hh"
-#include "MemoryNode.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/ruby/system/MemoryNode.hh"
// Note that "MemoryMsg" is in the "generated" directory:
-#include "MemoryMsg.hh"
-#include "Consumer.hh"
-#include "AbstractMemOrCache.hh"
+#include "mem/protocol/MemoryMsg.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/AbstractMemOrCache.hh"
#include <list>
*
*/
-#include "MemoryNode.hh"
+#include "mem/ruby/system/MemoryNode.hh"
void MemoryNode::print(ostream& out) const
{
#ifndef MEMORYNODE_H
#define MEMORYNODE_H
-#include "Global.hh"
-#include "Message.hh"
-#include "MemoryRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/Message.hh"
+#include "mem/protocol/MemoryRequestType.hh"
class MemoryNode {
*
*/
-#include "MultiBitSelBloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/MultiBitSelBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
MultiBitSelBloomFilter::MultiBitSelBloomFilter(string str)
{
#ifndef MULTIBITSEL_BLOOM_FILTER_H
#define MULTIBITSEL_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "System.hh"
-#include "Profiler.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class MultiBitSelBloomFilter : public AbstractBloomFilter {
public:
*
*/
-#include "MultiGrainBloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/MultiGrainBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
MultiGrainBloomFilter::MultiGrainBloomFilter(string str)
{
#ifndef MULTIGRAIN_BLOOM_FILTER_H
#define MULTIGRAIN_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class MultiGrainBloomFilter : public AbstractBloomFilter {
public:
#ifndef NODEID_H
#define NODEID_H
-#include "Global.hh"
-#include "util.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/util.hh"
typedef int NodeID;
*
*/
-#include "NodePersistentTable.hh"
-#include "Set.hh"
-#include "Map.hh"
-#include "Address.hh"
-#include "AbstractChip.hh"
-#include "util.hh"
+#include "mem/ruby/system/NodePersistentTable.hh"
+#include "mem/ruby/common/Set.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/gems_common/util.hh"
// randomize so that handoffs are not locality-aware
// int persistent_randomize[] = {0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15};
#ifndef NodePersistentTable_H
#define NodePersistentTable_H
-#include "Global.hh"
-#include "NodeID.hh"
-#include "AccessType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/AccessType.hh"
class AbstractChip;
*
*/
-#include "NonCountingBloomFilter.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/system/NonCountingBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
NonCountingBloomFilter::NonCountingBloomFilter(string str)
{
#ifndef NONCOUNTING_BLOOM_FILTER_H
#define NONCOUNTING_BLOOM_FILTER_H
-#include "Map.hh"
-#include "Global.hh"
-#include "AbstractChip.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractBloomFilter.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/AbstractBloomFilter.hh"
class NonCountingBloomFilter : public AbstractBloomFilter {
public:
#ifndef PERFECTCACHEMEMORY_H
#define PERFECTCACHEMEMORY_H
-#include "Global.hh"
-#include "Map.hh"
-#include "AccessPermission.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
-#include "AbstractChip.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/protocol/AccessPermission.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
template<class ENTRY>
class PerfectCacheLineState {
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "PersistentArbiter.hh"
-#include "Address.hh"
-#include "AbstractChip.hh"
-#include "util.hh"
+#include "mem/ruby/system/PersistentArbiter.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/gems_common/util.hh"
PersistentArbiter::PersistentArbiter(AbstractChip* chip_ptr)
{
#ifndef PERSISTENTARBITER_H
#define PERSISTENTARBITER_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "AbstractChip.hh"
-#include "AccessPermission.hh"
-#include "AccessType.hh"
-#include "RubyConfig.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/protocol/AccessPermission.hh"
+#include "mem/protocol/AccessType.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Address.hh"
struct ArbiterEntry {
bool valid;
*
*/
-#include "PersistentTable.hh"
-#include "NetDest.hh"
-#include "Map.hh"
-#include "Address.hh"
-#include "AbstractChip.hh"
-#include "util.hh"
+#include "mem/ruby/system/PersistentTable.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/gems_common/util.hh"
// randomize so that handoffs are not locality-aware
// int persistent_randomize[] = {0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15};
#ifndef PersistentTable_H
#define PersistentTable_H
-#include "Global.hh"
-#include "MachineID.hh"
-#include "AccessType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/MachineID.hh"
+#include "mem/protocol/AccessType.hh"
class AbstractChip;
#ifndef PSEUDOLRUPOLICY_H
#define PSEUDOLRUPOLICY_H
-#include "AbstractReplacementPolicy.hh"
+#include "mem/ruby/system/AbstractReplacementPolicy.hh"
/**
* Implementation of tree-based pseudo-LRU replacement
*
*/
-#include "Global.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "Protocol.hh"
-#include "Profiler.hh"
-#include "CacheMemory.hh"
-#include "RubyConfig.hh"
-//#include "Tracer.hh"
-#include "AbstractChip.hh"
-#include "Chip.hh"
-#include "Tester.hh"
-#include "SubBlock.hh"
-#include "Protocol.hh"
-#include "Map.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/protocol/Protocol.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/system/CacheMemory.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+//#include "mem/ruby/recorder/Tracer.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/protocol/Chip.hh"
+#include "mem/ruby/tester/Tester.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/protocol/Protocol.hh"
+#include "mem/gems_common/Map.hh"
Sequencer::Sequencer(AbstractChip* chip_ptr, int version) {
m_chip_ptr = chip_ptr;
#ifndef SEQUENCER_H
#define SEQUENCER_H
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "Consumer.hh"
-#include "CacheRequestType.hh"
-#include "AccessModeType.hh"
-#include "GenericMachineType.hh"
-#include "PrefetchBit.hh"
-#include "Map.hh"
-#include "packet.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/protocol/AccessModeType.hh"
+#include "mem/protocol/GenericMachineType.hh"
+#include "mem/protocol/PrefetchBit.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/packet.hh"
class DataBlock;
class AbstractChip;
*
*/
-#include "Global.hh"
-#include "RubyConfig.hh"
-#include "StoreBuffer.hh"
-#include "AbstractChip.hh"
-#include "System.hh"
-#include "Driver.hh"
-#include "Vector.hh"
-#include "RubyEventQueue.hh"
-#include "AddressProfiler.hh"
-#include "Sequencer.hh"
-#include "SubBlock.hh"
-#include "Profiler.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/system/StoreBuffer.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/profiler/AddressProfiler.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/profiler/Profiler.hh"
// *** Begin Helper class ***
struct StoreBufferEntry {
#ifndef StoreBuffer_H
#define StoreBuffer_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "Address.hh"
-#include "AccessModeType.hh"
-#include "CacheRequestType.hh"
-#include "StoreCache.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/protocol/AccessModeType.hh"
+#include "mem/protocol/CacheRequestType.hh"
+#include "mem/ruby/system/StoreCache.hh"
class CacheMsg;
class DataBlock;
*
*/
-#include "StoreCache.hh"
-#include "System.hh"
-#include "Driver.hh"
-#include "Vector.hh"
-#include "DataBlock.hh"
-#include "SubBlock.hh"
-#include "Map.hh"
+#include "mem/ruby/system/StoreCache.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/DataBlock.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/gems_common/Map.hh"
// Helper class
struct StoreCacheEntry {
#ifndef StoreCache_H
#define StoreCache_H
-#include "Global.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
class DataBlock;
*/
-#include "System.hh"
-#include "Profiler.hh"
-#include "Network.hh"
-#include "Tester.hh"
-#include "SyntheticDriver.hh"
-#include "DeterministicDriver.hh"
-#include "Chip.hh"
-//#include "Tracer.hh"
-#include "Protocol.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/ruby/tester/Tester.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
+#include "mem/ruby/tester/DeterministicDriver.hh"
+#include "mem/protocol/Chip.hh"
+//#include "mem/ruby/recorder/Tracer.hh"
+#include "mem/protocol/Protocol.hh"
//#include "XactIsolationChecker.hh" // gem5:Arka for decomissioning of log_tm
//#include "XactCommitArbiter.hh"
//#include "XactVisualizer.hh"
-#include "M5Driver.hh"
+#include "mem/ruby/interfaces/M5Driver.hh"
RubySystem::RubySystem()
{
#ifndef SYSTEM_H
#define SYSTEM_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Address.hh"
-#include "RubyConfig.hh"
-#include "MachineType.hh"
-#include "AbstractChip.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
class Profiler;
class Network;
#ifndef TBETABLE_H
#define TBETABLE_H
-#include "Global.hh"
-#include "Map.hh"
-#include "Address.hh"
-#include "Profiler.hh"
-#include "AbstractChip.hh"
-#include "System.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/slicc_interface/AbstractChip.hh"
+#include "mem/ruby/system/System.hh"
template<class ENTRY>
class TBETable {
* $Id$
*/
-#include "Global.hh"
-#include "TimerTable.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/TimerTable.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
TimerTable::TimerTable(Chip* chip_ptr)
{
#ifndef TIMERTABLE_H
#define TIMERTABLE_H
-#include "Global.hh"
-#include "Map.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/ruby/common/Address.hh"
class Consumer;
class Chip;
*
*/
-#include "BarrierGenerator.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "SyntheticDriver.hh"
-#include "Chip.hh"
+#include "mem/ruby/tester/BarrierGenerator.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
+#include "mem/protocol/Chip.hh"
BarrierGenerator::BarrierGenerator(NodeID node, SyntheticDriver& driver) :
m_driver(driver)
#ifndef BARRIERGENERATOR_H
#define BARRIERGENERATOR_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "Check.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "SubBlock.hh"
-#include "Chip.hh"
+#include "mem/ruby/tester/Check.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/protocol/Chip.hh"
Check::Check(const Address& address, const Address& pc)
{
#ifndef CHECK_H
#define CHECK_H
-#include "Global.hh"
-#include "Address.hh"
-#include "NodeID.hh"
-#include "TesterStatus.hh"
-#include "AccessModeType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/protocol/TesterStatus.hh"
+#include "mem/protocol/AccessModeType.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "CheckTable.hh"
-#include "Check.hh"
-#include "Map.hh"
+#include "mem/ruby/tester/CheckTable.hh"
+#include "mem/ruby/tester/Check.hh"
+#include "mem/gems_common/Map.hh"
CheckTable::CheckTable()
{
#ifndef CHECKTABLE_H
#define CHECKTABLE_H
-#include "Global.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
class Address;
class Check;
// This Deterministic Generator generates GETX requests for all nodes in the system
// The GETX requests are generated one at a time in round-robin fashion 0...1...2...etc.
-#include "DetermGETXGenerator.hh"
-#include "DetermGETXGeneratorStatus.hh"
-#include "LockStatus.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "DeterministicDriver.hh"
-#include "Chip.hh"
+#include "mem/ruby/tester/DetermGETXGenerator.hh"
+#include "mem/protocol/DetermGETXGeneratorStatus.hh"
+#include "mem/protocol/LockStatus.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/DeterministicDriver.hh"
+#include "mem/protocol/Chip.hh"
DetermGETXGenerator::DetermGETXGenerator(NodeID node, DeterministicDriver& driver) :
m_driver(driver)
#ifndef DETERMGETXGENERATOR_H
#define DETERMGETXGENERATOR_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "DetermGETXGeneratorStatus.hh"
-#include "NodeID.hh"
-#include "Address.hh"
-#include "SpecifiedGenerator.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/DetermGETXGeneratorStatus.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/tester/SpecifiedGenerator.hh"
class Sequencer;
class SubBlock;
// then Invalidates them with a GETX. The GETS and GETX request are generated one
// at a time in round-robin fashion 0...1...2...etc.
-#include "DetermInvGenerator.hh"
-#include "DetermInvGeneratorStatus.hh"
-#include "LockStatus.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "DeterministicDriver.hh"
-#include "Chip.hh"
+#include "mem/ruby/tester/DetermInvGenerator.hh"
+#include "mem/protocol/DetermInvGeneratorStatus.hh"
+#include "mem/protocol/LockStatus.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/DeterministicDriver.hh"
+#include "mem/protocol/Chip.hh"
DetermInvGenerator::DetermInvGenerator(NodeID node, DeterministicDriver& driver) :
m_driver(driver)
#ifndef DETERMINVGENERATOR_H
#define DETERMINVGENERATOR_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "DetermInvGeneratorStatus.hh"
-#include "NodeID.hh"
-#include "Address.hh"
-#include "SpecifiedGenerator.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/DetermInvGeneratorStatus.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/tester/SpecifiedGenerator.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "DetermSeriesGETSGenerator.hh"
-#include "DetermSeriesGETSGeneratorStatus.hh"
-#include "LockStatus.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "DeterministicDriver.hh"
-#include "Chip.hh"
+#include "mem/ruby/tester/DetermSeriesGETSGenerator.hh"
+#include "mem/protocol/DetermSeriesGETSGeneratorStatus.hh"
+#include "mem/protocol/LockStatus.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/DeterministicDriver.hh"
+#include "mem/protocol/Chip.hh"
DetermSeriesGETSGenerator::DetermSeriesGETSGenerator(NodeID node, DeterministicDriver& driver) :
m_driver(driver)
#ifndef DETERMSERIESGETSGENERATOR_H
#define DETERMSERIESGETSGENERATOR_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "DetermSeriesGETSGeneratorStatus.hh"
-#include "NodeID.hh"
-#include "Address.hh"
-#include "SpecifiedGenerator.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/DetermSeriesGETSGeneratorStatus.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
+#include "mem/ruby/tester/SpecifiedGenerator.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "Global.hh"
-#include "System.hh"
-#include "DeterministicDriver.hh"
-#include "RubyEventQueue.hh"
-#include "SpecifiedGenerator.hh"
-#include "DetermGETXGenerator.hh"
-#include "DetermInvGenerator.hh"
-#include "DetermSeriesGETSGenerator.hh"
-#include "SubBlock.hh"
-#include "Chip.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/tester/DeterministicDriver.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/tester/SpecifiedGenerator.hh"
+#include "mem/ruby/tester/DetermGETXGenerator.hh"
+#include "mem/ruby/tester/DetermInvGenerator.hh"
+#include "mem/ruby/tester/DetermSeriesGETSGenerator.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/protocol/Chip.hh"
DeterministicDriver::DeterministicDriver(RubySystem* sys_ptr)
{
#ifndef DETERMINISTICDRIVER_H
#define DETERMINISTICDRIVER_H
-#include "Global.hh"
-#include "Driver.hh"
-#include "Histogram.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/ruby/common/Histogram.hh"
+#include "mem/protocol/CacheRequestType.hh"
class RubySystem;
class SpecifiedGenerator;
*
*/
-#include "Instruction.hh"
+#include "mem/ruby/tester/Instruction.hh"
Instruction::Instruction(){
m_opcode = Opcode_NUM_OPCODES;
#ifndef INSTRUCTION_H
#define INSTRUCTION_H
-#include "Address.hh"
+#include "mem/ruby/common/Address.hh"
enum Opcode {
*
*/
-#include "Global.hh"
-#include "System.hh"
-#include "RaceyDriver.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/tester/RaceyDriver.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
#include "RaceyPseudoThread.hh"
-#include "SubBlock.hh"
+#include "mem/ruby/common/SubBlock.hh"
RaceyDriver::RaceyDriver()
{
#ifndef RACEYDRIVER_H
#define RACEYDRIVER_H
-#include "Global.hh"
-#include "Driver.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Driver.hh"
class RaceyPseudoThread;
*
*/
-#include "RequestGenerator.hh"
-#include "RequestGeneratorStatus.hh"
-#include "LockStatus.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "SyntheticDriver.hh"
-#include "Chip.hh"
+#include "mem/ruby/tester/RequestGenerator.hh"
+#include "mem/protocol/RequestGeneratorStatus.hh"
+#include "mem/protocol/LockStatus.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
+#include "mem/protocol/Chip.hh"
RequestGenerator::RequestGenerator(NodeID node, SyntheticDriver& driver) :
m_driver(driver)
#ifndef REQUESTGENERATOR_H
#define REQUESTGENERATOR_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "RequestGeneratorStatus.hh"
-#include "NodeID.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/protocol/RequestGeneratorStatus.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "SpecifiedGenerator.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "SubBlock.hh"
-#include "SyntheticDriver.hh"
+#include "mem/ruby/tester/SpecifiedGenerator.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
SpecifiedGenerator::SpecifiedGenerator()
{
#ifndef SPECIFIEDGENERATOR_H
#define SPECIFIEDGENERATOR_H
-#include "Global.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "Global.hh"
-#include "System.hh"
-#include "SyntheticDriver.hh"
-#include "RubyEventQueue.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
//#ifndef XACT_MEM
-#include "RequestGenerator.hh"
+#include "mem/ruby/tester/RequestGenerator.hh"
//#endif
-//#include "XactAbortRequestGenerator.hh"
-//#include "XactRequestGenerator.hh"
-#include "SubBlock.hh"
-#include "Chip.hh"
+//#include "mem/ruby/tester/XactAbortRequestGenerator.hh"
+//#include "mem/ruby/tester/XactRequestGenerator.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/protocol/Chip.hh"
SyntheticDriver::SyntheticDriver(RubySystem* sys_ptr)
{
#ifndef SYNTHETICDRIVER_H
#define SYNTHETICDRIVER_H
-#include "Global.hh"
-#include "Driver.hh"
-#include "Histogram.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/ruby/common/Histogram.hh"
+#include "mem/protocol/CacheRequestType.hh"
class RubySystem;
class RequestGenerator;
*
*/
-#include "Global.hh"
-#include "System.hh"
-#include "Tester.hh"
-#include "RubyEventQueue.hh"
-#include "SubBlock.hh"
-#include "Check.hh"
-#include "Chip.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/tester/Tester.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/Check.hh"
+#include "mem/protocol/Chip.hh"
Tester::Tester(RubySystem* sys_ptr)
{
#ifndef TESTER_H
#define TESTER_H
-#include "Global.hh"
-#include "Driver.hh"
-#include "CheckTable.hh"
-#include "CacheRequestType.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/Driver.hh"
+#include "mem/ruby/tester/CheckTable.hh"
+#include "mem/protocol/CacheRequestType.hh"
class RubySystem;
#ifdef XACT_MEM
-#include "XactAbortRequestGenerator.hh"
-#include "LockStatus.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "SyntheticDriver.hh"
-#include "Chip.hh"
-#include "Instruction.hh"
+#include "mem/ruby/tester/XactAbortRequestGenerator.hh"
+#include "mem/protocol/LockStatus.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
+#include "mem/protocol/Chip.hh"
+#include "mem/ruby/tester/Instruction.hh"
#include "TransactionManager.hh"
//uint8 XactAbortRequestGenerator::testArray[MAX_ADDRESS];
#ifdef XACT_MEM
-#include "RequestGenerator.hh"
+#include "mem/ruby/tester/RequestGenerator.hh"
#include "global.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
-#include "Address.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
class Sequencer;
class SubBlock;
*
*/
-#include "XactRequestGenerator.hh"
-#include "LockStatus.hh"
-#include "Sequencer.hh"
-#include "System.hh"
-#include "RubyConfig.hh"
-#include "SubBlock.hh"
-#include "SyntheticDriver.hh"
-#include "Chip.hh"
-#include "Instruction.hh"
+#include "mem/ruby/tester/XactRequestGenerator.hh"
+#include "mem/protocol/LockStatus.hh"
+#include "mem/ruby/system/Sequencer.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/common/SubBlock.hh"
+#include "mem/ruby/tester/SyntheticDriver.hh"
+#include "mem/protocol/Chip.hh"
+#include "mem/ruby/tester/Instruction.hh"
XactRequestGenerator::XactRequestGenerator(NodeID node, SyntheticDriver& driver) :
m_driver(driver), RequestGenerator(node, driver)
#define XACTREQUESTGENERATOR_H
#include "global.hh"
-#include "RequestGenerator.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
-#include "Address.hh"
+#include "mem/ruby/tester/RequestGenerator.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/common/Address.hh"
#include "TransactionManager.hh"
class Sequencer;
*
*/
-#include "main.hh"
-#include "RubyEventQueue.hh"
-#include "RubyConfig.hh"
-#include "test_framework.hh"
+#include "mem/ruby/tester/main.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/ruby/tester/test_framework.hh"
// *******************
// *** tester main ***
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/*
- * $Id$
- *
- * Description:
- *
- */
-
#ifndef MAIN_H
#define MAIN_H
-#include "Global.hh"
+#include "mem/ruby/common/Global.hh"
#endif //MAIN_H
*
*/
-#include "protocol_name.hh"
-#include "test_framework.hh"
-#include "System.hh"
-#include "init.hh"
-#include "Tester.hh"
-#include "RubyEventQueue.hh"
+#include "mem/protocol/protocol_name.hh"
+#include "mem/ruby/tester/test_framework.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/init.hh"
+#include "mem/ruby/tester/Tester.hh"
+#include "mem/ruby/eventqueue/RubyEventQueue.hh"
#include "getopt.hh"
-#include "Network.hh"
-#include "CacheRecorder.hh"
-#include "Tracer.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/ruby/recorder/CacheRecorder.hh"
+#include "mem/ruby/recorder/Tracer.hh"
using namespace std;
#include <string>
// #include "simics/api.hh"
// };
-#include "confio.hh"
-#include "initvar.hh"
+#include "mem/gems_common/ioutil/confio.hh"
+#include "mem/gems_common/ioutil/initvar.hh"
// A generated file containing the default tester parameters in string form
// The defaults are stored in the variables
// global_default_param and global_default_tester_param
-#include "default_param.hh"
-#include "tester_param.hh"
+#include "mem/ruby/default_param.hh"
+#include "mem/ruby/tester_param.hh"
static void parseOptions(int argc, char **argv);
static void usageInstructions();
#ifndef TESTFRAMEWORK_H
#define TESTFRAMEWORK_H
-#include "Global.hh"
-#include "mf_api.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/interfaces/mf_api.hh"
void tester_main(int argc, char **argv);
void tester_install_opal( mf_opal_api_t *opal_api, mf_ruby_api_t *ruby_api );
*
*/
-#include "AST.hh"
+#include "mem/slicc/ast/AST.hh"
#ifndef AST_H
#define AST_H
-#include "slicc_global.hh"
-#include "Vector.hh"
-#include "Map.hh"
-#include "Location.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/slicc/ast/Location.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
class AST {
public:
#ifndef ASTs_H
#define ASTs_H
-#include "slicc_global.hh"
-#include "main.hh"
-#include "StateMachine.hh"
-#include "AST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/main.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/ast/AST.hh"
-#include "MachineAST.hh"
+#include "mem/slicc/ast/MachineAST.hh"
-#include "TypeAST.hh"
-#include "FormalParamAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
+#include "mem/slicc/ast/FormalParamAST.hh"
-#include "DeclListAST.hh"
-#include "DeclAST.hh"
-#include "ActionDeclAST.hh"
-#include "InPortDeclAST.hh"
-#include "OutPortDeclAST.hh"
-#include "TransitionDeclAST.hh"
-#include "EnumDeclAST.hh"
-#include "TypeDeclAST.hh"
-#include "ObjDeclAST.hh"
-#include "FuncDeclAST.hh"
+#include "mem/slicc/ast/DeclListAST.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/ActionDeclAST.hh"
+#include "mem/slicc/ast/InPortDeclAST.hh"
+#include "mem/slicc/ast/OutPortDeclAST.hh"
+#include "mem/slicc/ast/TransitionDeclAST.hh"
+#include "mem/slicc/ast/EnumDeclAST.hh"
+#include "mem/slicc/ast/TypeDeclAST.hh"
+#include "mem/slicc/ast/ObjDeclAST.hh"
+#include "mem/slicc/ast/FuncDeclAST.hh"
-#include "TypeFieldAST.hh"
-#include "TypeFieldMethodAST.hh"
-#include "TypeFieldMemberAST.hh"
-#include "TypeFieldEnumAST.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
+#include "mem/slicc/ast/TypeFieldMethodAST.hh"
+#include "mem/slicc/ast/TypeFieldMemberAST.hh"
+#include "mem/slicc/ast/TypeFieldEnumAST.hh"
-#include "PairAST.hh"
-#include "PairListAST.hh"
+#include "mem/slicc/ast/PairAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
-#include "ExprAST.hh"
-#include "VarExprAST.hh"
-#include "EnumExprAST.hh"
-#include "LiteralExprAST.hh"
-#include "MemberExprAST.hh"
-#include "InfixOperatorExprAST.hh"
-#include "FuncCallExprAST.hh"
-#include "MethodCallExprAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/slicc/ast/EnumExprAST.hh"
+#include "mem/slicc/ast/LiteralExprAST.hh"
+#include "mem/slicc/ast/MemberExprAST.hh"
+#include "mem/slicc/ast/InfixOperatorExprAST.hh"
+#include "mem/slicc/ast/FuncCallExprAST.hh"
+#include "mem/slicc/ast/MethodCallExprAST.hh"
-#include "ChipComponentAccessAST.hh"
+#include "mem/slicc/ast/ChipComponentAccessAST.hh"
-#include "StatementListAST.hh"
-#include "StatementAST.hh"
-#include "ExprStatementAST.hh"
-#include "AssignStatementAST.hh"
-#include "EnqueueStatementAST.hh"
-#include "IfStatementAST.hh"
-#include "PeekStatementAST.hh"
-#include "CopyHeadStatementAST.hh"
-#include "CheckAllocateStatementAST.hh"
-#include "CheckStopSlotsStatementAST.hh"
-#include "ReturnStatementAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprStatementAST.hh"
+#include "mem/slicc/ast/AssignStatementAST.hh"
+#include "mem/slicc/ast/EnqueueStatementAST.hh"
+#include "mem/slicc/ast/IfStatementAST.hh"
+#include "mem/slicc/ast/PeekStatementAST.hh"
+#include "mem/slicc/ast/CopyHeadStatementAST.hh"
+#include "mem/slicc/ast/CheckAllocateStatementAST.hh"
+#include "mem/slicc/ast/CheckStopSlotsStatementAST.hh"
+#include "mem/slicc/ast/ReturnStatementAST.hh"
#endif //ASTs_H
*
*/
-#include "ActionDeclAST.hh"
-#include "Action.hh"
+#include "mem/slicc/ast/ActionDeclAST.hh"
+#include "mem/slicc/symbols/Action.hh"
ActionDeclAST::ActionDeclAST(string* ident_ptr,
PairListAST* pairs_ptr,
#ifndef ActionDeclAST_H
#define ActionDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "StatementListAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
class ActionDeclAST : public DeclAST {
public:
*
*/
-#include "AssignStatementAST.hh"
+#include "mem/slicc/ast/AssignStatementAST.hh"
AssignStatementAST::AssignStatementAST(ExprAST* lvalue_ptr, ExprAST* rvalue_ptr)
: StatementAST()
#ifndef ASSIGNSTATEMENTAST_H
#define ASSIGNSTATEMENTAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
*
*/
-#include "CheckAllocateStatementAST.hh"
-#include "SymbolTable.hh"
-#include "VarExprAST.hh"
-#include "util.hh"
+#include "mem/slicc/ast/CheckAllocateStatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/gems_common/util.hh"
CheckAllocateStatementAST::CheckAllocateStatementAST(VarExprAST* variable)
: StatementAST()
#ifndef CHECKALLOCATESTATEMENTAST_H
#define CHECKALLOCATESTATEMENTAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class VarExprAST;
class Var;
*
*/
-#include "CheckStopSlotsStatementAST.hh"
-#include "SymbolTable.hh"
-#include "VarExprAST.hh"
-#include "PairListAST.hh"
+#include "mem/slicc/ast/CheckStopSlotsStatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
CheckStopSlotsStatementAST::CheckStopSlotsStatementAST(VarExprAST* variable, string* condStr, string* bankStr)
: StatementAST()
#ifndef CHECKSTOPSLOTSSTATEMENTAST_H
#define CHECKSTOPSLOTSSTATEMENTAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
-#include "StatementAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class VarExprAST;
class Var;
*
*/
-#include "ChipComponentAccessAST.hh"
+#include "mem/slicc/ast/ChipComponentAccessAST.hh"
ChipComponentAccessAST::ChipComponentAccessAST(VarExprAST* machine, ExprAST* mach_version, VarExprAST* component, string* proc_name, Vector<ExprAST*>* expr_vec_ptr)
#ifndef ChipComponentAccessAST_H
#define ChipComponentAccessAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "ExprAST.hh"
-#include "VarExprAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class ChipComponentAccessAST : public ExprAST {
public:
*
*/
-#include "CopyHeadStatementAST.hh"
-#include "SymbolTable.hh"
-#include "VarExprAST.hh"
-#include "util.hh"
+#include "mem/slicc/ast/CopyHeadStatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/gems_common/util.hh"
CopyHeadStatementAST::CopyHeadStatementAST(VarExprAST* in_queue_ptr,
VarExprAST* out_queue_ptr,
#ifndef COPYHEADSTATEMENTAST_H
#define COPYHEADTATEMENTAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "StatementListAST.hh"
-#include "TypeAST.hh"
-#include "PairListAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
class VarExprAST;
class Var;
*
*/
-#include "DeclAST.hh"
+#include "mem/slicc/ast/DeclAST.hh"
#ifndef DECLAST_H
#define DECLAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
-#include "PairListAST.hh"
-#include "StateMachine.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class DeclAST : public AST {
public:
*
*/
-#include "DeclListAST.hh"
+#include "mem/slicc/ast/DeclListAST.hh"
DeclListAST::DeclListAST(Vector<DeclAST*>* vec_ptr)
: AST()
#ifndef DeclListAST_H
#define DeclListAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
-#include "DeclAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
+#include "mem/slicc/ast/DeclAST.hh"
class DeclListAST : public AST {
public:
*
*/
-#include "EnqueueStatementAST.hh"
-#include "SymbolTable.hh"
-#include "VarExprAST.hh"
-#include "PairListAST.hh"
-#include "util.hh"
+#include "mem/slicc/ast/EnqueueStatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
+#include "mem/gems_common/util.hh"
EnqueueStatementAST::EnqueueStatementAST(VarExprAST* queue_name_ptr,
TypeAST* type_name_ptr,
#ifndef ENQUEUESTATEMENTAST_H
#define ENQUEUESTATEMENTAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "StatementListAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class VarExprAST;
class Var;
*
*/
-#include "EnumDeclAST.hh"
-#include "main.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/EnumDeclAST.hh"
+#include "mem/slicc/main.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
EnumDeclAST::EnumDeclAST(TypeAST* type_ast_ptr,
PairListAST* pairs_ptr,
#ifndef EnumDeclAST_H
#define EnumDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "TypeAST.hh"
-#include "TypeFieldAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
class EnumDeclAST : public DeclAST {
public:
*
*/
-#include "EnumExprAST.hh"
+#include "mem/slicc/ast/EnumExprAST.hh"
EnumExprAST::EnumExprAST(TypeAST* type_ast_ptr,
string* value_ptr)
#ifndef EnumExprAST_H
#define EnumExprAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class EnumExprAST : public ExprAST {
*
*/
-#include "ExprAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
#ifndef EXPRAST_H
#define EXPRAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
class ExprAST : public AST {
*
*/
-#include "ExprStatementAST.hh"
+#include "mem/slicc/ast/ExprStatementAST.hh"
ExprStatementAST::ExprStatementAST(ExprAST* expr_ptr)
: StatementAST()
#ifndef ExprStatementAST_H
#define ExprStatementAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class ExprStatementAST : public StatementAST {
public:
*
*/
-#include "FormalParamAST.hh"
-#include "StatementAST.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/FormalParamAST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
FormalParamAST::~FormalParamAST()
{
#ifndef FORMALPARAMAST_H
#define FORMALPARAMAST_H
-#include "slicc_global.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class FormalParamAST : public AST {
*
*/
-#include "FuncCallExprAST.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/FuncCallExprAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
FuncCallExprAST::FuncCallExprAST(string* proc_name_ptr,
Vector<ExprAST*>* expr_vec_ptr)
#ifndef FUNCCALLEXPRAST_H
#define FUNCCALLEXPRAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
// ProcGen decl
*
*/
-#include "FuncDeclAST.hh"
-#include "SymbolTable.hh"
-#include "main.hh"
+#include "mem/slicc/ast/FuncDeclAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/main.hh"
FuncDeclAST::FuncDeclAST(TypeAST* return_type_ast_ptr,
string* ident_ptr,
#ifndef FuncDeclAST_H
#define FuncDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "TypeFieldAST.hh"
-#include "TypeAST.hh"
-#include "FormalParamAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
+#include "mem/slicc/ast/FormalParamAST.hh"
class FuncDeclAST : public DeclAST {
public:
*
*/
-#include "IfStatementAST.hh"
+#include "mem/slicc/ast/IfStatementAST.hh"
IfStatementAST::IfStatementAST(ExprAST* cond_ptr,
StatementListAST* then_ptr,
#ifndef IFSTATEMENTAST_H
#define IFSTATEMENTAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
-#include "StatementAST.hh"
-#include "StatementListAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
class IfStatementAST : public StatementAST {
*
*/
-#include "InPortDeclAST.hh"
-#include "SymbolTable.hh"
-#include "Var.hh"
+#include "mem/slicc/ast/InPortDeclAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/symbols/Var.hh"
InPortDeclAST::InPortDeclAST(string* ident_ptr,
TypeAST* msg_type_ptr,
#ifndef InPortDeclAST_H
#define InPortDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "StatementListAST.hh"
-#include "VarExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
class InPortDeclAST : public DeclAST {
public:
*
*/
-#include "InfixOperatorExprAST.hh"
+#include "mem/slicc/ast/InfixOperatorExprAST.hh"
InfixOperatorExprAST::InfixOperatorExprAST(ExprAST* left_ptr,
string* op_ptr,
#ifndef INFIXOPERATOREXPRAST_H
#define INFIXOPERATOREXPRAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class InfixOperatorExprAST : public ExprAST {
*
*/
-#include "LiteralExprAST.hh"
+#include "mem/slicc/ast/LiteralExprAST.hh"
Type* LiteralExprAST::generate(string& code) const
{
#ifndef LITERALEXPRAST_H
#define LITERALEXPRAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class LiteralExprAST : public ExprAST {
*
*/
-#include "Location.hh"
+#include "mem/slicc/ast/Location.hh"
int g_line_number = 0;
string g_file_name("");
#ifndef LOCATION_H
#define LOCATION_H
-#include "slicc_global.hh"
+#include "mem/slicc/slicc_global.hh"
extern int g_line_number;
extern string g_file_name;
*
*/
-#include "MachineAST.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/MachineAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
MachineAST::MachineAST(string* ident_ptr,
PairListAST* pairs_ptr,
#ifndef MachineAST_H
#define MachineAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "DeclListAST.hh"
-#include "StateMachine.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/DeclListAST.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
class MachineAST : public DeclAST {
public:
*
*/
-#include "MemberExprAST.hh"
+#include "mem/slicc/ast/MemberExprAST.hh"
MemberExprAST::MemberExprAST(ExprAST* expr_ast_ptr, string* field_ptr)
: ExprAST()
#ifndef MemberExprAST_H
#define MemberExprAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class MemberExprAST : public ExprAST {
*
*/
-#include "MethodCallExprAST.hh"
+#include "mem/slicc/ast/MethodCallExprAST.hh"
MethodCallExprAST::MethodCallExprAST(ExprAST* obj_expr_ptr,
string* proc_name_ptr,
#ifndef MethodCallExprAST_H
#define MethodCallExprAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "ExprAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class MethodCallExprAST : public ExprAST {
public:
*
*/
-#include "ObjDeclAST.hh"
-#include "SymbolTable.hh"
-#include "main.hh"
+#include "mem/slicc/ast/ObjDeclAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/main.hh"
ObjDeclAST::ObjDeclAST(TypeAST* type_ptr,
string* ident_ptr,
#ifndef ObjDeclAST_H
#define ObjDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "TypeFieldAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class ObjDeclAST : public DeclAST {
public:
*
*/
-#include "OutPortDeclAST.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/OutPortDeclAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
OutPortDeclAST::OutPortDeclAST(string* ident_ptr,
TypeAST* msg_type_ptr,
#ifndef OutPortDeclAST_H
#define OutPortDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "StatementListAST.hh"
-#include "VarExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
class OutPortDeclAST : public DeclAST {
public:
*
*/
-#include "PairAST.hh"
+#include "mem/slicc/ast/PairAST.hh"
PairAST::PairAST(string* key_ptr, string* value_ptr)
: AST()
#ifndef PAIRAST_H
#define PAIRAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
class PairAST : public AST {
public:
*
*/
-#include "PairListAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
void PairListAST::addPair(PairAST* pair_ptr)
{
#ifndef PairListAST_H
#define PairListAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
-#include "PairAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
+#include "mem/slicc/ast/PairAST.hh"
class PairListAST : public AST {
*
*/
-#include "PeekStatementAST.hh"
-#include "SymbolTable.hh"
-#include "StatementListAST.hh"
-#include "TypeAST.hh"
-#include "VarExprAST.hh"
+#include "mem/slicc/ast/PeekStatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
PeekStatementAST::PeekStatementAST(VarExprAST* queue_name_ptr,
TypeAST* type_ptr,
#ifndef PEEKSTATEMENTAST_H
#define PEEKSTATEMENTAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
class StatementListAST;
class TypeAST;
*
*/
-#include "ReturnStatementAST.hh"
+#include "mem/slicc/ast/ReturnStatementAST.hh"
ReturnStatementAST::ReturnStatementAST(ExprAST* expr_ptr)
: StatementAST()
#ifndef ReturnStatementAST_H
#define ReturnStatementAST_H
-#include "slicc_global.hh"
-#include "StatementAST.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class ReturnStatementAST : public StatementAST {
public:
*
*/
-#include "StatementAST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
static int indentation_depth = 1;
#ifndef STATEMENTAST_H
#define STATEMENTAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
void inc_indent();
void dec_indent();
*
*/
-#include "StatementListAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
StatementListAST::StatementListAST(Vector<StatementAST*>* vec_ptr)
: AST()
#ifndef STATEMENTLISTAST_H
#define STATEMENTLISTAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
-#include "StatementAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
class Var;
class StatementListAST : public AST {
*
*/
-#include "TransitionDeclAST.hh"
-#include "Transition.hh"
+#include "mem/slicc/ast/TransitionDeclAST.hh"
+#include "mem/slicc/symbols/Transition.hh"
TransitionDeclAST::TransitionDeclAST(Vector<string>* state_list_ptr,
Vector<string>* event_list_ptr,
#ifndef TransitionDeclAST_H
#define TransitionDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "StatementListAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
class TransitionDeclAST : public DeclAST {
public:
*
*/
-#include "TypeAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
TypeAST::TypeAST(string* ident_ptr)
: AST()
#ifndef TYPEAST_H
#define TYPEAST_H
-#include "slicc_global.hh"
-#include "AST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/AST.hh"
class TypeAST : public AST {
public:
*
*/
-#include "TypeDeclAST.hh"
-#include "main.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/TypeDeclAST.hh"
+#include "mem/slicc/main.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
TypeDeclAST::TypeDeclAST(TypeAST* type_ast_ptr,
PairListAST* pairs_ptr,
#ifndef TypeDeclAST_H
#define TypeDeclAST_H
-#include "slicc_global.hh"
-#include "DeclAST.hh"
-#include "TypeAST.hh"
-#include "TypeFieldAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
class TypeDeclAST : public DeclAST {
public:
*
*/
-#include "TypeFieldAST.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
TypeFieldAST::TypeFieldAST(PairListAST* pairs_ptr)
: AST(pairs_ptr->getPairs()) {
#ifndef TypeFieldAST_H
#define TypeFieldAST_H
-#include "slicc_global.hh"
-#include "StateMachine.hh"
-#include "StatementListAST.hh"
-#include "PairListAST.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class TypeFieldAST : public AST {
public:
*
*/
-#include "TypeFieldEnumAST.hh"
-#include "State.hh"
-#include "Event.hh"
+#include "mem/slicc/ast/TypeFieldEnumAST.hh"
+#include "mem/slicc/symbols/State.hh"
+#include "mem/slicc/symbols/Event.hh"
TypeFieldEnumAST::TypeFieldEnumAST(string* field_id_ptr,
PairListAST* pairs_ptr)
#ifndef TypeFieldEnumAST_H
#define TypeFieldEnumAST_H
-#include "slicc_global.hh"
-#include "StateMachine.hh"
-#include "TypeFieldAST.hh"
-#include "StatementListAST.hh"
-#include "PairListAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
class TypeFieldEnumAST : public TypeFieldAST {
public:
*
*/
-#include "TypeFieldMemberAST.hh"
+#include "mem/slicc/ast/TypeFieldMemberAST.hh"
TypeFieldMemberAST::TypeFieldMemberAST(TypeAST* type_ast_ptr,
string* field_id_ptr,
#ifndef TypeFieldMemberAST_H
#define TypeFieldMemberAST_H
-#include "slicc_global.hh"
-#include "TypeFieldAST.hh"
-#include "StateMachine.hh"
-#include "StatementListAST.hh"
-#include "PairListAST.hh"
-#include "ExprAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/ast/StatementListAST.hh"
+#include "mem/slicc/ast/PairListAST.hh"
+#include "mem/slicc/ast/ExprAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class TypeFieldMemberAST : public TypeFieldAST {
public:
*
*/
-#include "TypeFieldMethodAST.hh"
+#include "mem/slicc/ast/TypeFieldMethodAST.hh"
TypeFieldMethodAST::TypeFieldMethodAST(TypeAST* return_type_ast_ptr,
string* ident_ptr,
#ifndef TYPEFIELDMETHODAST_H
#define TYPEFIELDMETHODAST_H
-#include "slicc_global.hh"
-#include "TypeFieldAST.hh"
-#include "TypeAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/TypeFieldAST.hh"
+#include "mem/slicc/ast/TypeAST.hh"
class TypeFieldMethodAST : public TypeFieldAST {
public:
*
*/
-#include "VarExprAST.hh"
-#include "StatementAST.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/ast/VarExprAST.hh"
+#include "mem/slicc/ast/StatementAST.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
VarExprAST::~VarExprAST()
{
#ifndef VAREXPRAST_H
#define VAREXPRAST_H
-#include "slicc_global.hh"
-#include "ExprAST.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/ExprAST.hh"
class Var;
class VarExprAST : public ExprAST {
*
* */
-#include "fileio.hh"
+#include "mem/slicc/generator/fileio.hh"
void conditionally_write_file(string filename, ostringstream& sstr)
{
#ifndef FILEIO_H
#define FILEIO_H
-#include "slicc_global.hh"
+#include "mem/slicc/slicc_global.hh"
void conditionally_write_file(string filename, ostringstream& sstr);
*
* */
-#include "html_gen.hh"
-#include "fileio.hh"
-#include "SymbolTable.hh"
+#include "mem/slicc/generator/html_gen.hh"
+#include "mem/slicc/generator/fileio.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
string formatHTMLShorthand(const string shorthand);
#ifndef HTML_GEN_H
#define HTML_GEN_H
-#include "slicc_global.hh"
-#include "StateMachine.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
string formatHTMLShorthand(const string shorthand);
void createHTMLindex(string title, ostream& out);
*
*/
-#include "mif_gen.hh"
-#include "State.hh"
-#include "Event.hh"
-#include "Action.hh"
-#include "Transition.hh"
+#include "mem/slicc/generator/mif_gen.hh"
+#include "mem/slicc/symbols/State.hh"
+#include "mem/slicc/symbols/Event.hh"
+#include "mem/slicc/symbols/Action.hh"
+#include "mem/slicc/symbols/Transition.hh"
// -- Helper functions
string formatShorthand(const string shorthand);
#ifndef MIF_GEN_H
#define MIF_GEN_H
-#include "StateMachine.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
void printStateTableMIF(const StateMachine& sm, ostream& out);
void printEventTableMIF(const StateMachine& sm, ostream& out);
*
* */
-#include "main.hh"
-#include "StateMachine.hh"
-#include "mif_gen.hh"
-#include "html_gen.hh"
-#include "fileio.hh"
-#include "DeclListAST.hh"
-#include "Type.hh"
-#include "SymbolTable.hh"
-#include "Event.hh"
-#include "State.hh"
-#include "Action.hh"
-#include "Transition.hh"
+#include "mem/slicc/main.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/generator/mif_gen.hh"
+#include "mem/slicc/generator/html_gen.hh"
+#include "mem/slicc/generator/fileio.hh"
+#include "mem/slicc/ast/DeclListAST.hh"
+#include "mem/slicc/symbols/Type.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/symbols/Event.hh"
+#include "mem/slicc/symbols/State.hh"
+#include "mem/slicc/symbols/Action.hh"
+#include "mem/slicc/symbols/Transition.hh"
// -- Main conversion functions
#ifndef MAIN_H
#define MAIN_H
-#include "slicc_global.hh"
-#include "DeclListAST.hh"
-#include "Map.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/ast/DeclListAST.hh"
+#include "mem/gems_common/Map.hh"
extern DeclListAST* g_decl_list_ptr;
%{
#include <assert.h>
-#include "ASTs.hh"
-#include "parser.h"
+#include "mem/slicc/ast/ASTs.hh"
+#include "mem/slicc/parser/parser.hh"
#include <string>
extern "C" int yylex();
#include <string>
#include <stdio.h>
#include <assert.h>
-#include "ASTs.hh"
+#include "mem/slicc/ast/ASTs.hh"
#define YYMAXDEPTH 100000
#define YYERROR_VERBOSE
* ../common directory.
*/
-#include "std-includes.hh"
-#include "Map.hh"
+#include "mem/gems_common/std-includes.hh"
+#include "mem/gems_common/Map.hh"
typedef unsigned char uint8;
typedef unsigned int uint32;
#ifndef ACTION_H
#define ACTION_H
-#include "Symbol.hh"
+#include "mem/slicc/symbols/Symbol.hh"
class Action : public Symbol {
public:
#ifndef EVENT_H
#define EVENT_H
-#include "Symbol.hh"
+#include "mem/slicc/symbols/Symbol.hh"
class Event : public Symbol {
public:
*
*/
-#include "Func.hh"
-#include "SymbolTable.hh"
-#include "fileio.hh"
-#include "StateMachine.hh"
+#include "mem/slicc/symbols/Func.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/generator/fileio.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
Func::Func(string id, const Location& location,
Type* type_ptr, const Vector<Type*>& param_type_vec,
// Header
out << "/** Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<< " */" << endl;
out << endl;
- out << "#include \"Types.hh\"" << endl;
- out << "#include \"Chip.hh\"" << endl;
+ out << "#include \"mem/protocol/Types.hh\"" << endl;
+ out << "#include \"mem/protocol/Chip.hh\"" << endl;
if (m_isInternalMachineFunc) {
out << "#include \"" << m_machineStr << "_Controller.hh\"" << endl;
}
#ifndef FUNC_H
#define FUNC_H
-#include "slicc_global.hh"
-#include "Type.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/symbols/Type.hh"
class StateMachine;
class Func : public Symbol {
#ifndef STATE_H
#define STATE_H
-#include "Symbol.hh"
+#include "mem/slicc/symbols/Symbol.hh"
class State : public Symbol {
public:
*
* */
-#include "StateMachine.hh"
-#include "fileio.hh"
-#include "html_gen.hh"
-#include "Action.hh"
-#include "Event.hh"
-#include "State.hh"
-#include "Transition.hh"
-#include "Var.hh"
-#include "SymbolTable.hh"
-#include "util.hh"
-#include "Vector.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
+#include "mem/slicc/generator/fileio.hh"
+#include "mem/slicc/generator/html_gen.hh"
+#include "mem/slicc/symbols/Action.hh"
+#include "mem/slicc/symbols/Event.hh"
+#include "mem/slicc/symbols/State.hh"
+#include "mem/slicc/symbols/Transition.hh"
+#include "mem/slicc/symbols/Var.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/gems_common/Vector.hh"
StateMachine::StateMachine(string ident, const Location& location, const Map<string, string>& pairs)
: Symbol(ident, location, pairs)
out << "#ifndef " << component << "_CONTROLLER_H" << endl;
out << "#define " << component << "_CONTROLLER_H" << endl;
out << endl;
- out << "#include \"Global.hh\"" << endl;
- out << "#include \"Consumer.hh\"" << endl;
- out << "#include \"TransitionResult.hh\"" << endl;
- out << "#include \"Types.hh\"" << endl;
- out << "#include \"" << component << "_Profiler.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Consumer.hh\"" << endl;
+ out << "#include \"mem/protocol/TransitionResult.hh\"" << endl;
+ out << "#include \"mem/protocol/Types.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Profiler.hh\"" << endl;
out << endl;
// for adding information to the protocol debug trace
out << " * Created by slicc definition of Module \"" << getShorthand() << "\"" << endl;
out << " */" << endl;
out << endl;
- out << "#include \"Global.hh\"" << endl;
- out << "#include \"RubySlicc_includes.hh\"" << endl;
- out << "#include \"" << component << "_Controller.hh\"" << endl;
- out << "#include \"" << component << "_State.hh\"" << endl;
- out << "#include \"" << component << "_Event.hh\"" << endl;
- out << "#include \"Types.hh\"" << endl;
- out << "#include \"System.hh\"" << endl;
- out << "#include \"Chip.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ out << "#include \"mem/ruby/slicc_interface/RubySlicc_includes.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Controller.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_State.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Event.hh\"" << endl;
+ out << "#include \"mem/protocol/Types.hh\"" << endl;
+ out << "#include \"mem/ruby/system/System.hh\"" << endl;
+ out << "#include \"mem/protocol/Chip.hh\"" << endl;
out << endl;
// for adding information to the protocol debug trace
out << "// Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<< endl;
out << "// " << getIdent() << ": " << getShorthand() << endl;
out << endl;
- out << "#include \"Global.hh\"" << endl;
- out << "#include \"RubySlicc_includes.hh\"" << endl;
- out << "#include \"" << component << "_Controller.hh\"" << endl;
- out << "#include \"" << component << "_State.hh\"" << endl;
- out << "#include \"" << component << "_Event.hh\"" << endl;
- out << "#include \"Types.hh\"" << endl;
- out << "#include \"System.hh\"" << endl;
- out << "#include \"Chip.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ out << "#include \"mem/ruby/slicc_interface/RubySlicc_includes.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Controller.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_State.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Event.hh\"" << endl;
+ out << "#include \"mem/protocol/Types.hh\"" << endl;
+ out << "#include \"mem/ruby/system/System.hh\"" << endl;
+ out << "#include \"mem/protocol/Chip.hh\"" << endl;
out << endl;
out << "void " << component << "_Controller::wakeup()" << endl;
out << "{" << endl;
out << "// Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<< endl;
out << "// " << getIdent() << ": " << getShorthand() << endl;
out << endl;
- out << "#include \"Global.hh\"" << endl;
- out << "#include \"" << component << "_Controller.hh\"" << endl;
- out << "#include \"" << component << "_State.hh\"" << endl;
- out << "#include \"" << component << "_Event.hh\"" << endl;
- out << "#include \"Types.hh\"" << endl;
- out << "#include \"System.hh\"" << endl;
- out << "#include \"Chip.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Controller.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_State.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Event.hh\"" << endl;
+ out << "#include \"mem/protocol/Types.hh\"" << endl;
+ out << "#include \"mem/ruby/system/System.hh\"" << endl;
+ out << "#include \"mem/protocol/Chip.hh\"" << endl;
out << endl;
out << "#define HASH_FUN(state, event) ((int(state)*" << component
<< "_Event_NUM)+int(event))" << endl;
out << "#ifndef " << component << "_PROFILER_H" << endl;
out << "#define " << component << "_PROFILER_H" << endl;
out << endl;
- out << "#include \"Global.hh\"" << endl;
- out << "#include \"" << component << "_State.hh\"" << endl;
- out << "#include \"" << component << "_Event.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_State.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Event.hh\"" << endl;
out << endl;
out << "class " << component << "_Profiler {" << endl;
out << "public:" << endl;
out << "// Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<< endl;
out << "// " << getIdent() << ": " << getShorthand() << endl;
out << endl;
- out << "#include \"" << component << "_Profiler.hh\"" << endl;
+ out << "#include \"mem/protocol/" << component << "_Profiler.hh\"" << endl;
out << endl;
// Constructor
#ifndef STATEMACHINE_H
#define STATEMACHINE_H
-#include "slicc_global.hh"
-#include "Vector.hh"
-#include "Map.hh"
-#include "Symbol.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/slicc/symbols/Symbol.hh"
class Transition;
class Event;
*
*/
-#include "Symbol.hh"
+#include "mem/slicc/symbols/Symbol.hh"
Symbol::Symbol(string id, const Location& location, const Map<string, string>& pairs)
{
#ifndef SYMBOL_H
#define SYMBOL_H
-#include "slicc_global.hh"
-#include "Map.hh"
-#include "Location.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/slicc/ast/Location.hh"
class Symbol {
public:
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "SymbolTable.hh"
-#include "fileio.hh"
-#include "html_gen.hh"
-#include "mif_gen.hh"
-#include "Action.hh"
+#include "mem/slicc/symbols/SymbolTable.hh"
+#include "mem/slicc/generator/fileio.hh"
+#include "mem/slicc/generator/html_gen.hh"
+#include "mem/slicc/generator/mif_gen.hh"
+#include "mem/slicc/symbols/Action.hh"
SymbolTable g_sym_table;
{
int size = m_sym_vec.size();
{
- // Write the Types.hh include file for the types
+ // Write the mem/protocol/Types.hh include file for the types
ostringstream sstr;
sstr << "/** Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<< " */" << endl;
sstr << endl;
- sstr << "#include \"RubySlicc_includes.hh\"" << endl;
+ sstr << "#include \"mem/ruby/slicc_interface/RubySlicc_includes.hh\"" << endl;
for(int i=0; i<size; i++) {
Type* type = dynamic_cast<Type*>(m_sym_vec[i]);
if (type != NULL && !type->isPrimitive()) {
- sstr << "#include \"" << type->cIdent() << ".hh" << "\"" << endl;
+ sstr << "#include \"mem/protocol/" << type->cIdent() << ".hh" << "\"" << endl;
}
}
conditionally_write_file(path + "/Types.hh", sstr);
void SymbolTable::writeChipFiles(string path) const
{
- // Create Chip.cc and Chip.hh
+ // Create Chip.cc and mem/protocol/Chip.hh
// FIXME - Note: this method is _really_ ugly. Most of this
// functionality should be pushed into each type of symbol and use
sstr << endl;
// Includes
- sstr << "#include \"Global.hh\"" << endl;
- sstr << "#include \"Types.hh\"" << endl;
- sstr << "#include \"AbstractChip.hh\"" << endl;
+ sstr << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ sstr << "#include \"mem/protocol/Types.hh\"" << endl;
+ sstr << "#include \"mem/ruby/slicc_interface/AbstractChip.hh\"" << endl;
sstr << "class Network;" << endl;
sstr << endl;
{
ostringstream sstr;
sstr << "// Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<<endl<<endl;
- sstr << "#include \"Chip.hh\"" << endl;
- sstr << "#include \"Network.hh\"" << endl;
- sstr << "#include \"CacheRecorder.hh\"" << endl;
+ sstr << "#include \"mem/protocol/Chip.hh\"" << endl;
+ sstr << "#include \"mem/ruby/network/Network.hh\"" << endl;
+ sstr << "#include \"mem/ruby/recorder/CacheRecorder.hh\"" << endl;
sstr << "" << endl;
sstr << "// Includes for controllers" << endl;
for(int i=0; i<size; i++) {
StateMachine* machine = dynamic_cast<StateMachine*>(m_sym_vec[i]);
if (machine != NULL) {
- sstr << "#include \"" << machine->getIdent() << "_Controller.hh\"" << endl;
+ sstr << "#include \"mem/protocol/" << machine->getIdent() << "_Controller.hh\"" << endl;
}
}
#ifndef SYMBOLTABLE_H
#define SYMBOLTABLE_H
-#include "slicc_global.hh"
-#include "Map.hh"
-#include "Vector.hh"
-
-#include "Symbol.hh"
-#include "Type.hh"
-#include "Var.hh"
-#include "Func.hh"
-#include "StateMachine.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/gems_common/Vector.hh"
+
+#include "mem/slicc/symbols/Symbol.hh"
+#include "mem/slicc/symbols/Type.hh"
+#include "mem/slicc/symbols/Var.hh"
+#include "mem/slicc/symbols/Func.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
class SymbolTable;
*
* */
-#include "Transition.hh"
-#include "State.hh"
-#include "Event.hh"
-#include "Action.hh"
-#include "util.hh"
-#include "Var.hh"
+#include "mem/slicc/symbols/Transition.hh"
+#include "mem/slicc/symbols/State.hh"
+#include "mem/slicc/symbols/Event.hh"
+#include "mem/slicc/symbols/Action.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/slicc/symbols/Var.hh"
Transition::Transition(string state, string event, string nextState,
const Vector<string>& actionList,
#ifndef TRANSITION_H
#define TRANSITION_H
-#include "slicc_global.hh"
-#include "Vector.hh"
-#include "Symbol.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/slicc/symbols/Symbol.hh"
class State;
class Event;
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "Type.hh"
-#include "fileio.hh"
-#include "Map.hh"
-#include "StateMachine.hh"
+#include "mem/slicc/symbols/Type.hh"
+#include "mem/slicc/generator/fileio.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
Type::Type(string id, const Location& location,
const Map<string, string>& pairs,
out << endl;
// Include all of the #includes needed
- out << "#include \"Global.hh\"" << endl;
- out << "#include \"Allocator.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
+ out << "#include \"mem/gems_common/Allocator.hh\"" << endl;
for (int i=0; i < size; i++) {
Type* type = m_data_member_type_vec[i];
if (!type->isPrimitive()) {
- out << "#include \"" << type->cIdent() << ".hh" << "\"" << endl;
+ out << "#include \"mem/protocol/" << type->cIdent() << ".hh" << "\"" << endl;
}
}
string interface = "";
if(existPair("interface")) {
interface = lookupPair("interface");
- out << "#include \"" << interface << ".hh\"" << endl;
+ out << "#include \"mem/protocol/" << interface << ".hh\"" << endl;
}
// Class definition
out << " * Auto generated C++ code started by "<<__FILE__<<":"<<__LINE__<< endl;
out << " */" << endl;
out << endl;
- out << "#include \"" << type_name << ".hh\"" << endl;
+ out << "#include \"mem/protocol/" << type_name << ".hh\"" << endl;
out << endl;
if (isMessage()) {
out << "Allocator<" << type_name << ">* " << type_name << "::s_allocator_ptr = NULL;" << endl;
out << "#define " << type_name << "_H" << endl;
out << endl;
// Include all of the #includes needed
- out << "#include \"Global.hh\"" << endl;
+ out << "#include \"mem/ruby/common/Global.hh\"" << endl;
if (m_isMachineType) {
- out << "#include \"RubyConfig.hh\"" << endl << endl;
+ out << "#include \"mem/ruby/config/RubyConfig.hh\"" << endl << endl;
}
out << endl;
out << " */" << endl;
out << endl;
- out << "#include \"" << type_name << ".hh\"" << endl;
+ out << "#include \"mem/protocol/" << type_name << ".hh\"" << endl;
out << endl;
// Code for output operator
out << "/** \\brief returns the base vector index for each machine type to be used by NetDest " << endl;
out << " * " << endl;
out << " * \\return the base vector index for each machine type to be used by NetDest" << endl;
- out << " * \\see NetDest.hh" << endl;
+ out << " * \\see mem/ruby/common/NetDest.hh" << endl;
out << " */" << endl;
out << "int " << type_name << "_base_level(const " << type_name << "& obj)" << endl;
out << "{" << endl;
#ifndef TYPE_H
#define TYPE_H
-#include "slicc_global.hh"
-#include "Map.hh"
-#include "Symbol.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/gems_common/Map.hh"
+#include "mem/slicc/symbols/Symbol.hh"
class StateMachine;
*
* */
-#include "Var.hh"
-#include "StateMachine.hh"
+#include "mem/slicc/symbols/Var.hh"
+#include "mem/slicc/symbols/StateMachine.hh"
Var::Var(string id, const Location& location,
Type* type_ptr, string code,
#ifndef VAR_H
#define VAR_H
-#include "slicc_global.hh"
-#include "Symbol.hh"
-#include "Type.hh"
+#include "mem/slicc/slicc_global.hh"
+#include "mem/slicc/symbols/Symbol.hh"
+#include "mem/slicc/symbols/Type.hh"
class StateMachine;