PVToPV_swa Class Reference

#include <pvtopv_swa.h>

List of all members.

Public Member Functions

 PVToPV_swa ()
 ~PVToPV_swa ()
void resize (uint p, uint c)
bool is_requested (uint inp, uint inch, uint p, uint c)
void request (uint p, uint c, uint inp, uint inch)
SA_unit pick_winner (uint p, uint c)
void clear_winner (uint p, uint c, uint ip, uint ic)
bool is_empty ()
bool is_empty_for_ch (uint ch)
uint no_requests_ch (uint ch)
string toString () const

Public Attributes

uint address
uint name
uint node_ip

Private Attributes

uint PORTS
uint CHANNELS
vector< vector< bool > > locked
vector< vector< bool > > done
vector< vector< bool > > requested
vector< bool > port_locked
vector< vector< SA_unit > > requesting_inputs
vector< vector< SA_unit > > last_winner
vector< vector< uint > > last_port_winner
vector< vector< uint > > last_ch_winner


Detailed Description

Definition at line 27 of file pvtopv_swa.h.


Constructor & Destructor Documentation

PVToPV_swa::PVToPV_swa (  ) 

Definition at line 24 of file pvtopv_swa.cc.

PVToPV_swa::~PVToPV_swa (  ) 

Definition at line 29 of file pvtopv_swa.cc.


Member Function Documentation

void PVToPV_swa::clear_winner ( uint  p,
uint  c,
uint  ip,
uint  ic 
)

Definition at line 150 of file pvtopv_swa.cc.

References CHANNELS, done, locked, and requested.

bool PVToPV_swa::is_empty ( void   ) 

Definition at line 160 of file pvtopv_swa.cc.

References CHANNELS, PORTS, and requested.

bool PVToPV_swa::is_empty_for_ch ( uint  ch  ) 

Definition at line 174 of file pvtopv_swa.cc.

References requested.

bool PVToPV_swa::is_requested ( uint  inp,
uint  inch,
uint  p,
uint  c 
)

Definition at line 82 of file pvtopv_swa.cc.

References locked.

uint PVToPV_swa::no_requests_ch ( uint  ch  ) 

Definition at line 183 of file pvtopv_swa.cc.

References requested.

SA_unit PVToPV_swa::pick_winner ( uint  p,
uint  c 
)

Definition at line 100 of file pvtopv_swa.cc.

References CHANNELS, done, last_port_winner, last_winner, locked, PORTS, requested, and requesting_inputs.

void PVToPV_swa::request ( uint  p,
uint  c,
uint  inp,
uint  inch 
)

Definition at line 89 of file pvtopv_swa.cc.

References CHANNELS, done, requested, and requesting_inputs.

void PVToPV_swa::resize ( uint  p,
uint  c 
)

string PVToPV_swa::toString (  )  const

Definition at line 195 of file pvtopv_swa.cc.

References requested.


Member Data Documentation

Definition at line 41 of file pvtopv_swa.h.

Definition at line 49 of file pvtopv_swa.h.

Referenced by clear_winner(), is_empty(), pick_winner(), request(), and resize().

vector< vector<bool> > PVToPV_swa::done [private]

Definition at line 51 of file pvtopv_swa.h.

Referenced by clear_winner(), pick_winner(), request(), and resize().

vector< vector<uint> > PVToPV_swa::last_ch_winner [private]

Definition at line 57 of file pvtopv_swa.h.

Referenced by resize().

vector< vector<uint> > PVToPV_swa::last_port_winner [private]

Definition at line 56 of file pvtopv_swa.h.

Referenced by pick_winner(), and resize().

vector< vector<SA_unit> > PVToPV_swa::last_winner [private]

Definition at line 55 of file pvtopv_swa.h.

Referenced by pick_winner(), and resize().

vector< vector<bool> > PVToPV_swa::locked [private]

Definition at line 50 of file pvtopv_swa.h.

Referenced by clear_winner(), is_requested(), pick_winner(), and resize().

Definition at line 42 of file pvtopv_swa.h.

Definition at line 43 of file pvtopv_swa.h.

vector< bool> PVToPV_swa::port_locked [private]

Definition at line 53 of file pvtopv_swa.h.

Referenced by resize().

Definition at line 48 of file pvtopv_swa.h.

Referenced by is_empty(), pick_winner(), and resize().

vector< vector<bool> > PVToPV_swa::requested [private]

vector< vector<SA_unit> > PVToPV_swa::requesting_inputs [private]

Definition at line 54 of file pvtopv_swa.h.

Referenced by pick_winner(), request(), and resize().


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

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