Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
15894 Discussions

verilog define in the .qsf or .tcl for quartus?

AEsqu
Novice
181 Views

Hello,

 

I use this command in a Synplify project to define for a verilog check code translation:

 

set_option -hdl_define -set {"WITH_TH"}

 

This is then picked in verilog:

`ifdef WITH_TH

  code line here will be picked

`endif

endmodule 

 

My question:

How to do it for Quartus?

I'm used to the 

set_parameter -name ...

but that is not applicable in this case.

Thanks!

0 Kudos
4 Replies
AEsqu
Novice
173 Views

Is this the only way?

Create a new verilog file with this inside:

`define WITH_TH

 

and add this file in the quartus .qsf 

 

YEan
Employee
157 Views
AEsqu
Novice
154 Views

Hi Ean,

your answer is about creating a vqm file,

which is not the question.

Anyway, I used what I proposed after as a workaround.

YEan
Employee
151 Views

Hi ,

I’m glad that your issue has been resolved. I'll now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts.

Thank you.

 

Regards,

Ean

Reply