Go to the documentation of this file.
40 #ifndef __MEM_RUBY_NETWORK_SIMPLE_SWITCH_HH__
41 #define __MEM_RUBY_NETWORK_SIMPLE_SWITCH_HH__
52 #include "mem/ruby/protocol/MessageSizeType.hh"
53 #include "params/Switch.hh"
69 const NetDest& routing_table_entry,
70 Cycles link_latency,
int bw_multiplier);
78 void print(std::ostream& out)
const;
110 #endif // __MEM_RUBY_NETWORK_SIMPLE_SWITCH_HH__
void init_net_ptr(SimpleNetwork *net_ptr)
std::ostream & operator<<(std::ostream &out, const Switch &obj)
void addInPort(const std::vector< MessageBuffer * > &in)
SimpleNetwork * m_network_ptr
Switch & operator=(const Switch &obj)
std::list< Throttle > throttles
void resetStats()
Callback to reset stats.
std::vector< MessageBuffer * > m_port_buffers
PerfectSwitch perfectSwitch
void print(std::ostream &out) const
Stats::Formula m_msg_counts[MessageSizeType_NUM]
uint32_t functionalWrite(Packet *)
void regStats()
Callback to set stat parameters.
Stats::Formula m_msg_bytes[MessageSizeType_NUM]
void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
void addOutPort(const std::vector< MessageBuffer * > &out, const NetDest &routing_table_entry, Cycles link_latency, int bw_multiplier)
const Stats::Formula & getMsgCount(unsigned int type) const
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
unsigned m_num_connected_buffers
Cycles is a wrapper class for representing cycle counts, i.e.
Stats::Formula m_avg_utilization
bool functionalRead(Packet *)
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17