rc_sc_fifo Class Template Reference

#include <rc_sc_fifo.h>

Inheritance diagram for rc_sc_fifo:

sc_channel sc_fifo_in_if sc_fifo_out_if rc_resettable

List of all members.


Detailed Description

template<class T>
class ReChannel::rc_sc_fifo< T >

Resettable FIFO (wrapping class sc_fifo).

Definition at line 50 of file rc_sc_fifo.h.


Public Member Functions

 rc_sc_fifo (int n=16)
 rc_sc_fifo (const sc_module_name &name_, int n=16)
virtual void register_port (sc_port_base &port_, const char *if_name_)
virtual bool nb_read (T &value)
virtual void read (T &value)
virtual T read ()
virtual int num_available () const
virtual const sc_event & data_written_event () const
virtual bool nb_write (const T &value)
virtual void write (const T &value)
virtual int num_free () const
virtual const sc_event & data_read_event () const
 operator T ()
rc_sc_fifo< T > & operator= (const T &value)
virtual void print (std::ostream &sout=std::cout) const
virtual void dump (std::ostream &sout=std::cout) const
virtual const char * kind () const

Protected Member Functions

virtual void start_of_simulation ()
 RC_ON_RESET ()
 RC_ON_INIT_RESETTABLE ()

Private Member Functions

sc_fifo_in_if< T > & get_in_if ()
const sc_fifo_in_if
< T > & 
get_in_if () const
sc_fifo_in_if< T > & get_in_exportal_if () const
sc_fifo_out_if< T > & get_out_if ()
const sc_fifo_out_if
< T > & 
get_out_if () const
sc_fifo_out_if< T > & get_out_exportal_if () const

Private Attributes

sc_fifo< T > p_fifo
rc_exportal
< sc_fifo_in_if< T > > 
p_exp_in
rc_exportal
< sc_fifo_out_if< T > > 
p_exp_out
const rc_reconfigurablep_reconf
sc_fifo_in_if< T > * p_in_if
sc_fifo_out_if< T > * p_out_if
bool p_constr_done

Constructor & Destructor Documentation

rc_sc_fifo ( int  n = 16  )  [inline, explicit]

Definition at line 205 of file rc_sc_fifo.h.

rc_sc_fifo ( const sc_module_name &  name_,
int  n = 16 
) [inline]

Definition at line 219 of file rc_sc_fifo.h.


Member Function Documentation

virtual void register_port ( sc_port_base &  port_,
const char *  if_name_ 
) [inline, virtual]

Definition at line 66 of file rc_sc_fifo.h.

virtual bool nb_read ( T &  value  )  [inline, virtual]

Definition at line 69 of file rc_sc_fifo.h.

virtual void read ( T &  value  )  [inline, virtual]

Definition at line 72 of file rc_sc_fifo.h.

virtual T read (  )  [inline, virtual]

Definition at line 75 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::operator T().

virtual int num_available (  )  const [inline, virtual]

Definition at line 78 of file rc_sc_fifo.h.

virtual const sc_event& data_written_event (  )  const [inline, virtual]

Definition at line 81 of file rc_sc_fifo.h.

virtual bool nb_write ( const T &  value  )  [inline, virtual]

Definition at line 84 of file rc_sc_fifo.h.

virtual void write ( const T &  value  )  [inline, virtual]

Definition at line 87 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::operator=().

virtual int num_free (  )  const [inline, virtual]

Definition at line 90 of file rc_sc_fifo.h.

virtual const sc_event& data_read_event (  )  const [inline, virtual]

Definition at line 93 of file rc_sc_fifo.h.

operator T (  )  [inline]

Definition at line 98 of file rc_sc_fifo.h.

rc_sc_fifo<T>& operator= ( const T &  value  )  [inline]

Definition at line 101 of file rc_sc_fifo.h.

virtual void print ( std::ostream &  sout = std::cout  )  const [inline, virtual]

Definition at line 104 of file rc_sc_fifo.h.

virtual void dump ( std::ostream &  sout = std::cout  )  const [inline, virtual]

Definition at line 107 of file rc_sc_fifo.h.

virtual const char* kind (  )  const [inline, virtual]

Definition at line 110 of file rc_sc_fifo.h.

virtual void start_of_simulation (  )  [inline, protected, virtual]

Definition at line 115 of file rc_sc_fifo.h.

RC_ON_RESET (  )  [inline, protected]

Definition at line 120 of file rc_sc_fifo.h.

RC_ON_INIT_RESETTABLE (  )  [inline, protected]

Definition at line 128 of file rc_sc_fifo.h.

sc_fifo_in_if< T > & get_in_if (  )  [inline, private]

Definition at line 160 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::nb_read(), rc_sc_fifo::num_available(), and rc_sc_fifo::read().

const sc_fifo_in_if< T > & get_in_if (  )  const [inline, private]

Definition at line 171 of file rc_sc_fifo.h.

sc_fifo_in_if<T>& get_in_exportal_if (  )  const [inline, private]

Definition at line 136 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::data_written_event().

sc_fifo_out_if< T > & get_out_if (  )  [inline, private]

Definition at line 182 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::nb_write(), rc_sc_fifo::num_free(), and rc_sc_fifo::write().

const sc_fifo_out_if< T > & get_out_if (  )  const [inline, private]

Definition at line 193 of file rc_sc_fifo.h.

sc_fifo_out_if<T>& get_out_exportal_if (  )  const [inline, private]

Definition at line 143 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::data_read_event().


Member Data Documentation

sc_fifo<T> p_fifo [private]

Definition at line 147 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::dump(), rc_sc_fifo::get_in_if(), rc_sc_fifo::get_out_if(), rc_sc_fifo::kind(), rc_sc_fifo::print(), rc_sc_fifo::RC_ON_RESET(), rc_sc_fifo::rc_sc_fifo(), and rc_sc_fifo::register_port().

rc_exportal<sc_fifo_in_if<T> > p_exp_in [private]

Definition at line 148 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::rc_sc_fifo().

rc_exportal<sc_fifo_out_if<T> > p_exp_out [private]

Definition at line 149 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::rc_sc_fifo().

const rc_reconfigurable* p_reconf [private]

Definition at line 150 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::get_in_if(), rc_sc_fifo::get_out_if(), and rc_sc_fifo::rc_sc_fifo().

sc_fifo_in_if<T>* p_in_if [private]

Definition at line 151 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::get_in_exportal_if(), rc_sc_fifo::get_in_if(), and rc_sc_fifo::rc_sc_fifo().

sc_fifo_out_if<T>* p_out_if [private]

Definition at line 152 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::get_out_exportal_if(), rc_sc_fifo::get_out_if(), and rc_sc_fifo::rc_sc_fifo().

bool p_constr_done [private]

Definition at line 153 of file rc_sc_fifo.h.

Referenced by rc_sc_fifo::get_in_if(), rc_sc_fifo::get_out_if(), and rc_sc_fifo::start_of_simulation().


The documentation for this class was generated from the following file:
Generated on Tue Jan 1 23:14:13 2008 for ReChannel by  doxygen 1.5.3