Jump to content

Recommended Posts

Posted

Hi all!

 

I have an error that I never had before with AMS. I have a few sc_modules with in and out TDF ports. Inside these sc_modules I have sca_modules, which are connected to those in and out TDF ports. This have been working fine until now, but I created a new class of module exactly the same way as the others and I have this error. I checked in the library and it seems like my sca_module is not assigned to any view:

if (view_interface == NULL)
{
	std::ostringstream str;
	str << "Error: " << name()
			<< " a sca_module must be associated with a concrete view!"
			<< std::endl;
	str << "It is not allowed to instantiate the sca_module base class."
			<< std::endl;
	SC_REPORT_ERROR("SystemC-AMS",str.str().c_str());
}

 I know that maybe it not clear. I can give more details. But I am totally lost with this. Any ideas?

 

Thanks :)

Posted

it looks like you instantiated a sca_core::sca_module (or you derived from this class) - this is not possible. You can only derive own modules from sca_tdf::sca_module or of course you can instantiate the pre-defined sca_eln/sca_lsf modules.

In SystemC-AMS it is not allowed to derive own modules from sca_core::sca_module (see LRM).

 

best regards

Karsten

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.

×
×
  • Create New...