使用modelsim仿真DDR3时编译出错的解决方法

 Modelsim 10.1c release note sates as :

 

Product Changes in 10.1c

 

Release 10.1b introduced a new error, number 2902. By default in the 10.1x series of releases this should have been a warning. In future releases this will become a suppressible error.

 

If you use Modelsim 10.1c, you can complete compling although the following warning appeasr: 

** Warning: (vlog-2902) ddr2_model_parameters_c3.vh(214): A `define was found on the same line as a SystemVerilog `ifdef, `ifndef, `elsif, or `else.

 

A workaround for this error is to tell the simulator that the error message can be ignored with the command:
"-suppress 2902"

 

example:

 

vlog +acc -work work -suppress 2902 +define+SIMULATION +define+GLBL +define+GEN2_CAP \
+define+USE_DDR3_FIFO -f pcie.f -f dma.f \
-f axis_vf.f -f mig.f -f ddr3.f -f xgemac.f -f xphy_10gbaser.f \
-f dut.f -f tb.f

posted @ 2015-03-17 19:10  hfyfpga  阅读(1171)  评论(0编辑  收藏  举报