Jump to content

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


kaiserhaz

Recommended Posts

Hello,

 

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) {

  write();

  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 comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...