Hi can somebody help me with this error?
Error: SystemC-AMS: A sca_tdf::sca_module ( dut ) can't have child: sca_tdf::sca_module( dut.sine ) see LRM clause 4.1
In file: sca_module.cpp:354
SCA_TDF_MODULE(bask_mod)
{
//-----------------------------------------------------------------------------
// Ports
//-----------------------------------------------------------------------------
sca_tdf::sca_in<bool> in;
sca_tdf::sca_out<double> out;
//-----------------------------------------------------------------------------
// Instantiations
//-----------------------------------------------------------------------------
sin_src sine;
mixer mix;
//-----------------------------------------------------------------------------
// constructor
//-----------------------------------------------------------------------------
SC_CTOR(bask_mod)
: in("in"), out("out"),
sine("sine", 1.0, 1.0e7, sca_core::sca_time( 5.0, sc_core::SC_NS ) ),
mix("mix")
{
sine.out(carrier);
mix.in_wav(carrier);
mix.in_bin(in);
mix.out(out);
}
private:
sca_tdf::sca_signal<double> carrier;
};
This is the code taken directly from the SystemC-AMS User Manual