GenericTracePktGen Class Reference

#include <genericTracePktGen.h>

Inheritance diagram for GenericTracePktGen:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 GenericTracePktGen ()
 ~GenericTracePktGen ()
void setup (uint no_nodes, uint vcs, uint max_sim_time)
void finish ()
void process_event (IrisEvent *e)
string toString () const
string print_stats () const
void set_trace_filename (string filename)
void set_no_vcs (uint v)
void set_output_path (string outpath)
bool compare ()

Public Attributes

unsigned int packets
unsigned int packets_in
double min_pkt_latency
double last_packet_out_cycle
ullint fwd_path_delay
ullint roundTripLat
ullint TotalBLP
ullint stat_round_trip_network_latency
ullint stat_round_trip_hop_count
ullint stat_round_trip_memory_latency
ullint stat_waiting_in_ni
MSHR_H * mshrHandler
vector< bool > ready
bool sending
ullint max_time
vector< uintmc_node_ip
ullint lastSentTime

Private Member Functions

Request * GetNextRequest ()
bool GetNewRequest (Request *req)
Request * GetRequest ()
void convertToBitStream (Request *req, HighLevelPacket *hlp)
void convertFromBitStream (Request *req, HighLevelPacket *hlp)
void handle_new_packet_event (IrisEvent *e)
void handle_ready_event (IrisEvent *e)
void handle_out_pull_event (IrisEvent *e)

Private Attributes

uint vcs
uint no_nodes
uint no_outstanding
ullint max_sim_time
deque< HighLevelPacketout_packets
deque< HighLevelPacketsent_packets
string out_filename
string trace_name
ofstream out_file
ifstream * trace_filename
unsigned int last_vc


Detailed Description

Definition at line 43 of file genericTracePktGen.h.


Constructor & Destructor Documentation

GenericTracePktGen::GenericTracePktGen (  ) 

GenericTracePktGen::~GenericTracePktGen (  ) 

Definition at line 22 of file genericTracePktGen.cc.

References mshrHandler, and out_file.


Member Function Documentation

bool GenericTracePktGen::compare (  ) 

void GenericTracePktGen::convertFromBitStream ( Request *  req,
HighLevelPacket hlp 
) [private]

Definition at line 490 of file genericTracePktGen.cc.

References CACHE_BLOCK_SIZE, CACHE_PREFETCH, CACHE_READ, CACHE_WRITE, HighLevelPacket::data, max_phy_link_bits, NETWORK_ADDRESS_BITS, and HighLevelPacket::source.

Referenced by handle_new_packet_event().

Here is the caller graph for this function:

void GenericTracePktGen::convertToBitStream ( Request *  req,
HighLevelPacket hlp 
) [private]

void GenericTracePktGen::finish (  ) 

Definition at line 155 of file genericTracePktGen.cc.

References out_file, and trace_filename.

bool GenericTracePktGen::GetNewRequest ( Request *  req  )  [private]

Definition at line 408 of file genericTracePktGen.cc.

References mshrHandler, and Simulator::Now().

Referenced by GetRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

Request * GenericTracePktGen::GetNextRequest (  )  [private]

Definition at line 370 of file genericTracePktGen.cc.

References mshrHandler, NetworkComponent::node_ip, and trace_filename.

Referenced by handle_out_pull_event().

Here is the caller graph for this function:

Request * GenericTracePktGen::GetRequest (  )  [private]

Definition at line 440 of file genericTracePktGen.cc.

References GetNewRequest().

Referenced by handle_out_pull_event().

Here is the call graph for this function:

Here is the caller graph for this function:

void GenericTracePktGen::handle_new_packet_event ( IrisEvent e  )  [private]

void GenericTracePktGen::handle_out_pull_event ( IrisEvent e  )  [private]

void GenericTracePktGen::handle_ready_event ( IrisEvent e  )  [private]

Definition at line 347 of file genericTracePktGen.cc.

References _DBG, max_sim_time, Simulator::Now(), OUT_PULL_EVENT, NetworkComponent::process_event(), ready, Simulator::Schedule(), sending, IrisEvent::vc, and vcs.

Referenced by process_event().

Here is the call graph for this function:

Here is the caller graph for this function:

string GenericTracePktGen::print_stats ( void   )  const [virtual]

void GenericTracePktGen::process_event ( IrisEvent e  )  [virtual]

void GenericTracePktGen::set_no_vcs ( uint  v  ) 

Definition at line 39 of file genericTracePktGen.cc.

References vcs.

void GenericTracePktGen::set_output_path ( string  outpath  )  [virtual]

Implements Processor.

Definition at line 137 of file genericTracePktGen.cc.

References NetworkComponent::node_ip, out_file, and out_filename.

void GenericTracePktGen::set_trace_filename ( string  filename  ) 

Definition at line 32 of file genericTracePktGen.cc.

References trace_name.

void GenericTracePktGen::setup ( uint  no_nodes,
uint  vcs,
uint  max_sim_time 
) [virtual]

string GenericTracePktGen::toString (  )  const [virtual]

Reimplemented from Processor.

Definition at line 522 of file genericTracePktGen.cc.

References NetworkComponent::address, NetworkComponent::node_ip, ready, and trace_name.


Member Data Documentation

Definition at line 75 of file genericTracePktGen.h.

Referenced by handle_out_pull_event(), print_stats(), and setup().

Definition at line 74 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

unsigned int GenericTracePktGen::last_vc [private]

Definition at line 57 of file genericTracePktGen.h.

Referenced by GenericTracePktGen(), handle_out_pull_event(), and setup().

Definition at line 97 of file genericTracePktGen.h.

Referenced by handle_out_pull_event(), and setup().

Definition at line 50 of file genericTracePktGen.h.

Referenced by handle_ready_event(), and setup().

Definition at line 86 of file genericTracePktGen.h.

Definition at line 96 of file genericTracePktGen.h.

Definition at line 73 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 48 of file genericTracePktGen.h.

Referenced by handle_out_pull_event(), and setup().

Definition at line 49 of file genericTracePktGen.h.

ofstream GenericTracePktGen::out_file [private]

Definition at line 51 of file genericTracePktGen.h.

Definition at line 71 of file genericTracePktGen.h.

Referenced by handle_out_pull_event(), print_stats(), and setup().

Definition at line 72 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

vector< bool > GenericTracePktGen::ready

Definition at line 84 of file genericTracePktGen.h.

Referenced by handle_out_pull_event(), handle_ready_event(), setup(), and toString().

Definition at line 76 of file genericTracePktGen.h.

Referenced by print_stats(), and setup().

Definition at line 52 of file genericTracePktGen.h.

Definition at line 79 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 80 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 78 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 81 of file genericTracePktGen.h.

Referenced by handle_new_packet_event(), print_stats(), and setup().

Definition at line 77 of file genericTracePktGen.h.

Referenced by print_stats(), and setup().

Definition at line 56 of file genericTracePktGen.h.

Referenced by finish(), GetNextRequest(), and setup().

Definition at line 54 of file genericTracePktGen.h.

Referenced by set_trace_filename(), setup(), and toString().

Definition at line 47 of file genericTracePktGen.h.

Referenced by handle_out_pull_event(), handle_ready_event(), set_no_vcs(), and setup().


The documentation for this class was generated from the following files:

Generated on Tue Oct 19 17:22:18 2010 for IRIS by  doxygen 1.5.8