grai Posted April 6, 2012 Report Share Posted April 6, 2012 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! Quote Link to comment Share on other sites More sharing options...
SeanChou Posted April 6, 2012 Report Share Posted April 6, 2012 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() ); Quote Link to comment Share on other sites More sharing options...
uwes Posted April 11, 2012 Report Share Posted April 11, 2012 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 Quote Link to comment Share on other sites More sharing options...
grai Posted April 12, 2012 Author Report Share Posted April 12, 2012 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.