Jump to content
Sign in to follow this  
ashwathgan

Error <E533>

Recommended Posts

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. 

Share this post


Link to post
Share on other sites

You could have other constructors in your Derived class. When you create the instance D, the constructor 

Derived(sc_module_name  name):sc_module(name){} 

is not called, instead, a constructor like 

Derived(const char* par) {}

is called. You may need to check the body of the Derived class.

Share this post


Link to post
Share on other sites

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. 

Hello Sir,

SystemC is a C++ library. Please look up a good reference on C++, especially

the chapters on multiple inheritance. Please clear your basics first. Hope that

helps.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...