Jump to content

was not declared in this scope error


acc_sysC

Recommended Posts

I am getting 'nbit_multiplexer' was not declared in this scope error even though I have included the header file and the path looks fine. I am trying to debug the code.

The module does not even get instantiated for me to debug.

Here is the link to the code in EDA playground: https://www.edaplayground.com/x/Et_C

Please guide me.

Link to comment
Share on other sites

@Eyck That worked. Thanks!

Can port declaration can be done like this:

sc_in<sc_biguint<pow(2,N)*M> > IN;

I tried storing pow(2,N) is another variable and and used it in the port declaration but that didn't work.

Is there a way to do this?

Link to comment
Share on other sites

5 hours ago, acc_sysC said:

@Eyck That worked. Thanks!

Can port declaration can be done like this:

sc_in<sc_biguint<pow(2,N)*M> > IN;

I tried storing pow(2,N) is another variable and and used it in the port declaration but that didn't work.

Is there a way to do this?

Did you check the response to your own other post:

 

Link to comment
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.

×
×
  • Create New...