Hi all,
I am using UVM 1.1 version. I have a sequencer and driver. The following snippet is present in the driver.
seq_item_port.has_do_available(); //This is Returning a value of 1
seq_item_port.peek(req);
seq_item_port.has_do_available(); //This is Returning a value of 0
As per my knowledge, "peek" function gets a copy of the next item present in sequencer queue and won't pop out the entry, but when I am using has_do_available() function for the second time its retuning a "zero" which is contrary to my expectation.
Please explain the correctness of my concept.