Jump to content

Error: (E109) complete binding failed: port not bound: port 'i_adder_10.sca_tdf_sc_in_2' (sca_tdf::sca_de::sca_in) In file: ../../../../source/src/sysc/communication/sc_port.cpp:231

Recommended Posts

hello everyone,

please i need help , i have this error , i can't do summation of pixel in each line of image . ( each pixel take a signal )





sca_tdf::sca_de::sca_in< double> in[4];
sca_tdf::sca_de::sca_out< double>out;

double sum;    


 double add;
void processing (){
sum =0;

for (int j=0; j<4 ; j++){
 sum +=in[j].read();}
 add = sum;

 //cout<< "sum =  " << sum[j]<< endl;



 int sc_main(int argc, char *argv[])

 sc_set_time_resolution(1, SC_FS); 



 donnee <3,4> *i_donnee = new donnee <3,4>( "i_donnee" );
     for ( int i=0; i<N ; i++){

     for ( int j=0; j<NB_elements_trans ; j++){

                  i_donnee-> out[i][j] (sig_data[i][j]);
                  i_donnee -> initialize(sim_rate*fs) ;}}


 adder *i_adder;

for ( int i=0; i<N ; i++){

     for ( int j=0; j<NB_elements_trans ; j++){   

 i_adder = new adder("i_adder");
  i_adder->out(sig_add);  }}

// TRACE  
  sca_util::sca_trace_file *tf1 = sca_util::sca_create_tabular_trace_file( "imag.dat" );
 for ( int i=0; i<N; i++){
for ( int j=0; j<NB_elements_trans; j++){
  sca_util::sca_trace(tf1,sig_data[i][j],"sig_data"); } }

sca_util::sca_trace(tf1,sig_beam," sig_add ");


  sc_start( 1 , SC_MS);

  cout<< endl<< sc_time_stamp() << " sc_main finished" << endl;
   return 0;


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.

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