Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

Error <E533>

$
0
0

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. 


Viewing all articles
Browse latest Browse all 595

Trending Articles