Jump to content

Recommended Posts

Posted

Dear All,

I have an env that I am factory overriding with a new env called new_env. In new_env I have an agent called agent that doesn’t exist in env and is only instanced in new_env. In my test, that overrides env with new_env, I want to start a sequence on agent. Since new_env doesn't exist from the compilers point of view until the build_phase() (runtime) is done, the compiler errors due to the agent not existing.

How do I inform the compiler that new_env will exist once we're in runtime?

Thanks!

Posted

If you use the following way to configure your agent in new_env to run your_seq, it should not fail.

uvm_config_db#(uvm_object_wrapper)::set(this,
   “new_env.agent.sqr.main_phaseâ€,
   “default_sequenceâ€,
   your_seq::type_id::get()
); 
Posted

hi,

either

- use the config_db so your sequencer starts the sequence you want

- start the sequence manually from the appropriate phase hooks inside new_env

- $cast your env to the new_env type if its a new_env, then start the sequence

/uwe

Posted

hi,

either

- use the config_db so your sequencer starts the sequence you want

- start the sequence manually from the appropriate phase hooks inside new_env

- $cast your env to the new_env type if its a new_env, then start the sequence

/uwe

Thanks Uwe! I tried your 3rd suggestion and it worked. Excellent!

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