#ifndef SOURCE_H #define SOURCE_H #include #include "config.h" SC_MODULE( source ) { sc_in clk; sc_out > out; sc_bv data; void emit(); // constructor SC_CTOR( source ) { SC_THREAD( emit ); sensitive << clk.pos(); } }; #endif