Global 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, which contains a list of directives that I use to include certain modules in my code. I would like to to declare these directives at the top module and have them also be declared for all other modules. I suppose my goal is to determine how to define global directives (if there is such a thing).
For example,
My top level module contains:
`include "features.vh"
and my features.vh contains:
`define USE_THIS
`define USE_THIS2
For my top level module, everything works as expected, however for other modules, the USE_THIS, and USE_THIS2 are not declared. If for all modules I include `include "features.vh" , then I can use USE_THIS, and USE_THIS2 for those respective modules. Is there a way to declare the global directives?
Thank you for all of your help.