16 using namespace sc_core;
34 class RegisterLatch_write_if :
virtual public sc_interface
38 virtual void reset() = 0;
41 class RegisterLatch_read_if :
virtual public sc_interface
45 virtual int num_available() = 0;
50 class RegisterLatch_fifo:
public sc_core::sc_channel, RegisterLatch_write_if, RegisterLatch_read_if
53 RegisterLatch_fifo(
const sc_module_name& name) ;
59 void reset() { num_elements = first = 0;}
60 int num_available() {
return num_elements;}
65 int num_elements, first;
66 sc_event write_event, read_event;