Jump to content

shanh

Members
  • Content Count

    6
  • Joined

  • Last visited

About shanh

  • Rank
    Member

Recent Profile Visitors

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

  1. A small example of async_request_event. It only triggers the first event and not the second one? Can anyone please explain why? #include <systemc> #include <unistd.h> #include <thread> using namespace sc_core; class ThreadSafeEventIf : public sc_interface { virtual void notify(sc_time delay = SC_ZERO_TIME) = 0; virtual const sc_event &default_event(void) const = 0; protected: virtual void update(void) = 0; }; class ThreadSafeEvent : public sc_prim_channel, public ThreadSafeEventIf { public: ThreadSafeEvent(const
  2. Hi @maehne, I am reading the book "SystemC: from the ground up". It refers to some example codes at www.EklecticAlly.com but this link is not functional anymore. It would be a great help in my SystemC adventure if someone can give me those example codes. Thanks!
  3. Hi, I am using the flag g++ -std=c++11 but still the same issue
  4. Hi, While running a custom library under SystemC 2.3.2, I am getting the following error. In function `__static_initialization_and_destruction_0': /sc_ver.h:179: undefined reference to `sc_core::sc_api_version_2_3_2_cxx201103L<&sc_core::SC_DISABLE_VIRTUAL_BIND_UNDEFINED_>::sc_api_version_2_3_2_cxx201103L(sc_core::sc_writer_policy)ยด I looked into this problem and it seems like it is related to the C++ standard. before build SystemC 2.3.2 I configured it: ../configure --prefix=/users/systemc-2.3.2 In make file I am using CXXFLAGS="-DSC_CPLUSPLUS=201103L" f
  5. Thanks for you detailed explanation.
  6. Hi, I am new to SystemC. I have two questions. 1) Do sc_thread generates separate Linux thread for each call and what is the difference between the POSIX thread and sc_thread? 2) Why systemC has no parallelization scheme? The SystemC scheduler uses cooperative multitasking and cannot exploit fully the potential of SMP workstation.
×
×
  • Create New...