Forum Discussion
KhaiChein_Y_Intel
Regular Contributor
5 years agoHi,
You may refer to the Intel Quartus Prime Pro Edition Getting Started User Guide (Chapter 5.4.1) https://www.intel.com/content/www/us/en/programmable/documentation/spj1513986956763.html#jbr1442966691310. This chapter states that
Items visible only in the compilation-unit scope include macros, global declarations, and default net types. The contents of included files become part of the compilation unit of the parent file. Modules, primitives, programs, interfaces, and packages are visible in all compilation units.
Therefore, you have to use 'include for macro.
Thanks.
Best regards
KhaiY