Hardware interview practice
Finish_item versus get_response
finish_item returns, but the sequence then hangs forever in get_response. Which driver change directly supplies the missing response?
Starting point
Question code
// sequence
start_item(req);
finish_item(req);
get_response(rsp);
// driver
seq_item_port.get_next_item(req);
drive(req);
seq_item_port.item_done();Choose one
Answer choices
- A. Raise a new objection immediately before get_response so UVM synthesizes rsp
- B. Call item_done a second time with no arguments
- C. Replace get_response with get_next_item in the sequence
- D. Create rsp, call rsp.set_id_info(req), and pass it to item_done(rsp) (or use a consistent put_response flow)
