Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.
 

xworld2008

Full Member level 4
Joined
Dec 13, 2002
Messages
231
Helped
18
Reputation
36
Reaction score
14
Trophy points
1,298
Activity points
1,801
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?).
 

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top