How do I define a macro in Quartus?
Mar 10, 2022
asked by anonymous
Question / Issue:
I want to be able to define a PROJECT1 macro for conditional compilation, such as
`ifdef PROJECT1
....
`else
....
`endif
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"