Jump to content

krishnadas_b

Members
  • Content count

    2
  • Joined

  • Last visited

  1. Thanks for the clarification. Yes i need to go through the LRM to check for right usage.
  2. #include "systemc.h" #include "systemc-ams.h" SC_MODULE (chkdouble) { sca_tdf::sca_signal <double> tdf_ana_out; double x1, x2; void check () { if (tdf_ana_out > (x2-x1)/2 ) { // <<<<<<<<<<<<<<<<<< the error is as follows //chkdouble.cpp: In member function 'void chkdouble::check()': //chkdouble.cpp:9: error: no match for 'operator>' in '((chkdouble*)this)-> cout << "hello" ; } } SC_CTOR (chkdouble) : tdf_ana_out ("tdf_ana_out") { x1 = 0; x2 = 8; tdf_ana_out = 5.2; SC_THREAD (check); } }; int sc_main(int argc, char* argv[]) { sc_set_time_resolution (1, SC_NS); sc_signal <bool> adc_clock; chkdouble chkdouble_1 ("chkdouble_1"); sc_start (100, SC_MS); return(0); } Please let me know what is the issue here?
×