Jump to content

Pratik Parvati

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi team, I have a small piece of code inked below. #include <systemc.h> #include <iostream> using namespace std; class Test: public sc_module { private: sc_event e1; public: SC_HAS_PROCESS(Test); Test(sc_module_name nm): sc_module(nm), SC_NAMED(e1) { SC_THREAD(th1); SC_THREAD(th2); SC_THREAD(th3); } void th1() { wait(e1); cout << "Test::th1() --> event e1 notified" << endl; } void th2() { e1.notify(); cout << "Test::th2() --> event has been notified
×
×
  • Create New...