Altera_Forum
Honored Contributor
9 years agoUnable to synthesize the design with Macros and header files due to undefined Macros
Hi,
I have a design with some Macros and these are being used in multiple files. These Macros are defined in the header file <Macro_defs>.vh. I have added the <Macro_defs>.vh file in my Quartus Project and is being saved as “set_global_assignment -name VERILOG_INCLUDE_FILE ../verilog/<Macros_def>.vh”. But still, the synthesis tool reports the warning as “Critical Warning(13432): Verilog HDL Compiler Directive warning at <verilog_file>.v(64): text macro "Macro_Name" is undefined” and later ends due to errors because of this. 1. I am able to fix this issue by, including the header files in those design files where Macros are being used. But since the design is huge, I cannot include header files in all the files. What are the other possible ways to fix this issue? 2. Also, what is the exact purpose of “VERILOG_INCLUDE_FILE” in the above set_global_assignment? Thanks, Poorna