AR# 35747: MIG Virtex-6 DDR2/DDR3 - Speeding Up Simulation
MIG Virtex-6 DDR2/DDR3 - Speeding Up Simulation
The MIG output provides a simulation testbench in the "example_design/sim" and "user_design/sim" directories. The testbench has specific parameters set to speed up the simulation time. These parameters are documented in theVirtex-6 FPGA Memory Interface Solutions User Guide(UG406), in the Getting Started with the CORE Generator Software section of the DDR2/DDR3 SDRAM Memory Interface Solution chapter: http://www.xilinx.com/support/documentation/ip_documentation/ug406.pdf
NOTE: This Answer Record is part of the Xilinx MIG Solution Center (Xilinx Answer 34243) The Xilinx MIG Solution Center is available to address all questions related to MIG. Whether you are starting a new design with MIG or troubleshooting a problem, use the MIG Solution Center to guide you to the right information.
MIG v3.6 and moving forward: Starting in MIG v3.6, a new simulation parameter is added to speed up simulations.
NOTE: Only change these parameter settings if you do not need to simulate write leveling or phase detection. To turn Write Leveling off, change the WRLVL parameter to OFF: parameter WRLVL = "OFF"; // # = "ON" - DDR3 SDRAM // = "OFF" - DDR2 SDRAM
For more information on Write Leveling, see (Xilinx Answer 35094). To turn the Phase Detector circuit off, which disables the periodic reads required for the phase detector, change the PHASE_DETECT parameter to OFF: parameter PHASE_DETECT = "OFF";
For more information on the phase detector circuit, see (Xilinx Answer 34480). For ModelSim users, change following in the sim.do file:
Set ps as simulation resolution.Some designs set "-t fs" in vsim command line. Change it to "-t ps".
Remove "log -r /*" to turn off signal logging for all signals not in the wave window by default. This requires that you restart and re-run the simulation after adding any additional signals you want to see to the waveform.
If possible, use ModelSim SE instead of ModelSim PE.