Jump to content

self aborting sequence


Recommended Posts

Hey,

I have a requirement where sequence needs to kill itself, if some condition is satisfied. I am using "disable" to do it.

In the body of the sequence, I have something like this:

body()

begin: name

do something;

if(condition)

disable name;

do something else;

end

It works but is there a better way to do this in UVM/OVM?

Thanks and Regards,

Manju Shetty

Link to comment
Share on other sites

hi,

i would avoid using thread/process like commands on an executing sequence like fork/join/kill/suspend/disable. the reason for this is that inside the sequencer/sequence/driver there are handshakes and other processes working. forcefully ending parts of the engine may cause hangs, lockups etc. you may have a look at the mantis collection showing some issues. if you really want a sequence to stop you should be using the official api "seq.kill()" or as hook "do_kill()"

/uwe

Link to comment
Share on other sites

  • 4 weeks later...

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