Your code is incorrect:
- as mentioned by Ivanov, the member function conversion1 should be conversion as you defined as SC_METHOD.
- the sc_in<...> has no method called to_bool(). You should use din.read() to get the sc_ufixed value first and then convert the value to the bool implictly.
SC_MODULE(convert) { sc_in<sc_ufixed < 1, 1, SC_TRN, SC_SAT > > din; sc_out<bool> dout; void conversion() { dout.write(din.read()); } SC_CTOR(convert) { SC_METHOD(conversion); sensitive<< din; } };