*,
Is one of these ways to have a sequence wait on an event preferred? If so, why?
The following are code snippets from inside a sequence.
1) Create transaction and engage w/ driver, then wait for event.
`uvm_create(req) start_item(req); m_state.wait_on_smthg(); // <--- wait here
2) Wait for event, then proceed
m_state.wait_on_smthg(); // <--- wait here `uvm_create(req) start_item(req);
In this case, the event being waited for is that data of a certain type is available.