gem5  v22.1.0.0
Public Member Functions | Private Attributes | List of all members
gem5::ruby::garnet::SwitchAllocator Class Reference

#include <SwitchAllocator.hh>

Inheritance diagram for gem5::ruby::garnet::SwitchAllocator:

Public Member Functions

 SwitchAllocator (Router *router)
void wakeup ()
void init ()
void clear_request_vector ()
void check_for_wakeup ()
int get_vnet (int invc)
void print (std::ostream &out) const
void arbitrate_inports ()
void arbitrate_outports ()
bool send_allowed (int inport, int invc, int outport, int outvc)
int vc_allocate (int outport, int inport, int invc)
double get_input_arbiter_activity ()
double get_output_arbiter_activity ()
void resetStats ()
- Public Member Functions inherited from gem5::ruby::Consumer
 Consumer (ClockedObject *em, Event::Priority ev_prio=Event::Default_Pri)
virtual ~Consumer ()
virtual void storeEventInfo (int info)
bool alreadyScheduled (Tick time)
ClockedObjectgetObject ()
void scheduleEventAbsolute (Tick timeAbs)
void scheduleEvent (Cycles timeDelta)

Private Attributes

int m_num_inports
int m_num_outports
int m_num_vcs
int m_vc_per_vnet
double m_input_arbiter_activity
double m_output_arbiter_activity
std::vector< int > m_round_robin_invc
std::vector< int > m_round_robin_inport
std::vector< int > m_port_requests
std::vector< int > m_vc_winners

Detailed Description

Definition at line 54 of file SwitchAllocator.hh.

Constructor & Destructor Documentation

◆ SwitchAllocator()

gem5::ruby::garnet::SwitchAllocator::SwitchAllocator ( Router router)

Member Function Documentation

◆ arbitrate_inports()

void gem5::ruby::garnet::SwitchAllocator::arbitrate_inports ( )

◆ arbitrate_outports()

void gem5::ruby::garnet::SwitchAllocator::arbitrate_outports ( )

◆ check_for_wakeup()

void gem5::ruby::garnet::SwitchAllocator::check_for_wakeup ( )

◆ clear_request_vector()

void gem5::ruby::garnet::SwitchAllocator::clear_request_vector ( )

Definition at line 387 of file

References gem5::MipsISA::fill, and m_port_requests.

Referenced by wakeup().

◆ get_input_arbiter_activity()

double gem5::ruby::garnet::SwitchAllocator::get_input_arbiter_activity ( )

Definition at line 70 of file SwitchAllocator.hh.

References m_input_arbiter_activity.

Referenced by gem5::ruby::garnet::Router::collateStats().

◆ get_output_arbiter_activity()

double gem5::ruby::garnet::SwitchAllocator::get_output_arbiter_activity ( )

Definition at line 75 of file SwitchAllocator.hh.

References m_output_arbiter_activity.

Referenced by gem5::ruby::garnet::Router::collateStats().

◆ get_vnet()

int gem5::ruby::garnet::SwitchAllocator::get_vnet ( int  invc)

Definition at line 376 of file

References m_vc_per_vnet.

Referenced by send_allowed(), and vc_allocate().

◆ init()

void gem5::ruby::garnet::SwitchAllocator::init ( )

◆ print()

void gem5::ruby::garnet::SwitchAllocator::print ( std::ostream &  out) const

Implements gem5::ruby::Consumer.

Definition at line 63 of file SwitchAllocator.hh.

◆ resetStats()

void gem5::ruby::garnet::SwitchAllocator::resetStats ( )

◆ send_allowed()

bool gem5::ruby::garnet::SwitchAllocator::send_allowed ( int  inport,
int  invc,
int  outport,
int  outvc 

◆ vc_allocate()

int gem5::ruby::garnet::SwitchAllocator::vc_allocate ( int  outport,
int  inport,
int  invc 

◆ wakeup()

void gem5::ruby::garnet::SwitchAllocator::wakeup ( )

Member Data Documentation

◆ m_input_arbiter_activity

double gem5::ruby::garnet::SwitchAllocator::m_input_arbiter_activity

◆ m_num_inports

int gem5::ruby::garnet::SwitchAllocator::m_num_inports

Definition at line 83 of file SwitchAllocator.hh.

Referenced by arbitrate_inports(), arbitrate_outports(), check_for_wakeup(), and init().

◆ m_num_outports

int gem5::ruby::garnet::SwitchAllocator::m_num_outports

Definition at line 83 of file SwitchAllocator.hh.

Referenced by arbitrate_outports(), and init().

◆ m_num_vcs

int gem5::ruby::garnet::SwitchAllocator::m_num_vcs

◆ m_output_arbiter_activity

double gem5::ruby::garnet::SwitchAllocator::m_output_arbiter_activity

◆ m_port_requests

std::vector<int> gem5::ruby::garnet::SwitchAllocator::m_port_requests

◆ m_round_robin_inport

std::vector<int> gem5::ruby::garnet::SwitchAllocator::m_round_robin_inport

Definition at line 90 of file SwitchAllocator.hh.

Referenced by arbitrate_outports(), and init().

◆ m_round_robin_invc

std::vector<int> gem5::ruby::garnet::SwitchAllocator::m_round_robin_invc

Definition at line 89 of file SwitchAllocator.hh.

Referenced by arbitrate_inports(), arbitrate_outports(), and init().

◆ m_router

Router* gem5::ruby::garnet::SwitchAllocator::m_router

◆ m_vc_per_vnet

int gem5::ruby::garnet::SwitchAllocator::m_vc_per_vnet

Definition at line 84 of file SwitchAllocator.hh.

Referenced by get_vnet(), send_allowed(), and SwitchAllocator().

◆ m_vc_winners

std::vector<int> gem5::ruby::garnet::SwitchAllocator::m_vc_winners

Definition at line 92 of file SwitchAllocator.hh.

Referenced by arbitrate_inports(), arbitrate_outports(), and init().

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

Generated on Wed Dec 21 2022 10:24:24 for gem5 by doxygen 1.9.1