#include <genericTracePktGen.h>
Definition at line 43 of file genericTracePktGen.h.
GenericTracePktGen::GenericTracePktGen | ( | ) |
Definition at line 11 of file genericTracePktGen.cc.
References last_vc, NetworkComponent::name, Processor::ni_recv, out_filename, and sending.
GenericTracePktGen::~GenericTracePktGen | ( | ) |
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().
void GenericTracePktGen::convertToBitStream | ( | Request * | req, | |
HighLevelPacket * | hlp | |||
) | [private] |
Definition at line 452 of file genericTracePktGen.cc.
References CACHE_BLOCK_SIZE, CACHE_WRITEBACK, HighLevelPacket::data, HighLevelPacket::data_payload_length, max_phy_link_bits, HighLevelPacket::msg_class, NETWORK_ADDRESS_BITS, NETWORK_COMMAND_BITS, NETWORK_THREADID_BITS, ONE_FLIT_REQ, HighLevelPacket::sent_time, and WRITE_REQ.
Referenced by handle_out_pull_event().
void GenericTracePktGen::finish | ( | ) |
bool GenericTracePktGen::GetNewRequest | ( | Request * | req | ) | [private] |
Definition at line 408 of file genericTracePktGen.cc.
References mshrHandler, and Simulator::Now().
Referenced by GetRequest().
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().
Request * GenericTracePktGen::GetRequest | ( | ) | [private] |
Definition at line 440 of file genericTracePktGen.cc.
References GetNewRequest().
Referenced by handle_out_pull_event().
void GenericTracePktGen::handle_new_packet_event | ( | IrisEvent * | e | ) | [private] |
Definition at line 184 of file genericTracePktGen.cc.
References _DBG, HighLevelPacket::avg_network_latency, convertFromBitStream(), IrisEvent::event_data, HighLevelPacket::hop_count, Processor::interface_connections, last_packet_out_cycle, min_pkt_latency, MSHR_DELETE, mshrHandler, Processor::ni_recv, Simulator::Now(), out_file, out_filename, packets_in, NetworkComponent::process_event(), READY_EVENT, HighLevelPacket::req_start_time, Simulator::Schedule(), HighLevelPacket::sent_time, HighLevelPacket::stat_memory_serviced_time, stat_round_trip_hop_count, stat_round_trip_memory_latency, stat_round_trip_network_latency, stat_waiting_in_ni, HighLevelPacket::toString(), IrisEvent::type, IrisEvent::vc, HighLevelPacket::virtual_channel, and HighLevelPacket::waiting_in_ni.
Referenced by process_event().
void GenericTracePktGen::handle_out_pull_event | ( | IrisEvent * | e | ) | [private] |
Definition at line 241 of file genericTracePktGen.cc.
References _DBG, HighLevelPacket::addr, convertToBitStream(), HighLevelPacket::destination, fwd_path_delay, GetNextRequest(), GetRequest(), Processor::interface_connections, last_vc, lastSentTime, mshrHandler, NEW_PACKET_EVENT, no_nodes, NetworkComponent::node_ip, Simulator::Now(), OUT_PULL_EVENT, packets, NetworkComponent::process_event(), ready, HighLevelPacket::req_start_time, Simulator::Schedule(), sending, HighLevelPacket::sent_time, HighLevelPacket::source, HighLevelPacket::toString(), HighLevelPacket::transaction_id, IrisEvent::type, vcs, and HighLevelPacket::virtual_channel.
Referenced by process_event().
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().
string GenericTracePktGen::print_stats | ( | void | ) | const [virtual] |
Implements Processor.
Definition at line 535 of file genericTracePktGen.cc.
References fwd_path_delay, last_packet_out_cycle, min_pkt_latency, mshrHandler, NetworkComponent::node_ip, packets, packets_in, roundTripLat, stat_round_trip_hop_count, stat_round_trip_memory_latency, stat_round_trip_network_latency, stat_waiting_in_ni, and TotalBLP.
void GenericTracePktGen::process_event | ( | IrisEvent * | e | ) | [virtual] |
Implements Processor.
Definition at line 163 of file genericTracePktGen.cc.
References NetworkComponent::address, handle_new_packet_event(), handle_out_pull_event(), handle_ready_event(), NEW_PACKET_EVENT, OUT_PULL_EVENT, READY_EVENT, and IrisEvent::type.
void GenericTracePktGen::set_no_vcs | ( | uint | v | ) |
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 | ) |
Implements Processor.
Definition at line 45 of file genericTracePktGen.cc.
References NetworkComponent::address, CREDIT_EVENT, fwd_path_delay, last_packet_out_cycle, last_vc, lastSentTime, max_sim_time, min_pkt_latency, mshrHandler, Component::myId(), no_nodes, NetworkComponent::node_ip, Simulator::Now(), packets, packets_in, NetworkComponent::process_event(), ready, READY_EVENT, roundTripLat, Simulator::Schedule(), stat_round_trip_hop_count, stat_round_trip_memory_latency, stat_round_trip_network_latency, stat_waiting_in_ni, TotalBLP, trace_filename, trace_name, and vcs.
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.
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().
ullint GenericTracePktGen::max_sim_time [private] |
Definition at line 50 of file genericTracePktGen.h.
Referenced by handle_ready_event(), and setup().
Definition at line 86 of file genericTracePktGen.h.
vector<uint> GenericTracePktGen::mc_node_ip |
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().
MSHR_H* GenericTracePktGen::mshrHandler |
Definition at line 83 of file genericTracePktGen.h.
Referenced by GetNewRequest(), GetNextRequest(), handle_new_packet_event(), handle_out_pull_event(), print_stats(), setup(), and ~GenericTracePktGen().
uint GenericTracePktGen::no_nodes [private] |
Definition at line 48 of file genericTracePktGen.h.
Referenced by handle_out_pull_event(), and setup().
uint GenericTracePktGen::no_outstanding [private] |
Definition at line 49 of file genericTracePktGen.h.
ofstream GenericTracePktGen::out_file [private] |
Definition at line 55 of file genericTracePktGen.h.
Referenced by finish(), handle_new_packet_event(), set_output_path(), and ~GenericTracePktGen().
string GenericTracePktGen::out_filename [private] |
Definition at line 53 of file genericTracePktGen.h.
Referenced by GenericTracePktGen(), handle_new_packet_event(), and set_output_path().
deque< HighLevelPacket > GenericTracePktGen::out_packets [private] |
Definition at line 51 of file genericTracePktGen.h.
unsigned int GenericTracePktGen::packets |
Definition at line 71 of file genericTracePktGen.h.
Referenced by handle_out_pull_event(), print_stats(), and setup().
unsigned int GenericTracePktGen::packets_in |
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 85 of file genericTracePktGen.h.
Referenced by GenericTracePktGen(), handle_out_pull_event(), and handle_ready_event().
deque< HighLevelPacket > GenericTracePktGen::sent_packets [private] |
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().
ifstream* GenericTracePktGen::trace_filename [private] |
Definition at line 56 of file genericTracePktGen.h.
Referenced by finish(), GetNextRequest(), and setup().
string GenericTracePktGen::trace_name [private] |
Definition at line 54 of file genericTracePktGen.h.
Referenced by set_trace_filename(), setup(), and toString().
uint GenericTracePktGen::vcs [private] |
Definition at line 47 of file genericTracePktGen.h.
Referenced by handle_out_pull_event(), handle_ready_event(), set_no_vcs(), and setup().