Jump to content

Compile error


Bes

Recommended Posts

I’m using sc_has_process constructor in the header file.

i have an output port and 2 signals( my inputs that i want to read from csv file but I can’t) , so in the header file i only initialize my output port, 2 signals and my method

in the .cpp file, i do convolution between the two input signals which are used as 2D arrays using nested  sc_vector.

then in the main method i write 

convLayer c(“ “); // convLayer is my module name.

c.in1(array) ; //in1 is the signal in the header file, array is a new signal with same size in main.cpp file 

 

 

Link to comment
Share on other sites

Yes, but you need to use a real string (not empty). Usually, the instance name matches the name of the instance itself. For example:

#include "top_module.cpp" //< Real code goes in here
#include <systemc>

// Minimal sc_main function
int sc_main(int argc, const char* argv[])
{
  Top_module top_instance{ "top_instance" };
  sc_core::sc_start();
  return 0;
}

 

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...