Jump to content

overriding a registered local variable in a sequence from test

Recommended Posts

Following is the example


class my_sequence extends uvm_sequence...


string file_name;








class basic_test extends from uvm_test


function build_phase(..)

set_config_string("*", "file_name", abc.txt);






I am passing file_name(abc.txt) from test with set_config_string, but, it is not taking effect.


I did the same thing in driver. it worked well. does UVM supports, overriding local variables in sequence.


Please let me know...




Link to comment
Share on other sites

Sequences are uvm_object's; whereas, the driver is a uvm_component. The field automation macros automatic configuration fetching works due to super.build_phase automation. You will need to do two things:


  1. Add the following in your sequence: 
  2. In function pre_start add: 

Notice that the information is tied to the sequencer that the sequence is running on.

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.

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