zg71
zg71

Reputation: 33

specman : how to make agent pointer to environment?

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

Answers (1)

Thorsten
Thorsten

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

Related Questions