Hi
I have two modules and they look as follows:
class Derived: public Base,public sc_module
{
...
....
...
Derived(sc_module_name name):sc_module(name){}
};
SC_MODULE(Mysystem)
{
....
.....
SC_CTOR(Mysystem)
{}
};
int sc_main(...)
{
Mysystem MS("mine");
Derived D("derived");
sc_start();
}
I get error:
<E533> module name stack is empty : did you forget to add a parameter to your module constructor?
Why it is showing this error though i provide a module name for "Derived"class??
Note: I ran without having "derived" as the Systemc module and it worked. but, it shows an eror otherwise.