Jump to content

anna

Members
  • Content Count

    9
  • Joined

  • Last visited

About anna

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. hello everyone, In my module code, when I detect the simulation is complete, I call > sc_stop(). Is there a better way to stop simulation witout getting the > following error:>> SystemC: simulation stopped by user.>> Error: (E546) sc_start called after sc_stop has been called> In file: ../../../../src/sysc/kernel/sc_simcontext.cpp:1315>> Thank you,
  2. hello everyone, i have the same error , i dont know how i resolve it , i want do summation of 4 pixels in each line and display the sum , Error: (E109) complete binding failed: port not bound: port 'i_adder_10.port_2' (sc_in) adder.h #include <iostream> #include <fstream> #include <stdlib.h> #include "systemc-ams.h" #include "systemc.h" SC_MODULE(adder) { sc_in<double> in[4]; sc_out<double> out; void somme (){ double sum=0; while(true) { for (int j=0; j<4 ; j++){ sum +=in[j].re
  3. 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 ) thanks, add.h SCA_TDF_MODULE(adder) { 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; out.write(add); //cout<< "sum = " << sum[j]<< endl; } SCA_CTOR(adder){} }; main.cpp
  4. hi @AmeyaVS , thanks for your reply, i want to synchronize many incoming delayed data with fifo ( each delayed data with one fifo) , so i need to implement a constant delay for each data with a fifo ) my problem is how to introduce the delay in fifo designing. this is the code of the fifo bloc: #include "systemc.h" #include <iostream> #include <fstream> #include <stdlib.h> template<class T > SC_MODULE(fifo) { sc_in<bool> clk; sc_in<T> data_in; sc_in<bool> valid_in; sc_in<bool> rea
  5. hi Ameya , thanks for your reply, i want to synchronize many incoming delayed data with fifo ( each delayed data with one fifo) , so i need to implement a constant delay for each data with a fifo ) my problem is how to introduce the delay in fifo designing. this is the code of the fifo bloc: #include "systemc.h" #include <iostream> #include <fstream> #include <stdlib.h> template<class T > SC_MODULE(fifo) { sc_in<bool> clk; sc_in<T> data_in; sc_in<bool> valid_in; sc_in<bool> ready_in
  6. hello; i need your help thank you; Error: (E109) complete binding failed: 4 binds exceeds maximum of 1 allowed: port 'adc_sub_1.sca_tdf_in_0' (sca_tdf::sca_in) In file: ../../../../source/src/sysc/communication/sc_port.cpp:231 my code is here : this is the first bloc : image.h #include <iostream> #include <fstream> #include <stdlib.h> #include <stdio.h> #include "systemc-ams.h" #include "systemc.h" template< int n , int m > SCA_TDF_MODULE( image) { sca_tdf::sca_out<double> out[n][m]
  7. hello; i need your help thank you; Error: (E109) complete binding failed: 4 binds exceeds maximum of 1 allowed: port 'adc_sub_1.sca_tdf_in_0' (sca_tdf::sca_in) In file: ../../../../source/src/sysc/communication/sc_port.cpp:231 my code is here : this is the first bloc : image.h #include <iostream> #include <fstream> #include <stdlib.h> #include <stdio.h> #include "systemc-ams.h" #include "systemc.h" template< int n , int m > SCA_TDF_MODULE( image) { sca_tdf::sca_out<double> out[n][m]
×
×
  • Create New...