Jump to content

seq_item_port.get() vs seq_item_port.get_next_item()


Recommended Posts

Dear UVM experts:

I am a new to UVM, I have a question, the different between seq_item_port.get() and seq_item_port.get_next_item().

Is the get method is equivalent to seq_item_port.get_next_item() and seq_item_port.item_done();

Thank you!

Link to comment
Share on other sites

Hi wuddi,

Please see the documentation for get and get_next_item:

http://www.vmmcentral.org/uvm_vmm_ik/files3/tlm1/sqr_ifs-svh.html#uvm_sqr_if_base#%28REQ,RSP%29.get_next_item

"Once get_next_item is called, item_done must be called to indicate the completion of the request to the sequencer. This will remove the request item from the sequencer fifo."

"When get is called, item_done may not be called. A new item can be obtained by calling get again, or a response may be sent using either put, or uvm_driver::rsp_port.write()."

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...