27 #ifndef SC_FIFO_PORTS_H
28 #define SC_FIFO_PORTS_H
44 :
public sc_port<sc_fifo_in_if<T>,0,SC_ONE_OR_MORE_BOUND>
107 { (*this)->read( value_ ); }
110 {
return (*this)->read(); }
116 {
return (*this)->nb_read( value_ ); }
122 {
return (*this)->num_available(); }
128 {
return (*this)->data_written_event(); }
139 virtual const char*
kind()
const
140 {
return "sc_fifo_in"; }
160 :
public sc_port<sc_fifo_out_if<T>,0,SC_ONE_OR_MORE_BOUND>
223 { (*this)->write( value_ ); }
229 {
return (*this)->nb_write( value_ ); }
235 {
return (*this)->num_free(); }
241 {
return (*this)->data_read_event(); }
252 virtual const char*
kind()
const
253 {
return "sc_fifo_out"; }
sc_fifo_out(const char *name_, this_type &parent_)
sc_fifo_out_if< data_type > if_type
sc_fifo_in_if< data_type > if_type
void write(const data_type &value_)
sc_fifo_out(const char *name_)
int num_available() const
const sc_event & data_read_event() const
sc_fifo_in(in_if_type &interface_)
sc_fifo_in(this_type &parent_)
sc_port< if_type, 0, SC_ONE_OR_MORE_BOUND > base_type
bool nb_read(data_type &value_)
sc_event_finder & data_read() const
sc_fifo_out(out_if_type &interface_)
sc_fifo_in(const char *name_, in_port_type &parent_)
virtual const char * kind() const
sc_port_b< in_if_type > in_port_type
sc_port< if_type, 0, SC_ONE_OR_MORE_BOUND > base_type
void read(data_type &value_)
sc_fifo_out< data_type > this_type
virtual const sc_event & data_read_event() const =0
sc_event_finder & data_written() const
sc_fifo_out(out_port_type &parent_)
sc_fifo_out(this_type &parent_)
sc_fifo_out(const char *name_, out_if_type &interface_)
sc_fifo_in(in_port_type &parent_)
sc_port_b< out_if_type > out_port_type
sc_fifo_in(const char *name_, in_if_type &interface_)
virtual const sc_event & data_written_event() const =0
bool nb_write(const data_type &value_)
virtual const char * kind() const
const sc_event & data_written_event() const
sc_fifo_in< data_type > this_type
sc_fifo_in(const char *name_)
sc_fifo_out(const char *name_, out_port_type &parent_)
sc_fifo_in(const char *name_, this_type &parent_)