Jump to content

What could cause wait(sc_time, sc_time_unit) to generate runtime error?


Recommended Posts



No, I am sure that it was from an SC_THREAD.

SC_THREAD( mem_constr_module_thread );


void mem_constr_module_thread() {


if(mem_c0->m_t0->r_nw.read() == SC_LOGIC_1) {


  wait(_mem_write_access_time, MEM_TIME_UNIT); // This one is ok


else {

  wait(_mem_read_access_time, MEM_TIME_UNIT);  // This one triggers the error




_mem_[read|write]_access_time and MEM_TIME_UNIT are constants defined elsewhere.


I keep thinking that might be a bad pointer from elsewhere. But I can't think of anything.



Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...