Jump to content

initialization sequence question


Recommended Posts

Hello,

 

I have an initialization sequence which should be started first. Only upon the completion of this sequence, other test sequence can be started. 

For test developer, they don't have to know this sequence. they don't have to start this sequence in their test, how can I make this initialization sequence start first and transparent to test developer? Thanks.

 

Regards,

Wenkai

Link to comment
Share on other sites

Thank you very much, Dave.

 

This is similar to run sequences in sequential way and it enforce a requirement for test developer. Is there any other way that test developer doesn't have to know and start the initialization sequence?  Thanks.

 

BR,

 

Wenkai

Link to comment
Share on other sites

hi,

 

there are various ways to implement that. the actual way would depend upon you actual requirements.

 

>This is similar to run sequences in sequential way and it enforce a requirement for test developer

 

well, you either have to express that dependency or ordering in some way (for instance by invoking super.body())  OR you have to establish a convention to follow (such as to put the init sequence into pre_configure_phase and all user sequences into a phase afterwards)

 

/uwe

Link to comment
Share on other sites

If you are using run-time phasing, you simply need to have your environment start the init sequence in some phase before main (perhaps the configure phase), holding the objection until that sequence completes, and then tell test developers that they must run their sequences in main phase (which is the intent of main phase).

Link to comment
Share on other sites

If you are using run-time phasing, you simply need to have your environment start the init sequence in some phase before main (perhaps the configure phase), holding the objection until that sequence completes, and then tell test developers that they must run their sequences in main phase (which is the intent of main phase).

But the driver is running mainly in main phase, so run init sequence in the phase before main phase may not work. I have not tried that yet.

 

Wenkai

Link to comment
Share on other sites

You should only be using the run phase in your driver.

 

But regardless of which solution you choose, the test developer needs to be informed of the requirements you want to place on your testbench architecture. There is no getting around that. There are linting tools that can check for the proper calls to super.method() and you could also put in run time checks to make sure no other sequences have been started before your required sequence has finished.

Link to comment
Share on other sites

You should only be using the run phase in your driver.

 

But regardless of which solution you choose, the test developer needs to be informed of the requirements you want to place on your testbench architecture. There is no getting around that. There are linting tools that can check for the proper calls to super.method() and you could also put in run time checks to make sure no other sequences have been started before your required sequence has finished.

Thank you dave.

 

So I guess I can run driver in run_phase, init sequence in a phase before main phase, ask developer to run user phase in main phase. 

This sounds working.

 

Regards,

Wenkai

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