Reputation: 33
I have an agent that waits for an environment event. How to point the environment event in the agent? There is no "get_env()" in Specman that could connect between agent and its environment.
Upvotes: 0
Views: 37
Reputation: 700
You can use get_parent_unit() like in
var my_env_u: parent = get_parent_unit().as_a(my_env_u);
Upvotes: 2