Application of global variable in Vera?

Status
Not open for further replies.

AlexWan

Full Member level 5
Joined
Dec 26, 2003
Messages
304
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,298
Activity points
2,692
vera global variable

Hi all,

How to use the global variable in Vera, such as event?

I want to use a global event in my verification env. I define the event in program vr. And I use it in my other classes in other vr file. And I have used the -HC in comiling command. But it's fail.

Anyone can paste a example for me.
 

hello alex,
I think this is about "naming space", first, you should think where you define the var
second , how do you get the variable by other class,( instant the class in the program?).
 

Hi xworld2008,

I have solved it. But external define need mapping in sub-class.

Maybe mailbox methodology is a good way.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…