#include <ptopSwaVcs.h>
Public Member Functions | |
PToPSwitchArbiterVcs () | |
~PToPSwitchArbiterVcs () | |
void | resize (uint p, uint v) |
bool | is_requested (uint outp, uint inp, uint ovc) |
void | clear_requestor (uint outp, uint inp, uint ovc) |
void | request (uint p, uint op, uint inp, uint iv) |
SA_unit | pick_winner (uint p) |
SA_unit | do_round_robin_arbitration (uint p) |
SA_unit | do_priority_round_robin_arbitration (uint p) |
SA_unit | do_fcfs_arbitration (uint p) |
void | request (uint oport, uint inport, message_class m) |
bool | is_empty () |
string | toString () const |
Public Attributes | |
uint | address |
string | name |
uint | node_ip |
Private Attributes | |
uint | ports |
uint | vcs |
vector< vector< bool > > | requested |
vector< vector< bool > > | priority_reqs |
vector< vector< SA_unit > > | requesting_inputs |
vector< SA_unit > | last_winner |
vector< uint > | last_port_winner |
Definition at line 31 of file ptopSwaVcs.h.
PToPSwitchArbiterVcs::PToPSwitchArbiterVcs | ( | ) |
PToPSwitchArbiterVcs::~PToPSwitchArbiterVcs | ( | ) |
Definition at line 29 of file ptopSwaVcs.cc.
Definition at line 138 of file ptopSwaVcs.cc.
References requested, and vcs.
Referenced by GenericRouter4Stg::do_switch_allocation(), and GenericRouter4Stg::do_switch_traversal().
Definition at line 92 of file ptopSwaVcs.cc.
References _DBG_NOARG, last_port_winner, last_winner, Simulator::Now(), ports, requested, requesting_inputs, and vcs.
Referenced by pick_winner().
bool PToPSwitchArbiterVcs::is_empty | ( | void | ) |
Definition at line 146 of file ptopSwaVcs.cc.
References ports, requested, and vcs.
Referenced by GenericRouter4Stg::do_switch_allocation().
Definition at line 86 of file ptopSwaVcs.cc.
References do_round_robin_arbitration().
Referenced by GenericRouter4Stg::do_switch_allocation().
void PToPSwitchArbiterVcs::request | ( | uint | oport, | |
uint | inport, | |||
message_class | m | |||
) |
Definition at line 76 of file ptopSwaVcs.cc.
References Simulator::Now(), requested, requesting_inputs, and vcs.
Referenced by GenericRouter4Stg::do_switch_traversal(), and GenericRouter4Stg::handle_tick_event().
Definition at line 34 of file ptopSwaVcs.cc.
References last_port_winner, last_winner, ports, priority_reqs, requested, requesting_inputs, and vcs.
Referenced by GenericRouter4Stg::init().
string PToPSwitchArbiterVcs::toString | ( | ) | const |
Definition at line 159 of file ptopSwaVcs.cc.
References requested.
Referenced by GenericRouter4Stg::toString().
vector< uint> PToPSwitchArbiterVcs::last_port_winner [private] |
Definition at line 60 of file ptopSwaVcs.h.
Referenced by do_round_robin_arbitration(), and resize().
vector< SA_unit > PToPSwitchArbiterVcs::last_winner [private] |
Definition at line 59 of file ptopSwaVcs.h.
Referenced by do_round_robin_arbitration(), and resize().
string PToPSwitchArbiterVcs::name |
uint PToPSwitchArbiterVcs::ports [private] |
Definition at line 54 of file ptopSwaVcs.h.
Referenced by do_round_robin_arbitration(), is_empty(), is_requested(), and resize().
vector< vector <bool> > PToPSwitchArbiterVcs::priority_reqs [private] |
vector< vector <bool> > PToPSwitchArbiterVcs::requested [private] |
Definition at line 56 of file ptopSwaVcs.h.
Referenced by clear_requestor(), do_round_robin_arbitration(), is_empty(), is_requested(), request(), resize(), and toString().
vector< vector<SA_unit> > PToPSwitchArbiterVcs::requesting_inputs [private] |
Definition at line 58 of file ptopSwaVcs.h.
Referenced by do_round_robin_arbitration(), request(), and resize().
uint PToPSwitchArbiterVcs::vcs [private] |
Definition at line 55 of file ptopSwaVcs.h.
Referenced by clear_requestor(), do_round_robin_arbitration(), is_empty(), is_requested(), request(), and resize().