Altera_Forum
Honored Contributor
14 years agoVerilog `ifdef equivalent in VHDL
Hi
I've just learned that in Verilog you can use an `ifdef statement that makes Quartus ignore the following code (until the next`endif) you can define a macro in the qsf file (or through the GUI) to decide which parts of code to ignore. is there an equivalent in VHDL? the closest tool I'm aware of is the "if generate" statement but it is a weaker tool since: 1) you can use it only in the architecture body 2) the synthesizer first makes sure that the code inside the statement is compilable. this is a problem if you wish to omit other sections in the code. can anyone can enlighten me? I'm used to VHDL, but I this single feature will make me switch sides.:)