Jump to content
Sign in to follow this  
mwhite_cp

Sequence/test library file vs sequence/test files

Recommended Posts

Hello,

I am wondering if there is any recommendation on how to organize UVM sequence and test class files. Currently we use a single sequence library file and individual test class files. If we use a single library file, the file can gets huge and it is hard to manage with multiple people writing sequences. At the same time, it is nice to be able to see the list of classes in a single file and is easy to copy existing sequence to a new one. I was leaning toward creating a file per class but I would appreciate if you could share your thoughts and experiences with test case management.

Thanks!

Share this post


Link to post
Share on other sites

Hi,

We have relatively few sequences. I don't know why. It just seems like we never need that many. Most tests are also pretty small so we keep them in functional/logical groups in a file per group. Often there will be a base test from which the other tests in the library inherit from.

Best Regards

Peter

Share this post


Link to post
Share on other sites

Hi Peter,

thank you for your response. It is good to know how other companies handle test management. As I organize sequences, it seems that it is easier to manage in a file than multiple files. I think we will not have many sequences if we manage code right. So we decided to stick with a file library for sequences for now. We plan to keep a test class per file for now, but we might consider consolidating test library later.

If you don't mind answering my question, do you have multiple configuration objects in your environment? Utilizing configuration files make big difference on test/sequence management. I am considering adding a configuration class which will carry values that will be programmed to registers thru bus interface. Sequences will source the configuration and get the values to be programmed to registers. The values in the configuration will be change in the test class. In this way, we will have less sequences and can customize register test from test class.

If you or anyone have comments on configuration management, I appreciate it.

Thank you!

Share this post


Link to post
Share on other sites

Hi,

We have a configuration class per environment and an environment for each logical block that we want to verify. The top-level configuration object hierarchy matches the environment hierarchy.

I think that your approach is solid.

Best Regards

Peter

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...