Can generate user define constructor from code genete

Hi

in the Clion code generate construct code can't meet my need, '

Can Clion user define generate the construct function, include macro and different class number initial function   



struct source: sc_module {
sc_in<bool> data_req;
sc_out<float> out_real;
sc_out<float> out_imag;
sc_out<bool> data_valid;
sc_in_clk CLK;

#define SC_CTOR(user_module_name) \
typedef user_module_name SC_CURRENT_USER_MODULE; \
user_module_name( ::sc_core::sc_module_name )

SC_CTOR(source) : data_req("data_reg"),
out_real("out_real"),
out_imag("out_imag"),
data_valid("data_valid")
{
}

void entry();
};
2 comments
Comment actions Permalink

Hi John.

It hasn't been implemented yet, feel free to create a feature request in our tracker.

0
Comment actions Permalink

thank u. i have move to feature request.

0

Please sign in to leave a comment.