Forum Discussion
jlats2
Occasional Contributor
4 years agoGlobal Directive, `incude "features.vh"
Hi,
Thank you for taking time to read my post.
I am using Quartus PRO 18.1, with verilog HDL. I would like to understand how Quartus uses the declarative statements. I have a file, features.vh, w...
Nurina
Regular Contributor
4 years agoHi,
As far as I know there isn't a way to have global directives. You'll have to add `include "features.vh" to all the modules using the features.vh header file.
Regards,
Nurina
jlats2
Occasional Contributor
4 years agoThank you for your reply.
It looks like having, `include "features.vh" at the top of each of my modules is one solution.
I also noticed that in Quartus > assignments > settings > Verilog HDL input and add MACRO =1 will add the following to the QSF:
set_global_assignment -name VERILOG_MACRO "MYMACRO=1"
which will allow directives to engage in all modules.