如何确定综合是在 Quartus 中完成的?

How to determine that synthesis is done in Quartus?

我的设计是在 Verilog 中完成的,我需要 select 在 Altera Quartus II 中进行综合的特定解决方案。我知道很多工具都有预定义的宏,例如Icarus Verilog有内置宏__ICARUS__。但是我无法为 Quartus 找到这样的宏。检测方法简单吗?

是的,Altera/IntelQuartus II 集成综合 (QIS) 具有预定义宏,QIS 在其演示和 IP 中广泛使用该宏。这个宏实际上没有记录,但它适用于所有已知版本的 Quartus II。在这里:

`ifdef ALTERA_RESERVED_QIS
  // The code that is used for Quartus Synthesis
`else
  // The code that is used for other software
`endif