Continue to Site

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.

[SOLVED] define macro in Questa

Status
Not open for further replies.

FboDigit

Member level 1
Joined
Jun 19, 2012
Messages
38
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Canada
Activity points
1,502
Hi all !

I'm new to Questa Sim 10.1b but i'm use to Active-HDL and I want to know two thing

First is there a way to define a macro inside a .do file
I know that with Aldec->Active-HDL we can use the function : +define+ <macro_name> but i'm not able to find the equivalent with Questa


Second is there a way to set many variable into a .do file ?

I know that the command : set (var_name) <var_value> is possible
BUT ! is there a way to say something like : set def +define+macro1 +define+macro2 +define+macro3 (in the active HDL way)
and use the var like this
vcom $var_name my_lib my_path.vhd

I can live without an answer to my second question because i could use many variable (yearkk!) but I really need an answer to my first one !!!!!
If there is no way to do this is there a way to use the GUI to specifie those macro ???

Thx !!!!
 

I have found my problem and this is exactly the same in modelsim/questa then Active HDL

Code:
set def +define+macro1 +define+macro2 +define+macro3 --def is the vaiable here

vcom $def my_lib my_path.vhd

And that is all !! Hope it can help someone else
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top