Jump to content

uvm_do versus start_item/finish_item - which one to follow?


Recommended Posts

For sequence items, we can either use uvm_create/do or start_item/finish_item. Is know that uvm_create allows late-randomization as compared to uvm_do. Is start_item/finish_item deprecated? I'd like to learn it right when I'm learning. So, can someone help me with the commonly-used and suggested method? Thanks in advance.

Edited by itsmyturn
typo
Link to comment
Share on other sites

`uvm_do is a macro that does the following operations: create_item, start_item, randomize, and finish_item. You can use either approach; personally, I prefer `uvm_do since the code is more compact and it also abstracts away the "unimportant" details.

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.

 Share

×
×
  • Create New...