Is there an elegant way to wait on a port trigger (toggle) rather than an event inside a SC_THREAD? In other words, I want a thread in Module B to be dynamically triggered based on a toggle on a port from Module A. My current method is to generate an event from the port toggle, and then use the event inside whichever threads needs to be triggered. But is there a better way?
Update: answer from jclin is just perfect.