Mind Chasers Inc.
Mind Chasers Inc.

Note: Forum is in alpha testing. Please email us with any problems or issues you encounter. Thank you!

How do I define a macro in Quartus?

Mar 10, 2022 asked by anonymous
share
subscribe to mailing list:

Question / Issue:

I want to be able to define a PROJECT1 macro for conditional compilation, such as `ifdef PROJECT1 .... `else .... `endif
X-ray Engineering Services

Responses:

Date: March 10, 2022

Author: Mind Chasers

Comment:

This can be done inside your Quartus Settings File <project.qsf> as shown below: set_global_assignment -name VERILOG_MACRO "PROJECT1=1"

Post your answer or comment:

your email address will be kept private
authenticate with a 3rd party for enhanced features, such as image upload
previous month
next month
Su
Mo
Tu
Wd
Th
Fr
Sa
loading