Jump to content

shiva_2019

Members
  • Content Count

    2
  • Joined

  • Last visited

About shiva_2019

  • Rank
    Member

Recent Profile Visitors

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

  1. I kind of work on proprietary code. But here is an example of what I have //## test.h #include "systemc.h" #include "tlm.h" class test: public sc_module{ private: // some variables public: test(); sc_port <int> output_port; tlm::tlm_fifo<int> input_fifo; void command_initiator(); } //## test.cpp #include "test.h" void test:test(){ // initialize the variables SC_THREAD(command_initiator); } void test:command_initiator(){ while(true){ // receive command if(!input_fifo.nb_can_get) wait(input_fifo.ok
  2. Hi all, I have a systemC-tlm code that uses SC_THREAD( ) to implement parallel modules. I am working on latency analysis and hence included a few wait statements in each of the SC_THREAD functions. It was working fine for a long time, until yesterday. The SC_THREAD functions with wait(time, SC_NS) hang exactly at the wait statement. I tried debugging into the wait function, and found that the code throws an SC_REPORT_ERROR in wait( ) function in sc_wait.cpp. I am not sure if that error is caught, because I do not see any error in my console output. Does anyone have a clue on w
×
×
  • Create New...