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();
};
请先登录再写评论。
Hi John.
It hasn't been implemented yet, feel free to create a feature request in our tracker.
thank u. i have move to feature request.